@module-federation/sdk 0.0.0-next-20240617084909 → 0.0.0-next-20240619030922

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
@@ -36,6 +36,7 @@ var MFModuleType = {
36
36
  APP: 'app'
37
37
  };
38
38
  var MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
39
+ var ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
39
40
 
40
41
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
41
42
  __proto__: null
@@ -256,11 +257,11 @@ var parseEntry = function(str, devVerOrUrl) {
256
257
  // Check if the string starts with a type
257
258
  if (strSplit.length >= 2) {
258
259
  var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
259
- if (str.startsWith(SEPARATOR)) {
260
+ if (str.startsWith(separator)) {
260
261
  versionOrEntryArr = [
261
262
  devVersionOrUrl || strSplit.slice(-1)[0]
262
263
  ];
263
- name = strSplit.slice(0, -1).join(SEPARATOR);
264
+ name = strSplit.slice(0, -1).join(separator);
264
265
  }
265
266
  var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
266
267
  if (isEntry(versionOrEntry)) {
@@ -1310,6 +1311,7 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
1310
1311
 
1311
1312
  exports.BROWSER_LOG_KEY = BROWSER_LOG_KEY;
1312
1313
  exports.BROWSER_LOG_VALUE = BROWSER_LOG_VALUE;
1314
+ exports.ENCODE_NAME_PREFIX = ENCODE_NAME_PREFIX;
1313
1315
  exports.EncodedNameTransformMap = EncodedNameTransformMap;
1314
1316
  exports.FederationModuleManifest = FederationModuleManifest;
1315
1317
  exports.Logger = Logger;
package/dist/index.esm.js CHANGED
@@ -32,6 +32,7 @@ var MFModuleType = {
32
32
  APP: 'app'
33
33
  };
34
34
  var MODULE_DEVTOOL_IDENTIFIER = '__MF_DEVTOOLS_MODULE_INFO__';
35
+ var ENCODE_NAME_PREFIX = 'ENCODE_NAME_PREFIX';
35
36
 
36
37
  var ContainerPlugin = /*#__PURE__*/Object.freeze({
37
38
  __proto__: null
@@ -252,11 +253,11 @@ var parseEntry = function(str, devVerOrUrl) {
252
253
  // Check if the string starts with a type
253
254
  if (strSplit.length >= 2) {
254
255
  var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
255
- if (str.startsWith(SEPARATOR)) {
256
+ if (str.startsWith(separator)) {
256
257
  versionOrEntryArr = [
257
258
  devVersionOrUrl || strSplit.slice(-1)[0]
258
259
  ];
259
- name = strSplit.slice(0, -1).join(SEPARATOR);
260
+ name = strSplit.slice(0, -1).join(separator);
260
261
  }
261
262
  var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
262
263
  if (isEntry(versionOrEntry)) {
@@ -1304,4 +1305,4 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
1304
1305
  };
1305
1306
  }
1306
1307
 
1307
- export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, assert, composeKeyWithSeparator, ContainerPlugin as containerPlugin, ContainerReferencePlugin as containerReferencePlugin, createLink, createScript, createScriptNode, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, generateSnapshotFromManifest, getProcessEnv, getResourceUrl, inferAutoPublicPath, isBrowserEnv, isDebugMode, isManifestProvider, isStaticResourcesEqual, loadScript, loadScriptNode, logger, ModuleFederationPlugin as moduleFederationPlugin, normalizeOptions, parseEntry, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
1308
+ export { BROWSER_LOG_KEY, BROWSER_LOG_VALUE, ENCODE_NAME_PREFIX, EncodedNameTransformMap, FederationModuleManifest, Logger, MANIFEST_EXT, MFModuleType, MODULE_DEVTOOL_IDENTIFIER, ManifestFileName, NameTransformMap, NameTransformSymbol, SEPARATOR, StatsFileName, assert, composeKeyWithSeparator, ContainerPlugin as containerPlugin, ContainerReferencePlugin as containerReferencePlugin, createLink, createScript, createScriptNode, decodeName, encodeName, error, generateExposeFilename, generateShareFilename, generateSnapshotFromManifest, getProcessEnv, getResourceUrl, inferAutoPublicPath, isBrowserEnv, isDebugMode, isManifestProvider, isStaticResourcesEqual, loadScript, loadScriptNode, logger, ModuleFederationPlugin as moduleFederationPlugin, normalizeOptions, parseEntry, safeWrapper, SharePlugin as sharePlugin, simpleJoinRemoteEntry, warn };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.1.19",
3
+ "version": "0.1.20",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [
@@ -21,3 +21,4 @@ export declare const MFModuleType: {
21
21
  APP: string;
22
22
  };
23
23
  export declare const MODULE_DEVTOOL_IDENTIFIER = "__MF_DEVTOOLS_MODULE_INFO__";
24
+ export declare const ENCODE_NAME_PREFIX = "ENCODE_NAME_PREFIX";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.0.0-next-20240617084909",
3
+ "version": "0.0.0-next-20240619030922",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [