@module-federation/sdk 0.0.0-next-20240613063612 → 0.0.0-next-20240617024822
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
|
@@ -256,6 +256,12 @@ var parseEntry = function(str, devVerOrUrl) {
|
|
|
256
256
|
// Check if the string starts with a type
|
|
257
257
|
if (strSplit.length >= 2) {
|
|
258
258
|
var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
|
|
259
|
+
if (str.startsWith(separator)) {
|
|
260
|
+
versionOrEntryArr = [
|
|
261
|
+
devVersionOrUrl || strSplit.slice(-1)[0]
|
|
262
|
+
];
|
|
263
|
+
name = strSplit.slice(0, -1).join(separator);
|
|
264
|
+
}
|
|
259
265
|
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
|
|
260
266
|
if (isEntry(versionOrEntry)) {
|
|
261
267
|
return {
|
package/dist/index.esm.js
CHANGED
|
@@ -252,6 +252,12 @@ var parseEntry = function(str, devVerOrUrl) {
|
|
|
252
252
|
// Check if the string starts with a type
|
|
253
253
|
if (strSplit.length >= 2) {
|
|
254
254
|
var _strSplit = _to_array(strSplit), name = _strSplit[0], versionOrEntryArr = _strSplit.slice(1);
|
|
255
|
+
if (str.startsWith(separator)) {
|
|
256
|
+
versionOrEntryArr = [
|
|
257
|
+
devVersionOrUrl || strSplit.slice(-1)[0]
|
|
258
|
+
];
|
|
259
|
+
name = strSplit.slice(0, -1).join(separator);
|
|
260
|
+
}
|
|
255
261
|
var versionOrEntry = devVersionOrUrl || versionOrEntryArr.join(separator);
|
|
256
262
|
if (isEntry(versionOrEntry)) {
|
|
257
263
|
return {
|
package/dist/package.json
CHANGED