@module-federation/sdk 0.0.0-next-20240613022740 → 0.0.0-next-20240613063612

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.js CHANGED
@@ -813,7 +813,8 @@ function createScript(info) {
813
813
  if (script) {
814
814
  if (name === 'async' || name === 'defer') {
815
815
  script[name] = attrs[name];
816
- } else {
816
+ // Attributes that do not exist are considered overridden
817
+ } else if (!script.getAttribute(name)) {
817
818
  script.setAttribute(name, attrs[name]);
818
819
  }
819
820
  }
@@ -882,7 +883,7 @@ function createLink(info) {
882
883
  var attrs = info.attrs;
883
884
  if (attrs) {
884
885
  Object.keys(attrs).forEach(function(name) {
885
- if (link) {
886
+ if (link && !link.getAttribute(name)) {
886
887
  link.setAttribute(name, attrs[name]);
887
888
  }
888
889
  });
package/dist/index.esm.js CHANGED
@@ -809,7 +809,8 @@ function createScript(info) {
809
809
  if (script) {
810
810
  if (name === 'async' || name === 'defer') {
811
811
  script[name] = attrs[name];
812
- } else {
812
+ // Attributes that do not exist are considered overridden
813
+ } else if (!script.getAttribute(name)) {
813
814
  script.setAttribute(name, attrs[name]);
814
815
  }
815
816
  }
@@ -878,7 +879,7 @@ function createLink(info) {
878
879
  var attrs = info.attrs;
879
880
  if (attrs) {
880
881
  Object.keys(attrs).forEach(function(name) {
881
- if (link) {
882
+ if (link && !link.getAttribute(name)) {
882
883
  link.setAttribute(name, attrs[name]);
883
884
  }
884
885
  });
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.1.20",
3
+ "version": "0.1.19",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.0.0-next-20240613022740",
3
+ "version": "0.0.0-next-20240613063612",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [