@module-federation/runtime 0.0.3 → 0.0.5

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
@@ -1538,7 +1538,7 @@ class FederationHost {
1538
1538
  generatePreloadAssets: new AsyncHook('generatePreloadAssets'),
1539
1539
  afterPreloadRemote: new AsyncHook()
1540
1540
  });
1541
- this.version = '0.0.3';
1541
+ this.version = '0.0.5';
1542
1542
  this.moduleCache = new Map();
1543
1543
  this.loaderHook = new PluginSystem({
1544
1544
  // FIXME: may not be suitable
package/dist/index.esm.js CHANGED
@@ -1535,7 +1535,7 @@ class FederationHost {
1535
1535
  generatePreloadAssets: new AsyncHook('generatePreloadAssets'),
1536
1536
  afterPreloadRemote: new AsyncHook()
1537
1537
  });
1538
- this.version = '0.0.3';
1538
+ this.version = '0.0.5';
1539
1539
  this.moduleCache = new Map();
1540
1540
  this.loaderHook = new PluginSystem({
1541
1541
  // FIXME: may not be suitable
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./index.cjs.js",
6
6
  "module": "./index.esm.js",
package/dist/share.cjs.js CHANGED
@@ -43,7 +43,7 @@ function isRemoteInfoWithEntry(remote) {
43
43
  return typeof remote.entry !== 'undefined';
44
44
  }
45
45
  function isPureRemoteEntry(remote) {
46
- return remote.entry.endsWith('.js');
46
+ return !remote.entry.includes('.json') && remote.entry.includes('.js');
47
47
  }
48
48
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
49
49
  function safeToString(info) {
@@ -168,7 +168,7 @@ function getGlobalFederationConstructor() {
168
168
  function setGlobalFederationConstructor(FederationConstructor) {
169
169
  if (isDebugMode()) {
170
170
  Global.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
171
- Global.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = '0.0.3';
171
+ Global.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = '0.0.5';
172
172
  }
173
173
  }
174
174
  // eslint-disable-next-line @typescript-eslint/ban-types
package/dist/share.esm.js CHANGED
@@ -41,7 +41,7 @@ function isRemoteInfoWithEntry(remote) {
41
41
  return typeof remote.entry !== 'undefined';
42
42
  }
43
43
  function isPureRemoteEntry(remote) {
44
- return remote.entry.endsWith('.js');
44
+ return !remote.entry.includes('.json') && remote.entry.includes('.js');
45
45
  }
46
46
  // eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types
47
47
  function safeToString(info) {
@@ -166,7 +166,7 @@ function getGlobalFederationConstructor() {
166
166
  function setGlobalFederationConstructor(FederationConstructor) {
167
167
  if (isDebugMode()) {
168
168
  Global.__FEDERATION__.__DEBUG_CONSTRUCTOR__ = FederationConstructor;
169
- Global.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = '0.0.3';
169
+ Global.__FEDERATION__.__DEBUG_CONSTRUCTOR_VERSION__ = '0.0.5';
170
170
  }
171
171
  }
172
172
  // eslint-disable-next-line @typescript-eslint/ban-types
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "author": "zhouxiao <codingzx@gmail.com>",
5
5
  "main": "./dist/index.cjs",
6
6
  "module": "./dist/index.esm.js",
@@ -45,6 +45,6 @@
45
45
  }
46
46
  },
47
47
  "dependencies": {
48
- "@module-federation/sdk": "0.0.3"
48
+ "@module-federation/sdk": "0.0.5"
49
49
  }
50
50
  }