@objectstack/core 1.0.7 → 1.0.9

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/dist/index.js CHANGED
@@ -822,10 +822,11 @@ var PluginLoader = class {
822
822
  }
823
823
  // Private helper methods
824
824
  toPluginMetadata(plugin) {
825
- return {
826
- ...plugin,
827
- version: plugin.version || "0.0.0"
828
- };
825
+ const metadata = plugin;
826
+ if (!metadata.version) {
827
+ metadata.version = "0.0.0";
828
+ }
829
+ return metadata;
829
830
  }
830
831
  validatePluginStructure(plugin) {
831
832
  if (!plugin.name) {