@module-federation/managers 0.1.19 → 0.1.21
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 +7 -3
- package/dist/index.esm.js +7 -3
- package/dist/package.json +1 -1
- package/package.json +2 -2
package/dist/index.cjs.js
CHANGED
|
@@ -202,6 +202,10 @@ function _non_iterable_rest$2() {
|
|
|
202
202
|
function _sliced_to_array$2(arr, i) {
|
|
203
203
|
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
204
204
|
}
|
|
205
|
+
function _type_of$3(obj) {
|
|
206
|
+
"@swc/helpers - typeof";
|
|
207
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
208
|
+
}
|
|
205
209
|
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
206
210
|
if (!o) return;
|
|
207
211
|
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
@@ -244,7 +248,7 @@ function processFn(options, normalizeSimple, normalizeOptions, fn) {
|
|
|
244
248
|
var item = _step.value;
|
|
245
249
|
if (typeof item === 'string') {
|
|
246
250
|
fn(item, normalizeSimple(item, item));
|
|
247
|
-
} else if (item && typeof item === 'object') {
|
|
251
|
+
} else if (item && (typeof item === "undefined" ? "undefined" : _type_of$3(item)) === 'object') {
|
|
248
252
|
object(item);
|
|
249
253
|
} else {
|
|
250
254
|
throw new Error('Unexpected options format');
|
|
@@ -269,7 +273,7 @@ function processFn(options, normalizeSimple, normalizeOptions, fn) {
|
|
|
269
273
|
return;
|
|
270
274
|
} else if (Array.isArray(options)) {
|
|
271
275
|
array(options);
|
|
272
|
-
} else if (typeof options === 'object') {
|
|
276
|
+
} else if ((typeof options === "undefined" ? "undefined" : _type_of$3(options)) === 'object') {
|
|
273
277
|
object(options);
|
|
274
278
|
} else {
|
|
275
279
|
throw new Error('Unexpected options format');
|
|
@@ -903,7 +907,7 @@ var RemoteManager = /*#__PURE__*/ function(BasicPluginOptionsManager) {
|
|
|
903
907
|
}
|
|
904
908
|
sum[remoteAlias] = _object_spread_props$1(_object_spread$1({}, parsedOptions), {
|
|
905
909
|
alias: remoteAlias,
|
|
906
|
-
shareScope: typeof remoteInfo === 'object' ? remoteInfo.shareScope || 'default' : 'default'
|
|
910
|
+
shareScope: (typeof remoteInfo === "undefined" ? "undefined" : _type_of$1(remoteInfo)) === 'object' ? remoteInfo.shareScope || 'default' : 'default'
|
|
907
911
|
});
|
|
908
912
|
return sum;
|
|
909
913
|
}, {});
|
package/dist/index.esm.js
CHANGED
|
@@ -191,6 +191,10 @@ function _non_iterable_rest$2() {
|
|
|
191
191
|
function _sliced_to_array$2(arr, i) {
|
|
192
192
|
return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
|
|
193
193
|
}
|
|
194
|
+
function _type_of$3(obj) {
|
|
195
|
+
"@swc/helpers - typeof";
|
|
196
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
197
|
+
}
|
|
194
198
|
function _unsupported_iterable_to_array$2(o, minLen) {
|
|
195
199
|
if (!o) return;
|
|
196
200
|
if (typeof o === "string") return _array_like_to_array$2(o, minLen);
|
|
@@ -233,7 +237,7 @@ function processFn(options, normalizeSimple, normalizeOptions, fn) {
|
|
|
233
237
|
var item = _step.value;
|
|
234
238
|
if (typeof item === 'string') {
|
|
235
239
|
fn(item, normalizeSimple(item, item));
|
|
236
|
-
} else if (item && typeof item === 'object') {
|
|
240
|
+
} else if (item && (typeof item === "undefined" ? "undefined" : _type_of$3(item)) === 'object') {
|
|
237
241
|
object(item);
|
|
238
242
|
} else {
|
|
239
243
|
throw new Error('Unexpected options format');
|
|
@@ -258,7 +262,7 @@ function processFn(options, normalizeSimple, normalizeOptions, fn) {
|
|
|
258
262
|
return;
|
|
259
263
|
} else if (Array.isArray(options)) {
|
|
260
264
|
array(options);
|
|
261
|
-
} else if (typeof options === 'object') {
|
|
265
|
+
} else if ((typeof options === "undefined" ? "undefined" : _type_of$3(options)) === 'object') {
|
|
262
266
|
object(options);
|
|
263
267
|
} else {
|
|
264
268
|
throw new Error('Unexpected options format');
|
|
@@ -892,7 +896,7 @@ var RemoteManager = /*#__PURE__*/ function(BasicPluginOptionsManager) {
|
|
|
892
896
|
}
|
|
893
897
|
sum[remoteAlias] = _object_spread_props$1(_object_spread$1({}, parsedOptions), {
|
|
894
898
|
alias: remoteAlias,
|
|
895
|
-
shareScope: typeof remoteInfo === 'object' ? remoteInfo.shareScope || 'default' : 'default'
|
|
899
|
+
shareScope: (typeof remoteInfo === "undefined" ? "undefined" : _type_of$1(remoteInfo)) === 'object' ? remoteInfo.shareScope || 'default' : 'default'
|
|
896
900
|
});
|
|
897
901
|
return sum;
|
|
898
902
|
}, {});
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@module-federation/managers",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.21",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"description": "Provide managers for helping handle mf data .",
|
|
6
6
|
"keywords": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"find-pkg": "2.0.0",
|
|
23
23
|
"fs-extra": "9.1.0",
|
|
24
|
-
"@module-federation/sdk": "0.1.
|
|
24
|
+
"@module-federation/sdk": "0.1.21"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"webpack": "5.76.0"
|