babel-plugin-polyfill-corejs3 0.12.0 → 0.14.0

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.
@@ -6,7 +6,5 @@ exports.stable = exports.proposals = void 0;
6
6
  // It must _not_ be edited, as all new features should go through direct
7
7
  // injection of core-js-pure imports.
8
8
 
9
- const stable = new Set(["array", "array/from", "array/is-array", "array/of", "clear-immediate", "date/now", "instance/bind", "instance/code-point-at", "instance/concat", "instance/copy-within", "instance/ends-with", "instance/entries", "instance/every", "instance/fill", "instance/filter", "instance/find", "instance/find-index", "instance/flags", "instance/flat", "instance/flat-map", "instance/for-each", "instance/includes", "instance/index-of", "instance/keys", "instance/last-index-of", "instance/map", "instance/pad-end", "instance/pad-start", "instance/reduce", "instance/reduce-right", "instance/repeat", "instance/reverse", "instance/slice", "instance/some", "instance/sort", "instance/splice", "instance/starts-with", "instance/trim", "instance/trim-end", "instance/trim-left", "instance/trim-right", "instance/trim-start", "instance/values", "json/stringify", "map", "math/acosh", "math/asinh", "math/atanh", "math/cbrt", "math/clz32", "math/cosh", "math/expm1", "math/fround", "math/hypot", "math/imul", "math/log10", "math/log1p", "math/log2", "math/sign", "math/sinh", "math/tanh", "math/trunc", "number/epsilon", "number/is-finite", "number/is-integer", "number/is-nan", "number/is-safe-integer", "number/max-safe-integer", "number/min-safe-integer", "number/parse-float", "number/parse-int", "object/assign", "object/create", "object/define-properties", "object/define-property", "object/entries", "object/freeze", "object/from-entries", "object/get-own-property-descriptor", "object/get-own-property-descriptors", "object/get-own-property-names", "object/get-own-property-symbols", "object/get-prototype-of", "object/is", "object/is-extensible", "object/is-frozen", "object/is-sealed", "object/keys", "object/prevent-extensions", "object/seal", "object/set-prototype-of", "object/values", "parse-float", "parse-int", "promise", "queue-microtask", "reflect/apply", "reflect/construct", "reflect/define-property", "reflect/delete-property", "reflect/get", "reflect/get-own-property-descriptor", "reflect/get-prototype-of", "reflect/has", "reflect/is-extensible", "reflect/own-keys", "reflect/prevent-extensions", "reflect/set", "reflect/set-prototype-of", "set", "set-immediate", "set-interval", "set-timeout", "string/from-code-point", "string/raw", "symbol", "symbol/async-iterator", "symbol/for", "symbol/has-instance", "symbol/is-concat-spreadable", "symbol/iterator", "symbol/key-for", "symbol/match", "symbol/replace", "symbol/search", "symbol/species", "symbol/split", "symbol/to-primitive", "symbol/to-string-tag", "symbol/unscopables", "url", "url-search-params", "weak-map", "weak-set"]);
10
- exports.stable = stable;
11
- const proposals = new Set([...stable, "aggregate-error", "composite-key", "composite-symbol", "global-this", "instance/at", "instance/code-points", "instance/match-all", "instance/replace-all", "math/clamp", "math/degrees", "math/deg-per-rad", "math/fscale", "math/iaddh", "math/imulh", "math/isubh", "math/rad-per-deg", "math/radians", "math/scale", "math/seeded-prng", "math/signbit", "math/umulh", "number/from-string", "observable", "reflect/define-metadata", "reflect/delete-metadata", "reflect/get-metadata", "reflect/get-metadata-keys", "reflect/get-own-metadata", "reflect/get-own-metadata-keys", "reflect/has-metadata", "reflect/has-own-metadata", "reflect/metadata", "symbol/dispose", "symbol/observable", "symbol/pattern-match"]);
12
- exports.proposals = proposals;
9
+ const stable = exports.stable = new Set(["array", "array/from", "array/is-array", "array/of", "clear-immediate", "date/now", "instance/bind", "instance/code-point-at", "instance/concat", "instance/copy-within", "instance/ends-with", "instance/entries", "instance/every", "instance/fill", "instance/filter", "instance/find", "instance/find-index", "instance/flags", "instance/flat", "instance/flat-map", "instance/for-each", "instance/includes", "instance/index-of", "instance/keys", "instance/last-index-of", "instance/map", "instance/pad-end", "instance/pad-start", "instance/reduce", "instance/reduce-right", "instance/repeat", "instance/reverse", "instance/slice", "instance/some", "instance/sort", "instance/splice", "instance/starts-with", "instance/trim", "instance/trim-end", "instance/trim-left", "instance/trim-right", "instance/trim-start", "instance/values", "json/stringify", "map", "math/acosh", "math/asinh", "math/atanh", "math/cbrt", "math/clz32", "math/cosh", "math/expm1", "math/fround", "math/hypot", "math/imul", "math/log10", "math/log1p", "math/log2", "math/sign", "math/sinh", "math/tanh", "math/trunc", "number/epsilon", "number/is-finite", "number/is-integer", "number/is-nan", "number/is-safe-integer", "number/max-safe-integer", "number/min-safe-integer", "number/parse-float", "number/parse-int", "object/assign", "object/create", "object/define-properties", "object/define-property", "object/entries", "object/freeze", "object/from-entries", "object/get-own-property-descriptor", "object/get-own-property-descriptors", "object/get-own-property-names", "object/get-own-property-symbols", "object/get-prototype-of", "object/is", "object/is-extensible", "object/is-frozen", "object/is-sealed", "object/keys", "object/prevent-extensions", "object/seal", "object/set-prototype-of", "object/values", "parse-float", "parse-int", "promise", "queue-microtask", "reflect/apply", "reflect/construct", "reflect/define-property", "reflect/delete-property", "reflect/get", "reflect/get-own-property-descriptor", "reflect/get-prototype-of", "reflect/has", "reflect/is-extensible", "reflect/own-keys", "reflect/prevent-extensions", "reflect/set", "reflect/set-prototype-of", "set", "set-immediate", "set-interval", "set-timeout", "string/from-code-point", "string/raw", "symbol", "symbol/async-iterator", "symbol/for", "symbol/has-instance", "symbol/is-concat-spreadable", "symbol/iterator", "symbol/key-for", "symbol/match", "symbol/replace", "symbol/search", "symbol/species", "symbol/split", "symbol/to-primitive", "symbol/to-string-tag", "symbol/unscopables", "url", "url-search-params", "weak-map", "weak-set"]);
10
+ const proposals = exports.proposals = new Set([...stable, "aggregate-error", "composite-key", "composite-symbol", "global-this", "instance/at", "instance/code-points", "instance/match-all", "instance/replace-all", "math/clamp", "math/degrees", "math/deg-per-rad", "math/fscale", "math/iaddh", "math/imulh", "math/isubh", "math/rad-per-deg", "math/radians", "math/scale", "math/seeded-prng", "math/signbit", "math/umulh", "number/from-string", "observable", "reflect/define-metadata", "reflect/delete-metadata", "reflect/get-metadata", "reflect/get-metadata-keys", "reflect/get-own-metadata", "reflect/get-own-metadata-keys", "reflect/has-metadata", "reflect/has-own-metadata", "reflect/metadata", "symbol/dispose", "symbol/observable", "symbol/pattern-match"]);
@@ -3,8 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.StaticProperties = exports.PromiseDependenciesWithIterators = exports.PromiseDependencies = exports.InstanceProperties = exports.DecoratorMetadataDependencies = exports.CommonIterators = exports.BuiltIns = void 0;
5
5
  var _data = _interopRequireDefault(require("../core-js-compat/data.js"));
6
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
7
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
7
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
8
8
  const polyfillsOrder = {};
9
9
  Object.keys(_data.default).forEach((name, index) => {
10
10
  polyfillsOrder[name] = index;
@@ -19,45 +19,41 @@ const define = (pure, global, name = global[0], exclude) => {
19
19
  };
20
20
  const typed = (...modules) => define(null, [...modules, ...TypedArrayDependencies]);
21
21
  const ArrayNatureIterators = ["es.array.iterator", "web.dom-collections.iterator"];
22
- const CommonIterators = ["es.string.iterator", ...ArrayNatureIterators];
23
- exports.CommonIterators = CommonIterators;
22
+ const CommonIterators = exports.CommonIterators = ["es.string.iterator", ...ArrayNatureIterators];
24
23
  const ArrayNatureIteratorsWithTag = ["es.object.to-string", ...ArrayNatureIterators];
25
24
  const CommonIteratorsWithTag = ["es.object.to-string", ...CommonIterators];
26
25
  const ErrorDependencies = ["es.error.cause", "es.error.to-string"];
27
- const SuppressedErrorDependencies = ["esnext.suppressed-error.constructor", ...ErrorDependencies];
26
+ const SuppressedErrorDependencies = ["es.suppressed-error.constructor", ...ErrorDependencies];
28
27
  const ArrayBufferDependencies = ["es.array-buffer.constructor", "es.array-buffer.slice", "es.data-view", "es.array-buffer.detached", "es.array-buffer.transfer", "es.array-buffer.transfer-to-fixed-length", "es.object.to-string"];
29
28
  const TypedArrayDependencies = ["es.typed-array.at", "es.typed-array.copy-within", "es.typed-array.every", "es.typed-array.fill", "es.typed-array.filter", "es.typed-array.find", "es.typed-array.find-index", "es.typed-array.find-last", "es.typed-array.find-last-index", "es.typed-array.for-each", "es.typed-array.includes", "es.typed-array.index-of", "es.typed-array.iterator", "es.typed-array.join", "es.typed-array.last-index-of", "es.typed-array.map", "es.typed-array.reduce", "es.typed-array.reduce-right", "es.typed-array.reverse", "es.typed-array.set", "es.typed-array.slice", "es.typed-array.some", "es.typed-array.sort", "es.typed-array.subarray", "es.typed-array.to-locale-string", "es.typed-array.to-reversed", "es.typed-array.to-sorted", "es.typed-array.to-string", "es.typed-array.with", "es.object.to-string", "es.array.iterator", "esnext.typed-array.filter-reject", "esnext.typed-array.group-by", "esnext.typed-array.to-spliced", "esnext.typed-array.unique-by", ...ArrayBufferDependencies];
30
- const PromiseDependencies = ["es.promise", "es.object.to-string"];
31
- exports.PromiseDependencies = PromiseDependencies;
32
- const PromiseDependenciesWithIterators = [...PromiseDependencies, ...CommonIterators];
33
- exports.PromiseDependenciesWithIterators = PromiseDependenciesWithIterators;
29
+ const PromiseDependencies = exports.PromiseDependencies = ["es.promise", "es.object.to-string"];
30
+ const PromiseDependenciesWithIterators = exports.PromiseDependenciesWithIterators = [...PromiseDependencies, ...CommonIterators];
34
31
  const SymbolDependencies = ["es.symbol", "es.symbol.description", "es.object.to-string"];
35
- const MapDependencies = ["es.map", "esnext.map.delete-all", "esnext.map.emplace", "esnext.map.every", "esnext.map.filter", "esnext.map.find", "esnext.map.find-key", "esnext.map.get-or-insert", "esnext.map.get-or-insert-computed", "esnext.map.includes", "esnext.map.key-of", "esnext.map.map-keys", "esnext.map.map-values", "esnext.map.merge", "esnext.map.reduce", "esnext.map.some", "esnext.map.update", ...CommonIteratorsWithTag];
32
+ const MapDependencies = ["es.map", "es.map.get-or-insert", "es.map.get-or-insert-computed", "esnext.map.delete-all", "esnext.map.emplace", "esnext.map.every", "esnext.map.filter", "esnext.map.find", "esnext.map.find-key", "esnext.map.includes", "esnext.map.key-of", "esnext.map.map-keys", "esnext.map.map-values", "esnext.map.merge", "esnext.map.reduce", "esnext.map.some", "esnext.map.update", ...CommonIteratorsWithTag];
36
33
  const SetDependencies = ["es.set", "es.set.difference.v2", "es.set.intersection.v2", "es.set.is-disjoint-from.v2", "es.set.is-subset-of.v2", "es.set.is-superset-of.v2", "es.set.symmetric-difference.v2", "es.set.union.v2", "esnext.set.add-all", "esnext.set.delete-all", "esnext.set.difference", "esnext.set.every", "esnext.set.filter", "esnext.set.find", "esnext.set.intersection", "esnext.set.is-disjoint-from", "esnext.set.is-subset-of", "esnext.set.is-superset-of", "esnext.set.join", "esnext.set.map", "esnext.set.reduce", "esnext.set.some", "esnext.set.symmetric-difference", "esnext.set.union", ...CommonIteratorsWithTag];
37
- const WeakMapDependencies = ["es.weak-map", "esnext.weak-map.delete-all", "esnext.weak-map.emplace", "esnext.weak-map.get-or-insert", "esnext.weak-map.get-or-insert-computed", ...CommonIteratorsWithTag];
34
+ const WeakMapDependencies = ["es.weak-map", "es.weak-map.get-or-insert", "es.weak-map.get-or-insert-computed", "esnext.weak-map.delete-all", "esnext.weak-map.emplace", ...CommonIteratorsWithTag];
38
35
  const WeakSetDependencies = ["es.weak-set", "esnext.weak-set.add-all", "esnext.weak-set.delete-all", ...CommonIteratorsWithTag];
39
36
  const DOMExceptionDependencies = ["web.dom-exception.constructor", "web.dom-exception.stack", "web.dom-exception.to-string-tag", "es.error.to-string"];
40
37
  const URLSearchParamsDependencies = ["web.url-search-params", "web.url-search-params.delete", "web.url-search-params.has", "web.url-search-params.size", ...CommonIteratorsWithTag];
41
38
  const AsyncIteratorDependencies = ["esnext.async-iterator.constructor", ...PromiseDependencies];
42
39
  const AsyncIteratorProblemMethods = ["esnext.async-iterator.every", "esnext.async-iterator.filter", "esnext.async-iterator.find", "esnext.async-iterator.flat-map", "esnext.async-iterator.for-each", "esnext.async-iterator.map", "esnext.async-iterator.reduce", "esnext.async-iterator.some"];
43
40
  const IteratorDependencies = ["es.iterator.constructor", "es.object.to-string"];
44
- const DecoratorMetadataDependencies = ["esnext.symbol.metadata", "esnext.function.metadata"];
45
- exports.DecoratorMetadataDependencies = DecoratorMetadataDependencies;
41
+ const DecoratorMetadataDependencies = exports.DecoratorMetadataDependencies = ["esnext.symbol.metadata", "esnext.function.metadata"];
46
42
  const TypedArrayStaticMethods = base => ({
47
43
  from: define(null, ["es.typed-array.from", base, ...TypedArrayDependencies]),
48
44
  fromAsync: define(null, ["esnext.typed-array.from-async", base, ...PromiseDependenciesWithIterators, ...TypedArrayDependencies]),
49
45
  of: define(null, ["es.typed-array.of", base, ...TypedArrayDependencies])
50
46
  });
51
47
  const DataViewDependencies = ["es.data-view", ...ArrayBufferDependencies];
52
- const BuiltIns = {
53
- AsyncDisposableStack: define("async-disposable-stack/index", ["esnext.async-disposable-stack.constructor", "es.object.to-string", "esnext.async-iterator.async-dispose", "esnext.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]),
48
+ const BuiltIns = exports.BuiltIns = {
49
+ AsyncDisposableStack: define("async-disposable-stack/index", ["es.async-disposable-stack.constructor", "es.object.to-string", "es.async-iterator.async-dispose", "es.iterator.dispose", ...PromiseDependencies, ...SuppressedErrorDependencies]),
54
50
  AsyncIterator: define("async-iterator/index", AsyncIteratorDependencies),
55
51
  AggregateError: define("aggregate-error", ["es.aggregate-error", ...ErrorDependencies, ...CommonIteratorsWithTag, "es.aggregate-error.cause"]),
56
52
  ArrayBuffer: define(null, ArrayBufferDependencies),
57
53
  DataView: define(null, DataViewDependencies),
58
54
  Date: define(null, ["es.date.to-string"]),
59
55
  DOMException: define("dom-exception/index", DOMExceptionDependencies),
60
- DisposableStack: define("disposable-stack/index", ["esnext.disposable-stack.constructor", "es.object.to-string", "esnext.iterator.dispose", ...SuppressedErrorDependencies]),
56
+ DisposableStack: define("disposable-stack/index", ["es.disposable-stack.constructor", "es.object.to-string", "es.iterator.dispose", ...SuppressedErrorDependencies]),
61
57
  Error: define(null, ErrorDependencies),
62
58
  EvalError: define(null, ErrorDependencies),
63
59
  Float32Array: typed("es.typed-array.float32-array"),
@@ -66,7 +62,7 @@ const BuiltIns = {
66
62
  Int16Array: typed("es.typed-array.int16-array"),
67
63
  Int32Array: typed("es.typed-array.int32-array"),
68
64
  Iterator: define("iterator/index", IteratorDependencies),
69
- Uint8Array: typed("es.typed-array.uint8-array", "esnext.uint8-array.set-from-base64", "esnext.uint8-array.set-from-hex", "esnext.uint8-array.to-base64", "esnext.uint8-array.to-hex"),
65
+ Uint8Array: typed("es.typed-array.uint8-array", "es.uint8-array.set-from-base64", "es.uint8-array.set-from-hex", "es.uint8-array.to-base64", "es.uint8-array.to-hex"),
70
66
  Uint8ClampedArray: typed("es.typed-array.uint8-clamped-array"),
71
67
  Uint16Array: typed("es.typed-array.uint16-array"),
72
68
  Uint32Array: typed("es.typed-array.uint32-array"),
@@ -106,14 +102,13 @@ const BuiltIns = {
106
102
  structuredClone: define("structured-clone", ["web.structured-clone", ...DOMExceptionDependencies, "es.array.iterator", "es.object.keys", "es.object.to-string", "es.map", "es.set"]),
107
103
  unescape: define("unescape", ["es.unescape"])
108
104
  };
109
- exports.BuiltIns = BuiltIns;
110
- const StaticProperties = {
105
+ const StaticProperties = exports.StaticProperties = {
111
106
  AsyncIterator: {
112
107
  from: define("async-iterator/from", ["esnext.async-iterator.from", ...AsyncIteratorDependencies, ...AsyncIteratorProblemMethods, ...CommonIterators])
113
108
  },
114
109
  Array: {
115
110
  from: define("array/from", ["es.array.from", "es.string.iterator"]),
116
- fromAsync: define("array/from-async", ["esnext.array.from-async", ...PromiseDependenciesWithIterators]),
111
+ fromAsync: define("array/from-async", ["es.array.from-async", ...PromiseDependenciesWithIterators]),
117
112
  isArray: define("array/is-array", ["es.array.is-array"]),
118
113
  isTemplateObject: define("array/is-template-object", ["esnext.array.is-template-object"]),
119
114
  of: define("array/of", ["es.array.of"])
@@ -128,22 +123,24 @@ const StaticProperties = {
128
123
  now: define("date/now", ["es.date.now"])
129
124
  },
130
125
  Error: {
131
- isError: define("error/is-error", ["esnext.error.is-error", "es.object.create"])
126
+ isError: define("error/is-error", ["es.error.is-error", "es.object.create"])
132
127
  },
133
128
  Function: {
134
129
  isCallable: define("function/is-callable", ["esnext.function.is-callable"]),
135
130
  isConstructor: define("function/is-constructor", ["esnext.function.is-constructor"])
136
131
  },
137
132
  Iterator: {
138
- concat: define("iterator/concat", ["esnext.iterator.concat", ...IteratorDependencies, ...CommonIterators]),
133
+ concat: define("iterator/concat", ["es.iterator.concat", ...IteratorDependencies, ...CommonIterators]),
139
134
  from: define("iterator/from", ["es.iterator.from", ...IteratorDependencies, ...CommonIterators]),
140
- range: define("iterator/range", ["esnext.iterator.range", ...IteratorDependencies, "es.object.to-string"])
135
+ range: define("iterator/range", ["esnext.iterator.range", ...IteratorDependencies]),
136
+ zip: define("iterator/zip", ["esnext.iterator.zip", ...IteratorDependencies, ...CommonIterators]),
137
+ zipKeyed: define("iterator/zip-keyed", ["esnext.iterator.zip-keyed", "es.object.create", "es.reflect.own-keys", ...IteratorDependencies, ...CommonIterators])
141
138
  },
142
139
  JSON: {
143
- isRawJSON: define("json/is-raw-json", ["esnext.json.is-raw-json"]),
144
- parse: define("json/parse", ["esnext.json.parse", "es.object.keys"]),
145
- rawJSON: define("json/raw-json", ["esnext.json.raw-json", "es.object.create", "es.object.freeze"]),
146
- stringify: define("json/stringify", ["es.json.stringify", "es.date.to-json"], "es.symbol")
140
+ isRawJSON: define("json/is-raw-json", ["es.json.is-raw-json"]),
141
+ parse: define("json/parse", ["es.json.parse", "es.object.keys"]),
142
+ rawJSON: define("json/raw-json", ["es.json.raw-json", "es.object.create", "es.object.freeze"]),
143
+ stringify: define("json/stringify", ["es.json.stringify", "es.date.to-json"])
147
144
  },
148
145
  Math: {
149
146
  DEG_PER_RAD: define("math/deg-per-rad", ["esnext.math.deg-per-rad"]),
@@ -174,7 +171,7 @@ const StaticProperties = {
174
171
  sign: define("math/sign", ["es.math.sign"]),
175
172
  signbit: define("math/signbit", ["esnext.math.signbit"]),
176
173
  sinh: define("math/sinh", ["es.math.sinh"]),
177
- sumPrecise: define("math/sum-precise", ["esnext.math.sum-precise", "es.array.iterator"]),
174
+ sumPrecise: define("math/sum-precise", ["es.math.sum-precise", "es.array.iterator"]),
178
175
  tanh: define("math/tanh", ["es.math.tanh"]),
179
176
  trunc: define("math/trunc", ["es.math.trunc"]),
180
177
  umulh: define("math/umulh", ["esnext.math.umulh"])
@@ -269,10 +266,10 @@ const StaticProperties = {
269
266
  raw: define("string/raw", ["es.string.raw"])
270
267
  },
271
268
  Symbol: {
272
- asyncDispose: define("symbol/async-dispose", ["esnext.symbol.async-dispose", "esnext.async-iterator.async-dispose"]),
269
+ asyncDispose: define("symbol/async-dispose", ["es.symbol.async-dispose", "es.async-iterator.async-dispose"]),
273
270
  asyncIterator: define("symbol/async-iterator", ["es.symbol.async-iterator"]),
274
271
  customMatcher: define("symbol/custom-matcher", ["esnext.symbol.custom-matcher"]),
275
- dispose: define("symbol/dispose", ["esnext.symbol.dispose", "esnext.iterator.dispose"]),
272
+ dispose: define("symbol/dispose", ["es.symbol.dispose", "es.iterator.dispose"]),
276
273
  for: define("symbol/for", [], "es.symbol"),
277
274
  hasInstance: define("symbol/has-instance", ["es.symbol.has-instance", "es.function.has-instance"]),
278
275
  isConcatSpreadable: define("symbol/is-concat-spreadable", ["es.symbol.is-concat-spreadable", "es.array.concat"]),
@@ -311,8 +308,8 @@ const StaticProperties = {
311
308
  },
312
309
  Int8Array: TypedArrayStaticMethods("es.typed-array.int8-array"),
313
310
  Uint8Array: _extends({
314
- fromBase64: define(null, ["esnext.uint8-array.from-base64", ...TypedArrayDependencies]),
315
- fromHex: define(null, ["esnext.uint8-array.from-hex", ...TypedArrayDependencies])
311
+ fromBase64: define(null, ["es.uint8-array.from-base64", ...TypedArrayDependencies]),
312
+ fromHex: define(null, ["es.uint8-array.from-hex", ...TypedArrayDependencies])
316
313
  }, TypedArrayStaticMethods("es.typed-array.uint8-array")),
317
314
  Uint8ClampedArray: TypedArrayStaticMethods("es.typed-array.uint8-clamped-array"),
318
315
  Int16Array: TypedArrayStaticMethods("es.typed-array.int16-array"),
@@ -327,11 +324,10 @@ const StaticProperties = {
327
324
  RuntimeError: define(null, ErrorDependencies)
328
325
  }
329
326
  };
330
- exports.StaticProperties = StaticProperties;
331
327
  ["AggregateError", "EvalError", "RangeError", "ReferenceError", "SuppressedError", "SyntaxError", "TypeError", "URIError"].forEach(ERROR_SUBCLASS => {
332
328
  StaticProperties[ERROR_SUBCLASS] = StaticProperties.Error;
333
329
  });
334
- const InstanceProperties = {
330
+ const InstanceProperties = exports.InstanceProperties = {
335
331
  asIndexedPairs: define(null, ["esnext.async-iterator.as-indexed-pairs", ...AsyncIteratorDependencies, "esnext.iterator.as-indexed-pairs", ...IteratorDependencies]),
336
332
  at: define("instance/at", [
337
333
  // TODO: We should introduce overloaded instance methods definition
@@ -346,6 +342,8 @@ const InstanceProperties = {
346
342
  bind: define("instance/bind", ["es.function.bind"]),
347
343
  blink: define(null, ["es.string.blink"]),
348
344
  bold: define(null, ["es.string.bold"]),
345
+ chunks: define(null, ["esnext.iterator.chunks", ...IteratorDependencies]),
346
+ clamp: define("instance/clamp", ["esnext.number.clamp"]),
349
347
  codePointAt: define("instance/code-point-at", ["es.string.code-point-at"]),
350
348
  codePoints: define("instance/code-points", ["esnext.string.code-points"]),
351
349
  concat: define("instance/concat", ["es.array.concat"], undefined, ["String"]),
@@ -364,19 +362,16 @@ const InstanceProperties = {
364
362
  // "esnext.async-iterator.every",
365
363
  // ...AsyncIteratorDependencies
366
364
  ]),
367
-
368
365
  exec: define(null, ["es.regexp.exec"]),
369
366
  fill: define("instance/fill", ["es.array.fill"]),
370
367
  filter: define("instance/filter", ["es.array.filter", "es.iterator.filter", ...IteratorDependencies
371
368
  // "esnext.async-iterator.filter",
372
369
  ]),
373
-
374
- filterReject: define("instance/filterReject", ["esnext.array.filter-reject"]),
370
+ filterReject: define("instance/filter-reject", ["esnext.array.filter-reject"]),
375
371
  finally: define(null, ["es.promise.finally", ...PromiseDependencies]),
376
372
  find: define("instance/find", ["es.array.find", "es.iterator.find", ...IteratorDependencies
377
373
  // "esnext.async-iterator.find",
378
374
  ]),
379
-
380
375
  findIndex: define("instance/find-index", ["es.array.find-index"]),
381
376
  findLast: define("instance/find-last", ["es.array.find-last"]),
382
377
  findLastIndex: define("instance/find-last-index", ["es.array.find-last-index"]),
@@ -385,7 +380,6 @@ const InstanceProperties = {
385
380
  flatMap: define("instance/flat-map", ["es.array.flat-map", "es.array.unscopables.flat-map", "es.iterator.flat-map", ...IteratorDependencies
386
381
  // "esnext.async-iterator.flat-map",
387
382
  ]),
388
-
389
383
  flat: define("instance/flat", ["es.array.flat", "es.array.unscopables.flat"]),
390
384
  getFloat16: define(null, ["es.data-view.get-float16", ...DataViewDependencies]),
391
385
  getUint8Clamped: define(null, ["esnext.data-view.get-uint8-clamped", ...DataViewDependencies]),
@@ -403,7 +397,7 @@ const InstanceProperties = {
403
397
  indexed: define(null, ["esnext.async-iterator.indexed", ...AsyncIteratorDependencies, "esnext.iterator.indexed", ...IteratorDependencies]),
404
398
  indexOf: define("instance/index-of", ["es.array.index-of"]),
405
399
  isWellFormed: define("instance/is-well-formed", ["es.string.is-well-formed"]),
406
- italic: define(null, ["es.string.italics"]),
400
+ italics: define(null, ["es.string.italics"]),
407
401
  join: define(null, ["es.array.join"]),
408
402
  keys: define("instance/keys", ArrayNatureIteratorsWithTag),
409
403
  lastIndex: define(null, ["esnext.array.last-index"]),
@@ -413,7 +407,6 @@ const InstanceProperties = {
413
407
  map: define("instance/map", ["es.array.map", "es.iterator.map", ...IteratorDependencies
414
408
  // "esnext.async-iterator.map",
415
409
  ]),
416
-
417
410
  match: define(null, ["es.string.match", "es.regexp.exec"]),
418
411
  matchAll: define("instance/match-all", ["es.string.match-all", "es.regexp.exec"]),
419
412
  name: define(null, ["es.function.name"]),
@@ -423,7 +416,6 @@ const InstanceProperties = {
423
416
  reduce: define("instance/reduce", ["es.array.reduce", "es.iterator.reduce", ...IteratorDependencies
424
417
  // "esnext.async-iterator.reduce",
425
418
  ]),
426
-
427
419
  reduceRight: define("instance/reduce-right", ["es.array.reduce-right"]),
428
420
  repeat: define("instance/repeat", ["es.string.repeat"]),
429
421
  replace: define(null, ["es.string.replace", "es.regexp.exec"]),
@@ -434,11 +426,11 @@ const InstanceProperties = {
434
426
  setUint8Clamped: define(null, ["esnext.data-view.set-uint8-clamped", ...DataViewDependencies]),
435
427
  setYear: define(null, ["es.date.set-year"]),
436
428
  slice: define("instance/slice", ["es.array.slice"]),
429
+ sliding: define(null, ["esnext.iterator.sliding", ...IteratorDependencies]),
437
430
  small: define(null, ["es.string.small"]),
438
431
  some: define("instance/some", ["es.array.some", "es.iterator.some", ...IteratorDependencies
439
432
  // "esnext.async-iterator.some",
440
433
  ]),
441
-
442
434
  sort: define("instance/sort", ["es.array.sort"]),
443
435
  splice: define("instance/splice", ["es.array.splice"]),
444
436
  split: define(null, ["es.string.split", "es.regexp.exec"]),
@@ -472,11 +464,11 @@ const InstanceProperties = {
472
464
  unshift: define("instance/unshift", ["es.array.unshift"]),
473
465
  unThis: define("instance/un-this", ["esnext.function.un-this"]),
474
466
  values: define("instance/values", ArrayNatureIteratorsWithTag),
467
+ windows: define(null, ["esnext.iterator.windows", ...IteratorDependencies]),
475
468
  with: define("instance/with", ["es.array.with"]),
476
469
  __defineGetter__: define(null, ["es.object.define-getter"]),
477
470
  __defineSetter__: define(null, ["es.object.define-setter"]),
478
471
  __lookupGetter__: define(null, ["es.object.lookup-getter"]),
479
472
  __lookupSetter__: define(null, ["es.object.lookup-setter"]),
480
473
  ["__proto__"]: define(null, ["es.object.proto"])
481
- };
482
- exports.InstanceProperties = InstanceProperties;
474
+ };
package/lib/index.js CHANGED
@@ -11,10 +11,9 @@ var _usageFilters = _interopRequireDefault(require("./usage-filters"));
11
11
  var _babel = _interopRequireWildcard(require("@babel/core"));
12
12
  var _utils = require("./utils");
13
13
  var _helperDefinePolyfillProvider = _interopRequireDefault(require("@babel/helper-define-polyfill-provider"));
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
16
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
17
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
15
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
16
+ function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
18
17
  const {
19
18
  types: t,
20
19
  template: template
@@ -29,7 +28,7 @@ const esnextFallback = (name, cb) => {
29
28
  if (!_data.default[fallback]) return false;
30
29
  return cb(fallback);
31
30
  };
32
- var _default = (0, _helperDefinePolyfillProvider.default)(function ({
31
+ var _default = exports.default = (0, _helperDefinePolyfillProvider.default)(function ({
33
32
  getUtils,
34
33
  method,
35
34
  shouldInjectPolyfill,
@@ -154,7 +153,6 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({
154
153
  path.replaceWith(t.callExpression(utils.injectDefaultImport((0, _utils.coreJSPureHelper)("is-iterable", useBabelRuntime, ext), "isIterable"), [path.node.right] // meta.kind === "in" narrows this
155
154
  ));
156
155
  }
157
-
158
156
  return;
159
157
  }
160
158
  if (path.parentPath.isUnaryExpression({
@@ -308,5 +306,4 @@ var _default = (0, _helperDefinePolyfillProvider.default)(function ({
308
306
  }
309
307
  }
310
308
  };
311
- });
312
- exports.default = _default;
309
+ });
@@ -3,5 +3,4 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
  // This file is automatically generated by scripts/build-corejs3-shipped-proposals.mjs
6
- var _default = new Set(["esnext.suppressed-error.constructor", "esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.async-disposable-stack.constructor", "esnext.disposable-stack.constructor", "esnext.error.is-error", "esnext.iterator.dispose", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.math.sum-precise", "esnext.symbol.async-dispose", "esnext.symbol.dispose", "esnext.symbol.metadata", "esnext.uint8-array.from-base64", "esnext.uint8-array.from-hex", "esnext.uint8-array.set-from-base64", "esnext.uint8-array.set-from-hex", "esnext.uint8-array.to-base64", "esnext.uint8-array.to-hex"]);
7
- exports.default = _default;
6
+ var _default = exports.default = new Set(["esnext.array.group", "esnext.array.group-to-map", "esnext.iterator.zip", "esnext.iterator.zip-keyed", "esnext.symbol.metadata"]);
@@ -3,8 +3,7 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = canSkipPolyfill;
5
5
  var _babel = _interopRequireWildcard(require("@babel/core"));
6
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
7
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
6
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
8
7
  const {
9
8
  types: t
10
9
  } = _babel.default || _babel;
package/lib/utils.js CHANGED
@@ -10,14 +10,12 @@ exports.isCoreJSSource = isCoreJSSource;
10
10
  exports.maybeMemoizeContext = maybeMemoizeContext;
11
11
  var _babel = _interopRequireWildcard(require("@babel/core"));
12
12
  var _entries = _interopRequireDefault(require("../core-js-compat/entries.js"));
13
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
- function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
15
- function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
13
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
14
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
16
15
  const {
17
16
  types: t
18
17
  } = _babel.default || _babel;
19
- const BABEL_RUNTIME = "@babel/runtime-corejs3";
20
- exports.BABEL_RUNTIME = BABEL_RUNTIME;
18
+ const BABEL_RUNTIME = exports.BABEL_RUNTIME = "@babel/runtime-corejs3";
21
19
  function callMethod(path, id, optionalCall, wrapCallee) {
22
20
  const [context1, context2] = maybeMemoizeContext(path.node, path.scope);
23
21
  let callee = t.callExpression(id, [context1]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "babel-plugin-polyfill-corejs3",
3
- "version": "0.12.0",
3
+ "version": "0.14.0",
4
4
  "description": "A Babel plugin to inject imports to core-js@3 polyfills",
5
5
  "repository": {
6
6
  "type": "git",
@@ -26,24 +26,24 @@
26
26
  "babel-plugin"
27
27
  ],
28
28
  "dependencies": {
29
- "@babel/helper-define-polyfill-provider": "^0.6.4",
30
- "core-js-compat": "^3.41.0"
29
+ "@babel/helper-define-polyfill-provider": "^0.6.6",
30
+ "core-js-compat": "^3.48.0"
31
31
  },
32
32
  "devDependencies": {
33
- "@babel/core": "^7.22.6",
34
- "@babel/helper-plugin-test-runner": "^7.22.5",
35
- "@babel/plugin-proposal-decorators": "^7.22.15",
36
- "@babel/plugin-transform-class-properties": "^7.22.5",
37
- "@babel/plugin-transform-classes": "^7.22.6",
38
- "@babel/plugin-transform-for-of": "^7.22.5",
39
- "@babel/plugin-transform-modules-commonjs": "^7.22.5",
40
- "@babel/plugin-transform-runtime": "^7.22.15",
41
- "@babel/plugin-transform-spread": "^7.22.5",
42
- "core-js": "^3.41.0",
43
- "core-js-pure": "^3.41.0"
33
+ "@babel/core": "^7.28.6",
34
+ "@babel/helper-plugin-test-runner": "^7.27.1",
35
+ "@babel/plugin-proposal-decorators": "^7.28.6",
36
+ "@babel/plugin-transform-class-properties": "^7.28.6",
37
+ "@babel/plugin-transform-classes": "^7.28.6",
38
+ "@babel/plugin-transform-for-of": "^7.27.1",
39
+ "@babel/plugin-transform-modules-commonjs": "^7.28.6",
40
+ "@babel/plugin-transform-runtime": "^7.28.5",
41
+ "@babel/plugin-transform-spread": "^7.28.6",
42
+ "core-js": "^3.48.0",
43
+ "core-js-pure": "^3.48.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@babel/core": "^7.4.0 || ^8.0.0-0 <8.0.0"
47
47
  },
48
- "gitHead": "d87c29c909148920ad18690b63d450c561842298"
48
+ "gitHead": "9b040e303af7d703a57f16d46538d1b0d5462237"
49
49
  }