@module-federation/sdk
Advanced tools
Comparing version 0.0.0-next-20240225075926 to 0.0.0-next-20240226093820
@@ -239,3 +239,4 @@ 'use strict'; | ||
var parseEntry = function(str, devVerOrUrl) { | ||
var strSplit = str.split(SEPARATOR); | ||
var separator = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SEPARATOR; | ||
var strSplit = str.split(separator); | ||
var devVersionOrUrl = getProcessEnv()["NODE_ENV"] === "development" && devVerOrUrl; | ||
@@ -249,3 +250,3 @@ var defaultVersion = "*"; | ||
var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1); | ||
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(SEPARATOR); | ||
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator); | ||
if (isEntry(versionOrEntry)) { | ||
@@ -252,0 +253,0 @@ return { |
@@ -235,3 +235,4 @@ function _define_property$2(obj, key, value) { | ||
var parseEntry = function(str, devVerOrUrl) { | ||
var strSplit = str.split(SEPARATOR); | ||
var separator = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : SEPARATOR; | ||
var strSplit = str.split(separator); | ||
var devVersionOrUrl = getProcessEnv()["NODE_ENV"] === "development" && devVerOrUrl; | ||
@@ -245,3 +246,3 @@ var defaultVersion = "*"; | ||
var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1); | ||
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(SEPARATOR); | ||
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator); | ||
if (isEntry(versionOrEntry)) { | ||
@@ -248,0 +249,0 @@ return { |
import { RemoteEntryInfo, ModuleInfo } from './types'; | ||
import { Logger } from './logger'; | ||
declare const parseEntry: (str: string, devVerOrUrl?: string) => RemoteEntryInfo; | ||
declare const parseEntry: (str: string, devVerOrUrl?: string, separator?: string) => RemoteEntryInfo; | ||
declare global { | ||
@@ -5,0 +5,0 @@ var FEDERATION_DEBUG: string | undefined; |
{ | ||
"name": "@module-federation/sdk", | ||
"version": "0.0.0-next-20240225075926", | ||
"version": "0.0.0-next-20240226093820", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A sdk for support module federation", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
129689
3280