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.
- package/index.js +7 -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.
|
|
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;
|