@module-federation/manifest 0.0.0-next-20240308070801 → 0.0.15

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
@@ -23,10 +23,10 @@ function _array_like_to_array$2(arr, len) {
23
23
  function _array_with_holes$2(arr) {
24
24
  if (Array.isArray(arr)) return arr;
25
25
  }
26
- function _array_without_holes$1(arr) {
26
+ function _array_without_holes(arr) {
27
27
  if (Array.isArray(arr)) return _array_like_to_array$2(arr);
28
28
  }
29
- function _iterable_to_array$1(iter) {
29
+ function _iterable_to_array(iter) {
30
30
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
31
31
  }
32
32
  function _iterable_to_array_limit$2(arr, i) {
@@ -56,14 +56,14 @@ function _iterable_to_array_limit$2(arr, i) {
56
56
  function _non_iterable_rest$2() {
57
57
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
58
58
  }
59
- function _non_iterable_spread$1() {
59
+ function _non_iterable_spread() {
60
60
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
61
61
  }
62
62
  function _sliced_to_array$2(arr, i) {
63
63
  return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
64
64
  }
65
- function _to_consumable_array$1(arr) {
66
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$1();
65
+ function _to_consumable_array(arr) {
66
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread();
67
67
  }
68
68
  function _unsupported_iterable_to_array$2(o, minLen) {
69
69
  if (!o) return;
@@ -93,7 +93,7 @@ function getAssetsByChunkIDs(compilation, chunkIDMap) {
93
93
  return item.id === chunkID;
94
94
  });
95
95
  if (chunk) {
96
- _to_consumable_array$1(chunk.files).forEach(function(asset) {
96
+ _to_consumable_array(chunk.files).forEach(function(asset) {
97
97
  if (asset.endsWith(".css")) {
98
98
  assetMap[key].css.add(asset);
99
99
  } else {
@@ -251,7 +251,7 @@ function getAssetsByChunk(chunk) {
251
251
  }
252
252
  };
253
253
  var collectChunkFiles = function(targetChunk, type) {
254
- _to_consumable_array$1(targetChunk.groupsIterable).forEach(function(chunkGroup) {
254
+ _to_consumable_array(targetChunk.groupsIterable).forEach(function(chunkGroup) {
255
255
  chunkGroup.getFiles().forEach(function(file) {
256
256
  if (file.endsWith(".css")) {
257
257
  assesSet.css[type].add(file);
@@ -262,7 +262,7 @@ function getAssetsByChunk(chunk) {
262
262
  });
263
263
  };
264
264
  collectChunkFiles(chunk, "sync");
265
- _to_consumable_array$1(chunk.getAllAsyncChunks()).forEach(function(asyncChunk) {
265
+ _to_consumable_array(chunk.getAllAsyncChunks()).forEach(function(asyncChunk) {
266
266
  asyncChunk.files.forEach(function(file) {
267
267
  if (file.endsWith(".css")) {
268
268
  assesSet.css.async.add(file);
@@ -891,9 +891,6 @@ var ModuleHandler = /*#__PURE__*/ function() {
891
891
  function _array_with_holes(arr) {
892
892
  if (Array.isArray(arr)) return arr;
893
893
  }
894
- function _array_without_holes(arr) {
895
- if (Array.isArray(arr)) return _array_like_to_array(arr);
896
- }
897
894
  function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
898
895
  try {
899
896
  var info = gen[key](arg);
@@ -955,9 +952,6 @@ function _define_property$1(obj, key, value) {
955
952
  }
956
953
  return obj;
957
954
  }
958
- function _iterable_to_array(iter) {
959
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
960
- }
961
955
  function _iterable_to_array_limit(arr, i) {
962
956
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
963
957
  if (_i == null) return;
@@ -985,9 +979,6 @@ function _iterable_to_array_limit(arr, i) {
985
979
  function _non_iterable_rest() {
986
980
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
987
981
  }
988
- function _non_iterable_spread() {
989
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
990
- }
991
982
  function _object_spread(target) {
992
983
  for(var i = 1; i < arguments.length; i++){
993
984
  var source = arguments[i] != null ? arguments[i] : {};
@@ -1040,9 +1031,6 @@ function _tagged_template_literal(strings, raw) {
1040
1031
  }
1041
1032
  }));
1042
1033
  }
1043
- function _to_consumable_array(arr) {
1044
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
1045
- }
1046
1034
  function _unsupported_iterable_to_array(o, minLen) {
1047
1035
  if (!o) return;
1048
1036
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -1213,10 +1201,11 @@ var StatsManager = /*#__PURE__*/ function() {
1213
1201
  assert(remoteEntryPoint, "Can not get remoteEntry entryPoint!");
1214
1202
  var remoteEntryNameChunk = compilation.namedChunks.get(name);
1215
1203
  assert(remoteEntryNameChunk, "Can not get remoteEntry chunk!");
1216
- assert(Array.from(remoteEntryNameChunk.files).filter(function(f) {
1204
+ var files = Array.from(remoteEntryNameChunk.files).filter(function(f) {
1217
1205
  return !f.includes(HOT_UPDATE_SUFFIX);
1218
- }).length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(Array.from(remoteEntryNameChunk.files).join(",")));
1219
- var remoteEntryName = _to_consumable_array(remoteEntryNameChunk.files)[0];
1206
+ });
1207
+ assert(files.length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(files.join(",")));
1208
+ var remoteEntryName = files[0];
1220
1209
  return remoteEntryName;
1221
1210
  };
1222
1211
  var globalName = this._containerManager.globalEntryName;
package/dist/index.esm.js CHANGED
@@ -14,10 +14,10 @@ function _array_like_to_array$2(arr, len) {
14
14
  function _array_with_holes$2(arr) {
15
15
  if (Array.isArray(arr)) return arr;
16
16
  }
17
- function _array_without_holes$1(arr) {
17
+ function _array_without_holes(arr) {
18
18
  if (Array.isArray(arr)) return _array_like_to_array$2(arr);
19
19
  }
20
- function _iterable_to_array$1(iter) {
20
+ function _iterable_to_array(iter) {
21
21
  if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
22
22
  }
23
23
  function _iterable_to_array_limit$2(arr, i) {
@@ -47,14 +47,14 @@ function _iterable_to_array_limit$2(arr, i) {
47
47
  function _non_iterable_rest$2() {
48
48
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
49
49
  }
50
- function _non_iterable_spread$1() {
50
+ function _non_iterable_spread() {
51
51
  throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
52
52
  }
53
53
  function _sliced_to_array$2(arr, i) {
54
54
  return _array_with_holes$2(arr) || _iterable_to_array_limit$2(arr, i) || _unsupported_iterable_to_array$2(arr, i) || _non_iterable_rest$2();
55
55
  }
56
- function _to_consumable_array$1(arr) {
57
- return _array_without_holes$1(arr) || _iterable_to_array$1(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread$1();
56
+ function _to_consumable_array(arr) {
57
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array$2(arr) || _non_iterable_spread();
58
58
  }
59
59
  function _unsupported_iterable_to_array$2(o, minLen) {
60
60
  if (!o) return;
@@ -84,7 +84,7 @@ function getAssetsByChunkIDs(compilation, chunkIDMap) {
84
84
  return item.id === chunkID;
85
85
  });
86
86
  if (chunk) {
87
- _to_consumable_array$1(chunk.files).forEach(function(asset) {
87
+ _to_consumable_array(chunk.files).forEach(function(asset) {
88
88
  if (asset.endsWith(".css")) {
89
89
  assetMap[key].css.add(asset);
90
90
  } else {
@@ -242,7 +242,7 @@ function getAssetsByChunk(chunk) {
242
242
  }
243
243
  };
244
244
  var collectChunkFiles = function(targetChunk, type) {
245
- _to_consumable_array$1(targetChunk.groupsIterable).forEach(function(chunkGroup) {
245
+ _to_consumable_array(targetChunk.groupsIterable).forEach(function(chunkGroup) {
246
246
  chunkGroup.getFiles().forEach(function(file) {
247
247
  if (file.endsWith(".css")) {
248
248
  assesSet.css[type].add(file);
@@ -253,7 +253,7 @@ function getAssetsByChunk(chunk) {
253
253
  });
254
254
  };
255
255
  collectChunkFiles(chunk, "sync");
256
- _to_consumable_array$1(chunk.getAllAsyncChunks()).forEach(function(asyncChunk) {
256
+ _to_consumable_array(chunk.getAllAsyncChunks()).forEach(function(asyncChunk) {
257
257
  asyncChunk.files.forEach(function(file) {
258
258
  if (file.endsWith(".css")) {
259
259
  assesSet.css.async.add(file);
@@ -882,9 +882,6 @@ var ModuleHandler = /*#__PURE__*/ function() {
882
882
  function _array_with_holes(arr) {
883
883
  if (Array.isArray(arr)) return arr;
884
884
  }
885
- function _array_without_holes(arr) {
886
- if (Array.isArray(arr)) return _array_like_to_array(arr);
887
- }
888
885
  function asyncGeneratorStep$1(gen, resolve, reject, _next, _throw, key, arg) {
889
886
  try {
890
887
  var info = gen[key](arg);
@@ -946,9 +943,6 @@ function _define_property$1(obj, key, value) {
946
943
  }
947
944
  return obj;
948
945
  }
949
- function _iterable_to_array(iter) {
950
- if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
951
- }
952
946
  function _iterable_to_array_limit(arr, i) {
953
947
  var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"];
954
948
  if (_i == null) return;
@@ -976,9 +970,6 @@ function _iterable_to_array_limit(arr, i) {
976
970
  function _non_iterable_rest() {
977
971
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
978
972
  }
979
- function _non_iterable_spread() {
980
- throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
981
- }
982
973
  function _object_spread(target) {
983
974
  for(var i = 1; i < arguments.length; i++){
984
975
  var source = arguments[i] != null ? arguments[i] : {};
@@ -1031,9 +1022,6 @@ function _tagged_template_literal(strings, raw) {
1031
1022
  }
1032
1023
  }));
1033
1024
  }
1034
- function _to_consumable_array(arr) {
1035
- return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
1036
- }
1037
1025
  function _unsupported_iterable_to_array(o, minLen) {
1038
1026
  if (!o) return;
1039
1027
  if (typeof o === "string") return _array_like_to_array(o, minLen);
@@ -1204,10 +1192,11 @@ var StatsManager = /*#__PURE__*/ function() {
1204
1192
  assert(remoteEntryPoint, "Can not get remoteEntry entryPoint!");
1205
1193
  var remoteEntryNameChunk = compilation.namedChunks.get(name);
1206
1194
  assert(remoteEntryNameChunk, "Can not get remoteEntry chunk!");
1207
- assert(Array.from(remoteEntryNameChunk.files).filter(function(f) {
1195
+ var files = Array.from(remoteEntryNameChunk.files).filter(function(f) {
1208
1196
  return !f.includes(HOT_UPDATE_SUFFIX);
1209
- }).length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(Array.from(remoteEntryNameChunk.files).join(",")));
1210
- var remoteEntryName = _to_consumable_array(remoteEntryNameChunk.files)[0];
1197
+ });
1198
+ assert(files.length === 1, "remoteEntry chunk should not have multiple files!, current files: ".concat(files.join(",")));
1199
+ var remoteEntryName = files[0];
1211
1200
  return remoteEntryName;
1212
1201
  };
1213
1202
  var globalName = this._containerManager.globalEntryName;
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.0.1",
3
+ "version": "0.0.15",
4
4
  "license": "MIT",
5
5
  "description": "Provide manifest/stats for webpack/rspack MF project .",
6
6
  "keywords": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@module-federation/manifest",
3
- "version": "0.0.0-next-20240308070801",
3
+ "version": "0.0.15",
4
4
  "license": "MIT",
5
5
  "description": "Provide manifest/stats for webpack/rspack MF project .",
6
6
  "keywords": [
@@ -24,8 +24,8 @@
24
24
  "dependencies": {
25
25
  "find-pkg": "2.0.0",
26
26
  "chalk": "3.0.0",
27
- "@module-federation/sdk": "0.0.0-next-20240308070801",
28
- "@module-federation/managers": "0.0.0-next-20240308070801"
27
+ "@module-federation/sdk": "0.0.15",
28
+ "@module-federation/managers": "0.0.15"
29
29
  },
30
30
  "exports": {
31
31
  ".": {