plugin-updater 1.0.12 → 1.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +7 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -208,7 +208,12 @@ const pluginUpdaterEntry = async function(input) {
208
208
  return {};
209
209
  };
210
210
 
211
- // Attach API methods to the entry function
212
- Object.assign(pluginUpdaterEntry, updaterAPI);
211
+ // Attach API methods to the entry function (skip 'name' — conflicts with Function.name)
212
+ for (const [key, value] of Object.entries(updaterAPI)) {
213
+ if (key !== 'name') {
214
+ pluginUpdaterEntry[key] = value;
215
+ }
216
+ }
217
+ pluginUpdaterEntry.pluginName = updaterAPI.name;
213
218
 
214
219
  export default pluginUpdaterEntry;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plugin-updater",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "Plugin lifecycle manager for OpenCode and Claude Code launchers",
5
5
  "type": "module",
6
6
  "main": "index.js",