@module-federation/sdk 0.0.0-next-20240611070359 → 0.0.0-next-20240613022740
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 +11 -3
- package/dist/index.esm.js +11 -3
- package/dist/package.json +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -630,6 +630,10 @@ function _object_spread$1(target) {
|
|
|
630
630
|
}
|
|
631
631
|
return target;
|
|
632
632
|
}
|
|
633
|
+
function _type_of$2(obj) {
|
|
634
|
+
"@swc/helpers - typeof";
|
|
635
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
636
|
+
}
|
|
633
637
|
function _ts_generator$1(thisArg, body) {
|
|
634
638
|
var f, y, t, g, _ = {
|
|
635
639
|
label: 0,
|
|
@@ -798,7 +802,7 @@ function createScript(info) {
|
|
|
798
802
|
var createScriptRes = info.createScriptHook(info.url);
|
|
799
803
|
if (_instanceof(createScriptRes, HTMLScriptElement)) {
|
|
800
804
|
script = createScriptRes;
|
|
801
|
-
} else if (typeof createScriptRes === 'object') {
|
|
805
|
+
} else if ((typeof createScriptRes === "undefined" ? "undefined" : _type_of$2(createScriptRes)) === 'object') {
|
|
802
806
|
if (createScriptRes.script) script = createScriptRes.script;
|
|
803
807
|
if (createScriptRes.timeout) timeout = createScriptRes.timeout;
|
|
804
808
|
}
|
|
@@ -996,6 +1000,10 @@ function _non_iterable_rest() {
|
|
|
996
1000
|
function _sliced_to_array(arr, i) {
|
|
997
1001
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
998
1002
|
}
|
|
1003
|
+
function _type_of$1(obj) {
|
|
1004
|
+
"@swc/helpers - typeof";
|
|
1005
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1006
|
+
}
|
|
999
1007
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
1000
1008
|
if (!o) return;
|
|
1001
1009
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -1114,7 +1122,7 @@ function importNodeModule(name) {
|
|
|
1114
1122
|
function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
1115
1123
|
if (createScriptHook) {
|
|
1116
1124
|
var hookResult = createScriptHook(url);
|
|
1117
|
-
if (hookResult && typeof hookResult === 'object' && 'url' in hookResult) {
|
|
1125
|
+
if (hookResult && (typeof hookResult === "undefined" ? "undefined" : _type_of$1(hookResult)) === 'object' && 'url' in hookResult) {
|
|
1118
1126
|
url = hookResult.url;
|
|
1119
1127
|
}
|
|
1120
1128
|
}
|
|
@@ -1286,7 +1294,7 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
|
|
|
1286
1294
|
if (options === true) {
|
|
1287
1295
|
return defaultOptions;
|
|
1288
1296
|
}
|
|
1289
|
-
if (options && typeof options === 'object') {
|
|
1297
|
+
if (options && (typeof options === "undefined" ? "undefined" : _type_of(options)) === 'object') {
|
|
1290
1298
|
return _object_spread({}, defaultOptions, options);
|
|
1291
1299
|
}
|
|
1292
1300
|
throw new Error("Unexpected type for `".concat(key, "`, expect boolean/undefined/object, got: ").concat(typeof options === "undefined" ? "undefined" : _type_of(options)));
|
package/dist/index.esm.js
CHANGED
|
@@ -626,6 +626,10 @@ function _object_spread$1(target) {
|
|
|
626
626
|
}
|
|
627
627
|
return target;
|
|
628
628
|
}
|
|
629
|
+
function _type_of$2(obj) {
|
|
630
|
+
"@swc/helpers - typeof";
|
|
631
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
632
|
+
}
|
|
629
633
|
function _ts_generator$1(thisArg, body) {
|
|
630
634
|
var f, y, t, g, _ = {
|
|
631
635
|
label: 0,
|
|
@@ -794,7 +798,7 @@ function createScript(info) {
|
|
|
794
798
|
var createScriptRes = info.createScriptHook(info.url);
|
|
795
799
|
if (_instanceof(createScriptRes, HTMLScriptElement)) {
|
|
796
800
|
script = createScriptRes;
|
|
797
|
-
} else if (typeof createScriptRes === 'object') {
|
|
801
|
+
} else if ((typeof createScriptRes === "undefined" ? "undefined" : _type_of$2(createScriptRes)) === 'object') {
|
|
798
802
|
if (createScriptRes.script) script = createScriptRes.script;
|
|
799
803
|
if (createScriptRes.timeout) timeout = createScriptRes.timeout;
|
|
800
804
|
}
|
|
@@ -992,6 +996,10 @@ function _non_iterable_rest() {
|
|
|
992
996
|
function _sliced_to_array(arr, i) {
|
|
993
997
|
return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
|
|
994
998
|
}
|
|
999
|
+
function _type_of$1(obj) {
|
|
1000
|
+
"@swc/helpers - typeof";
|
|
1001
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
1002
|
+
}
|
|
995
1003
|
function _unsupported_iterable_to_array(o, minLen) {
|
|
996
1004
|
if (!o) return;
|
|
997
1005
|
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
@@ -1110,7 +1118,7 @@ function importNodeModule(name) {
|
|
|
1110
1118
|
function createScriptNode(url, cb, attrs, createScriptHook) {
|
|
1111
1119
|
if (createScriptHook) {
|
|
1112
1120
|
var hookResult = createScriptHook(url);
|
|
1113
|
-
if (hookResult && typeof hookResult === 'object' && 'url' in hookResult) {
|
|
1121
|
+
if (hookResult && (typeof hookResult === "undefined" ? "undefined" : _type_of$1(hookResult)) === 'object' && 'url' in hookResult) {
|
|
1114
1122
|
url = hookResult.url;
|
|
1115
1123
|
}
|
|
1116
1124
|
}
|
|
@@ -1282,7 +1290,7 @@ function normalizeOptions(enableDefault, defaultOptions, key) {
|
|
|
1282
1290
|
if (options === true) {
|
|
1283
1291
|
return defaultOptions;
|
|
1284
1292
|
}
|
|
1285
|
-
if (options && typeof options === 'object') {
|
|
1293
|
+
if (options && (typeof options === "undefined" ? "undefined" : _type_of(options)) === 'object') {
|
|
1286
1294
|
return _object_spread({}, defaultOptions, options);
|
|
1287
1295
|
}
|
|
1288
1296
|
throw new Error("Unexpected type for `".concat(key, "`, expect boolean/undefined/object, got: ").concat(typeof options === "undefined" ? "undefined" : _type_of(options)));
|
package/dist/package.json
CHANGED