@module-federation/runtime 0.0.0-next-20231225041300 → 0.0.0-next-20231225064454

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/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 new URL(remote.entry).pathname.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) {
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 new URL(remote.entry).pathname.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) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/runtime",
3
- "version": "0.0.0-next-20231225041300",
3
+ "version": "0.0.0-next-20231225064454",
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.0-next-20231225041300"
48
+ "@module-federation/sdk": "0.0.0-next-20231225064454"
49
49
  }
50
50
  }