@wc-toolkit/vuejs-types 1.0.2 → 1.0.3

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.cjs CHANGED
@@ -743,7 +743,7 @@ function vuejsTypesPlugin(options = {}) {
743
743
  return {
744
744
  name: "@wc-toolkit/vuejs-types",
745
745
  packageLinkPhase({ customElementsManifest }) {
746
- generateVuejsTypes(customElementsManifest, options);
746
+ generateVuejsTypes(cloneManifest(customElementsManifest), options);
747
747
  }
748
748
  };
749
749
  }
@@ -751,10 +751,13 @@ function vuejsTypesGeneratorPlugin(options = {}) {
751
751
  return {
752
752
  name: "@wc-toolkit/vuejs-types:cem-generator",
753
753
  afterGenerate(manifest2) {
754
- generateVuejsTypes(manifest2, options);
754
+ generateVuejsTypes(cloneManifest(manifest2), options);
755
755
  }
756
756
  };
757
757
  }
758
+ function cloneManifest(manifest2) {
759
+ return structuredClone(manifest2);
760
+ }
758
761
  // Annotate the CommonJS export names for ESM import in node:
759
762
  0 && (module.exports = {
760
763
  generateVuejsTypes,
package/dist/index.js CHANGED
@@ -705,7 +705,7 @@ function vuejsTypesPlugin(options = {}) {
705
705
  return {
706
706
  name: "@wc-toolkit/vuejs-types",
707
707
  packageLinkPhase({ customElementsManifest }) {
708
- generateVuejsTypes(customElementsManifest, options);
708
+ generateVuejsTypes(cloneManifest(customElementsManifest), options);
709
709
  }
710
710
  };
711
711
  }
@@ -713,10 +713,13 @@ function vuejsTypesGeneratorPlugin(options = {}) {
713
713
  return {
714
714
  name: "@wc-toolkit/vuejs-types:cem-generator",
715
715
  afterGenerate(manifest2) {
716
- generateVuejsTypes(manifest2, options);
716
+ generateVuejsTypes(cloneManifest(manifest2), options);
717
717
  }
718
718
  };
719
719
  }
720
+ function cloneManifest(manifest2) {
721
+ return structuredClone(manifest2);
722
+ }
720
723
  export {
721
724
  generateVuejsTypes,
722
725
  vuejsTypesGeneratorPlugin,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wc-toolkit/vuejs-types",
3
- "version": "1.0.2",
3
+ "version": "1.0.3",
4
4
  "description": "This package generates Vue.js types for custom elements / web components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",