@module-federation/sdk 0.0.0-next-20240225073543 → 0.0.0-next-20240226093820

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
@@ -236,7 +236,8 @@ var LOG_CATEGORY = "[ Federation Runtime ]";
236
236
  // entry: name:version version : 1.0.0 | ^1.2.3
237
237
  // entry: name:entry entry: https://localhost:9000/federation-manifest.json
238
238
  var parseEntry = function(str, devVerOrUrl) {
239
- var strSplit = str.split(SEPARATOR);
239
+ var separator = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SEPARATOR;
240
+ var strSplit = str.split(separator);
240
241
  var devVersionOrUrl = getProcessEnv()["NODE_ENV"] === "development" && devVerOrUrl;
241
242
  var defaultVersion = "*";
242
243
  var isEntry = function(s) {
@@ -245,7 +246,7 @@ var parseEntry = function(str, devVerOrUrl) {
245
246
  // Check if the string starts with a type
246
247
  if (strSplit.length >= 2) {
247
248
  var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
248
- var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(SEPARATOR);
249
+ var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
249
250
  if (isEntry(versionOrEntry)) {
250
251
  return {
251
252
  name: name,
package/dist/index.esm.js CHANGED
@@ -232,7 +232,8 @@ var LOG_CATEGORY = "[ Federation Runtime ]";
232
232
  // entry: name:version version : 1.0.0 | ^1.2.3
233
233
  // entry: name:entry entry: https://localhost:9000/federation-manifest.json
234
234
  var parseEntry = function(str, devVerOrUrl) {
235
- var strSplit = str.split(SEPARATOR);
235
+ var separator = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SEPARATOR;
236
+ var strSplit = str.split(separator);
236
237
  var devVersionOrUrl = getProcessEnv()["NODE_ENV"] === "development" && devVerOrUrl;
237
238
  var defaultVersion = "*";
238
239
  var isEntry = function(s) {
@@ -241,7 +242,7 @@ var parseEntry = function(str, devVerOrUrl) {
241
242
  // Check if the string starts with a type
242
243
  if (strSplit.length >= 2) {
243
244
  var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
244
- var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(SEPARATOR);
245
+ var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
245
246
  if (isEntry(versionOrEntry)) {
246
247
  return {
247
248
  name: name,
@@ -1,6 +1,6 @@
1
1
  import { RemoteEntryInfo, ModuleInfo } from './types';
2
2
  import { Logger } from './logger';
3
- declare const parseEntry: (str: string, devVerOrUrl?: string) => RemoteEntryInfo;
3
+ declare const parseEntry: (str: string, devVerOrUrl?: string, separator?: string) => RemoteEntryInfo;
4
4
  declare global {
5
5
  var FEDERATION_DEBUG: string | undefined;
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/sdk",
3
- "version": "0.0.0-next-20240225073543",
3
+ "version": "0.0.0-next-20240226093820",
4
4
  "license": "MIT",
5
5
  "description": "A sdk for support module federation",
6
6
  "keywords": [