@module-federation/utilities 3.1.13 → 3.1.14

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
@@ -1,25 +1,5 @@
1
1
  'use strict';
2
2
 
3
- Object.defineProperty(exports, '__esModule', { value: true });
4
-
5
- function _interopNamespace(e) {
6
- if (e && e.__esModule) return e;
7
- var n = Object.create(null);
8
- if (e) {
9
- Object.keys(e).forEach(function (k) {
10
- if (k !== 'default') {
11
- var d = Object.getOwnPropertyDescriptor(e, k);
12
- Object.defineProperty(n, k, d.get ? d : {
13
- enumerable: true,
14
- get: function () { return e[k]; }
15
- });
16
- }
17
- });
18
- }
19
- n["default"] = e;
20
- return Object.freeze(n);
21
- }
22
-
23
3
  function _array_like_to_array$3(arr, len) {
24
4
  if (len == null || len > arr.length) len = arr.length;
25
5
  for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
@@ -58,10 +38,6 @@ function _non_iterable_rest$3() {
58
38
  function _sliced_to_array$3(arr, i) {
59
39
  return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
60
40
  }
61
- function _type_of$2(obj) {
62
- "@swc/helpers - typeof";
63
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
64
- }
65
41
  function _unsupported_iterable_to_array$3(o, minLen) {
66
42
  if (!o) return;
67
43
  if (typeof o === "string") return _array_like_to_array$3(o, minLen);
@@ -170,7 +146,7 @@ var loadScript = function(keyOrRuntimeRemoteItem) {
170
146
  var getRuntimeRemotes$1 = function() {
171
147
  return Object.entries(remoteVars).reduce(function(acc, param) {
172
148
  var _param = _sliced_to_array$3(param, 2), key = _param[0], value = _param[1];
173
- if ((typeof value === "undefined" ? "undefined" : _type_of$2(value)) === 'object' && typeof value.then === 'function') {
149
+ if (typeof value === 'object' && typeof value.then === 'function') {
174
150
  acc[key] = {
175
151
  asyncContainer: value
176
152
  };
@@ -273,10 +249,6 @@ function _non_iterable_rest$2() {
273
249
  function _sliced_to_array$2(arr, i) {
274
250
  return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
275
251
  }
276
- function _type_of$1(obj) {
277
- "@swc/helpers - typeof";
278
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
279
- }
280
252
  function _unsupported_iterable_to_array$2(o, minLen) {
281
253
  if (!o) return;
282
254
  if (typeof o === "string") return _array_like_to_array$2(o, minLen);
@@ -546,7 +518,7 @@ var createContainerSharingScope = function(asyncContainer) {
546
518
  if (exportName) {
547
519
  return [
548
520
  2,
549
- mod && (typeof mod === "undefined" ? "undefined" : _type_of$1(mod)) === 'object' ? mod[exportName] : undefined
521
+ mod && typeof mod === 'object' ? mod[exportName] : undefined
550
522
  ];
551
523
  } else {
552
524
  return [
@@ -676,11 +648,6 @@ function ownKeys(object, enumerableOnly) {
676
648
  var keys = Object.keys(object);
677
649
  if (Object.getOwnPropertySymbols) {
678
650
  var symbols = Object.getOwnPropertySymbols(object);
679
- if (enumerableOnly) {
680
- symbols = symbols.filter(function(sym) {
681
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
682
- });
683
- }
684
651
  keys.push.apply(keys, symbols);
685
652
  }
686
653
  return keys;
@@ -839,7 +806,7 @@ var loadEsmRemote = function() {
839
806
  case 0:
840
807
  return [
841
808
  4,
842
- (function (t) { return Promise.resolve().then(function () { return /*#__PURE__*/_interopNamespace(require(t)); }); })(/* webpackIgnore: true */ url)
809
+ import(/* webpackIgnore: true */ url)
843
810
  ];
844
811
  case 1:
845
812
  module = _state.sent();
@@ -1054,7 +1021,6 @@ function _defineProperties(target, props) {
1054
1021
  }
1055
1022
  }
1056
1023
  function _create_class(Constructor, protoProps, staticProps) {
1057
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1058
1024
  if (staticProps) _defineProperties(Constructor, staticProps);
1059
1025
  return Constructor;
1060
1026
  }
@@ -1132,10 +1098,6 @@ function _non_iterable_rest() {
1132
1098
  function _sliced_to_array(arr, i) {
1133
1099
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1134
1100
  }
1135
- function _type_of(obj) {
1136
- "@swc/helpers - typeof";
1137
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1138
- }
1139
1101
  function _unsupported_iterable_to_array(o, minLen) {
1140
1102
  if (!o) return;
1141
1103
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -1149,7 +1111,7 @@ var getRuntimeRemotes = function() {
1149
1111
  return Object.entries(remoteVars).reduce(function(acc, item) {
1150
1112
  var _item = _sliced_to_array(item, 2), key = _item[0], value = _item[1];
1151
1113
  // if its an object with a thenable (eagerly executing function)
1152
- if ((typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object' && typeof value.then === 'function') {
1114
+ if (typeof value === 'object' && typeof value.then === 'function') {
1153
1115
  acc[key] = {
1154
1116
  asyncContainer: value
1155
1117
  };
@@ -0,0 +1 @@
1
+ export * from "./src/index";
package/dist/index.esm.js CHANGED
@@ -36,10 +36,6 @@ function _non_iterable_rest$3() {
36
36
  function _sliced_to_array$3(arr, i) {
37
37
  return _array_with_holes$3(arr) || _iterable_to_array_limit$3(arr, i) || _unsupported_iterable_to_array$3(arr, i) || _non_iterable_rest$3();
38
38
  }
39
- function _type_of$2(obj) {
40
- "@swc/helpers - typeof";
41
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
42
- }
43
39
  function _unsupported_iterable_to_array$3(o, minLen) {
44
40
  if (!o) return;
45
41
  if (typeof o === "string") return _array_like_to_array$3(o, minLen);
@@ -148,7 +144,7 @@ var loadScript = function(keyOrRuntimeRemoteItem) {
148
144
  var getRuntimeRemotes$1 = function() {
149
145
  return Object.entries(remoteVars).reduce(function(acc, param) {
150
146
  var _param = _sliced_to_array$3(param, 2), key = _param[0], value = _param[1];
151
- if ((typeof value === "undefined" ? "undefined" : _type_of$2(value)) === 'object' && typeof value.then === 'function') {
147
+ if (typeof value === 'object' && typeof value.then === 'function') {
152
148
  acc[key] = {
153
149
  asyncContainer: value
154
150
  };
@@ -251,10 +247,6 @@ function _non_iterable_rest$2() {
251
247
  function _sliced_to_array$2(arr, i) {
252
248
  return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
253
249
  }
254
- function _type_of$1(obj) {
255
- "@swc/helpers - typeof";
256
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
257
- }
258
250
  function _unsupported_iterable_to_array$2(o, minLen) {
259
251
  if (!o) return;
260
252
  if (typeof o === "string") return _array_like_to_array$2(o, minLen);
@@ -524,7 +516,7 @@ var createContainerSharingScope = function(asyncContainer) {
524
516
  if (exportName) {
525
517
  return [
526
518
  2,
527
- mod && (typeof mod === "undefined" ? "undefined" : _type_of$1(mod)) === 'object' ? mod[exportName] : undefined
519
+ mod && typeof mod === 'object' ? mod[exportName] : undefined
528
520
  ];
529
521
  } else {
530
522
  return [
@@ -654,11 +646,6 @@ function ownKeys(object, enumerableOnly) {
654
646
  var keys = Object.keys(object);
655
647
  if (Object.getOwnPropertySymbols) {
656
648
  var symbols = Object.getOwnPropertySymbols(object);
657
- if (enumerableOnly) {
658
- symbols = symbols.filter(function(sym) {
659
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
660
- });
661
- }
662
649
  keys.push.apply(keys, symbols);
663
650
  }
664
651
  return keys;
@@ -1032,7 +1019,6 @@ function _defineProperties(target, props) {
1032
1019
  }
1033
1020
  }
1034
1021
  function _create_class(Constructor, protoProps, staticProps) {
1035
- if (protoProps) _defineProperties(Constructor.prototype, protoProps);
1036
1022
  if (staticProps) _defineProperties(Constructor, staticProps);
1037
1023
  return Constructor;
1038
1024
  }
@@ -1110,10 +1096,6 @@ function _non_iterable_rest() {
1110
1096
  function _sliced_to_array(arr, i) {
1111
1097
  return _array_with_holes(arr) || _iterable_to_array_limit(arr, i) || _unsupported_iterable_to_array(arr, i) || _non_iterable_rest();
1112
1098
  }
1113
- function _type_of(obj) {
1114
- "@swc/helpers - typeof";
1115
- return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
1116
- }
1117
1099
  function _unsupported_iterable_to_array(o, minLen) {
1118
1100
  if (!o) return;
1119
1101
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -1127,7 +1109,7 @@ var getRuntimeRemotes = function() {
1127
1109
  return Object.entries(remoteVars).reduce(function(acc, item) {
1128
1110
  var _item = _sliced_to_array(item, 2), key = _item[0], value = _item[1];
1129
1111
  // if its an object with a thenable (eagerly executing function)
1130
- if ((typeof value === "undefined" ? "undefined" : _type_of(value)) === 'object' && typeof value.then === 'function') {
1112
+ if (typeof value === 'object' && typeof value.then === 'function') {
1131
1113
  acc[key] = {
1132
1114
  asyncContainer: value
1133
1115
  };
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
4
  "main": "./index.cjs.js",
5
5
  "module": "./index.esm.js",
6
6
  "types": "./dist/index.cjs.d.ts",
@@ -14,15 +14,15 @@
14
14
  ],
15
15
  "repository": "https://github.com/module-federation/core/tree/main/packages/utilities",
16
16
  "devDependencies": {
17
- "react": "18.2.0"
17
+ "react": "18.3.1"
18
18
  },
19
19
  "dependencies": {
20
20
  "@module-federation/sdk": "workspace:*"
21
21
  },
22
22
  "peerDependencies": {
23
- "webpack": "^5.40.0",
23
+ "react": "^16 || ^17 || ^18",
24
24
  "react-dom": "^16 || ^17 || ^18",
25
- "react": "^16 || ^17 || ^18"
25
+ "webpack": "^5.40.0"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "react": {
@@ -38,6 +38,7 @@
38
38
  "exports": {
39
39
  ".": {
40
40
  "module": "./index.esm.js",
41
+ "types": "./index.esm.d.ts",
41
42
  "import": "./index.cjs.mjs",
42
43
  "default": "./index.cjs.js"
43
44
  },
@@ -53,4 +54,4 @@
53
54
  ]
54
55
  }
55
56
  }
56
- }
57
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/utilities",
3
- "version": "3.1.13",
3
+ "version": "3.1.14",
4
4
  "main": "./dist/index.cjs.js",
5
5
  "module": "./dist/index.esm.js",
6
6
  "types": "./dist/index.cjs.d.ts",
@@ -14,15 +14,15 @@
14
14
  ],
15
15
  "repository": "https://github.com/module-federation/core/tree/main/packages/utilities",
16
16
  "devDependencies": {
17
- "react": "18.2.0"
17
+ "react": "18.3.1"
18
18
  },
19
19
  "dependencies": {
20
- "@module-federation/sdk": "0.6.7"
20
+ "@module-federation/sdk": "0.6.8"
21
21
  },
22
22
  "peerDependencies": {
23
- "webpack": "^5.40.0",
23
+ "react": "^16 || ^17 || ^18",
24
24
  "react-dom": "^16 || ^17 || ^18",
25
- "react": "^16 || ^17 || ^18"
25
+ "webpack": "^5.40.0"
26
26
  },
27
27
  "peerDependenciesMeta": {
28
28
  "react": {