babel-plugin-polyfill-corejs3
Advanced tools
Comparing version 0.9.0 to 0.10.0
@@ -28,3 +28,3 @@ "use strict"; | ||
const SuppressedErrorDependencies = ["esnext.suppressed-error.constructor", ...ErrorDependencies]; | ||
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", "es.array-buffer.slice", "esnext.array-buffer.detached", "esnext.array-buffer.transfer", "esnext.array-buffer.transfer-to-fixed-length", "esnext.typed-array.filter-reject", "esnext.typed-array.group-by", "esnext.typed-array.to-spliced", "esnext.typed-array.unique-by"]; | ||
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", "es.array-buffer.slice", "es.data-view", "es.array-buffer.detached", "es.array-buffer.transfer", "es.array-buffer.transfer-to-fixed-length", "esnext.typed-array.filter-reject", "esnext.typed-array.group-by", "esnext.typed-array.to-spliced", "esnext.typed-array.unique-by"]; | ||
const PromiseDependencies = ["es.promise", "es.object.to-string"]; | ||
@@ -46,8 +46,8 @@ exports.PromiseDependencies = PromiseDependencies; | ||
exports.DecoratorMetadataDependencies = DecoratorMetadataDependencies; | ||
const TypedArrayStaticMethods = { | ||
from: define(null, ["es.typed-array.from", ...TypedArrayDependencies]), | ||
fromAsync: define(null, ["esnext.typed-array.from-async", ...PromiseDependenciesWithIterators, ...TypedArrayDependencies]), | ||
of: define(null, ["es.typed-array.of", ...TypedArrayDependencies]) | ||
}; | ||
const DataViewDependencies = ["es.data-view", "es.array-buffer.slice", "es.object.to-string"]; | ||
const TypedArrayStaticMethods = base => ({ | ||
from: define(null, ["es.typed-array.from", base, ...TypedArrayDependencies]), | ||
fromAsync: define(null, ["esnext.typed-array.from-async", base, ...PromiseDependenciesWithIterators, ...TypedArrayDependencies]), | ||
of: define(null, ["es.typed-array.of", base, ...TypedArrayDependencies]) | ||
}); | ||
const DataViewDependencies = ["es.data-view", "es.array-buffer.constructor", "es.array-buffer.slice", "es.array-buffer.detached", "es.array-buffer.transfer", "es.array-buffer.transfer-to-fixed-length", "es.object.to-string"]; | ||
const BuiltIns = { | ||
@@ -57,3 +57,3 @@ 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]), | ||
AggregateError: define("aggregate-error", ["es.aggregate-error", ...ErrorDependencies, ...CommonIteratorsWithTag, "es.aggregate-error.cause"]), | ||
ArrayBuffer: define(null, ["es.array-buffer.constructor", "es.array-buffer.slice", "es.object.to-string"]), | ||
ArrayBuffer: define(null, ["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"]), | ||
DataView: define(null, DataViewDependencies), | ||
@@ -89,3 +89,3 @@ Date: define(null, ["es.date.to-string"]), | ||
URIError: define(null, ErrorDependencies), | ||
URL: define("url/index", ["web.url", ...URLSearchParamsDependencies]), | ||
URL: define("url/index", ["web.url", "web.url.to-json", ...URLSearchParamsDependencies]), | ||
URLSearchParams: define("url-search-params/index", URLSearchParamsDependencies), | ||
@@ -145,3 +145,3 @@ WeakMap: define("weak-map/index", WeakMapDependencies), | ||
rawJSON: define("json/raw-json", ["esnext.json.raw-json", "es.object.create", "es.object.freeze"]), | ||
stringify: define("json/stringify", ["es.json.stringify"], "es.symbol") | ||
stringify: define("json/stringify", ["es.json.stringify", "es.date.to-json"], "es.symbol") | ||
}, | ||
@@ -183,4 +183,4 @@ Math: { | ||
from: define(null, ["esnext.map.from", ...MapDependencies]), | ||
groupBy: define(null, ["es.map.group-by", ...MapDependencies]), | ||
keyBy: define(null, ["esnext.map.key-by", ...MapDependencies]), | ||
groupBy: define("map/group-by", ["es.map.group-by", ...MapDependencies]), | ||
keyBy: define("map/key-by", ["esnext.map.key-by", ...MapDependencies]), | ||
of: define(null, ["esnext.map.of", ...MapDependencies]) | ||
@@ -228,7 +228,7 @@ }, | ||
all: define(null, PromiseDependenciesWithIterators), | ||
allSettled: define(null, ["es.promise.all-settled", ...PromiseDependenciesWithIterators]), | ||
any: define(null, ["es.promise.any", "es.aggregate-error", ...PromiseDependenciesWithIterators]), | ||
allSettled: define("promise/all-settled", ["es.promise.all-settled", ...PromiseDependenciesWithIterators]), | ||
any: define("promise/any", ["es.promise.any", "es.aggregate-error", ...PromiseDependenciesWithIterators]), | ||
race: define(null, PromiseDependenciesWithIterators), | ||
try: define(null, ["esnext.promise.try", ...PromiseDependencies]), | ||
withResolvers: define(null, ["es.promise.with-resolvers", ...PromiseDependencies]) | ||
try: define("promise/try", ["esnext.promise.try", ...PromiseDependencies]), | ||
withResolvers: define("promise/with-resolvers", ["es.promise.with-resolvers", ...PromiseDependencies]) | ||
}, | ||
@@ -311,14 +311,14 @@ Reflect: { | ||
}, | ||
Int8Array: TypedArrayStaticMethods, | ||
Int8Array: TypedArrayStaticMethods("es.typed-array.int8-array"), | ||
Uint8Array: _extends({ | ||
fromBase64: define(null, ["esnext.uint8-array.from-base64", ...TypedArrayDependencies]), | ||
fromHex: define(null, ["esnext.uint8-array.from-hex", ...TypedArrayDependencies]) | ||
}, TypedArrayStaticMethods), | ||
Uint8ClampedArray: TypedArrayStaticMethods, | ||
Int16Array: TypedArrayStaticMethods, | ||
Uint16Array: TypedArrayStaticMethods, | ||
Int32Array: TypedArrayStaticMethods, | ||
Uint32Array: TypedArrayStaticMethods, | ||
Float32Array: TypedArrayStaticMethods, | ||
Float64Array: TypedArrayStaticMethods, | ||
}, TypedArrayStaticMethods("es.typed-array.uint8-array")), | ||
Uint8ClampedArray: TypedArrayStaticMethods("es.typed-array.uint8-clamped-array"), | ||
Int16Array: TypedArrayStaticMethods("es.typed-array.int16-array"), | ||
Uint16Array: TypedArrayStaticMethods("es.typed-array.uint16-array"), | ||
Int32Array: TypedArrayStaticMethods("es.typed-array.int32-array"), | ||
Uint32Array: TypedArrayStaticMethods("es.typed-array.uint32-array"), | ||
Float32Array: TypedArrayStaticMethods("es.typed-array.float32-array"), | ||
Float64Array: TypedArrayStaticMethods("es.typed-array.float64-array"), | ||
WebAssembly: { | ||
@@ -435,3 +435,3 @@ CompileError: define(null, ErrorDependencies), | ||
toISOString: define(null, ["es.date.to-iso-string"]), | ||
toJSON: define(null, ["es.date.to-json", "web.url.to-json"]), | ||
toJSON: define(null, ["es.date.to-json"]), | ||
toPrecision: define(null, ["es.number.to-precision"]), | ||
@@ -438,0 +438,0 @@ toReversed: define("instance/to-reversed", ["es.array.to-reversed"]), |
@@ -144,2 +144,3 @@ "use strict"; | ||
maybeInjectGlobal(deps, utils); | ||
return true; | ||
}, | ||
@@ -146,0 +147,0 @@ usagePure(meta, utils, path) { |
@@ -6,3 +6,3 @@ "use strict"; | ||
// This file is automatically generated by scripts/build-corejs3-shipped-proposals.mjs | ||
var _default = new Set(["esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.array-buffer.detached", "esnext.array-buffer.transfer", "esnext.array-buffer.transfer-to-fixed-length", "esnext.iterator.constructor", "esnext.iterator.drop", "esnext.iterator.every", "esnext.iterator.filter", "esnext.iterator.find", "esnext.iterator.flat-map", "esnext.iterator.for-each", "esnext.iterator.from", "esnext.iterator.map", "esnext.iterator.reduce", "esnext.iterator.some", "esnext.iterator.take", "esnext.iterator.to-array", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.set.difference.v2", "esnext.set.intersection.v2", "esnext.set.is-disjoint-from.v2", "esnext.set.is-subset-of.v2", "esnext.set.is-superset-of.v2", "esnext.set.symmetric-difference.v2", "esnext.set.union.v2", "esnext.symbol.async-dispose", "esnext.symbol.dispose"]); | ||
var _default = new Set(["esnext.suppressed-error.constructor", "esnext.array.from-async", "esnext.array.group", "esnext.array.group-to-map", "esnext.iterator.constructor", "esnext.iterator.drop", "esnext.iterator.every", "esnext.iterator.filter", "esnext.iterator.find", "esnext.iterator.flat-map", "esnext.iterator.for-each", "esnext.iterator.from", "esnext.iterator.map", "esnext.iterator.reduce", "esnext.iterator.some", "esnext.iterator.take", "esnext.iterator.to-array", "esnext.json.is-raw-json", "esnext.json.parse", "esnext.json.raw-json", "esnext.set.difference.v2", "esnext.set.intersection.v2", "esnext.set.is-disjoint-from.v2", "esnext.set.is-subset-of.v2", "esnext.set.is-superset-of.v2", "esnext.set.symmetric-difference.v2", "esnext.set.union.v2", "esnext.symbol.async-dispose", "esnext.symbol.dispose", "esnext.symbol.metadata"]); | ||
exports.default = _default; |
{ | ||
"name": "babel-plugin-polyfill-corejs3", | ||
"version": "0.9.0", | ||
"version": "0.10.0", | ||
"description": "A Babel plugin to inject imports to core-js@3 polyfills", | ||
@@ -29,4 +29,4 @@ "repository": { | ||
"dependencies": { | ||
"@babel/helper-define-polyfill-provider": "^0.5.0", | ||
"core-js-compat": "^3.34.0" | ||
"@babel/helper-define-polyfill-provider": "^0.6.0", | ||
"core-js-compat": "^3.36.0" | ||
}, | ||
@@ -43,4 +43,4 @@ "devDependencies": { | ||
"@babel/plugin-transform-spread": "^7.22.5", | ||
"core-js": "^3.34.0", | ||
"core-js-pure": "^3.34.0" | ||
"core-js": "^3.36.0", | ||
"core-js-pure": "^3.36.0" | ||
}, | ||
@@ -50,3 +50,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "9738ea2a12643376a52c9be30c20ac19426a88cb" | ||
"gitHead": "58703f07c9cff9f27d145215265042094739a175" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
192423
1579
+ Added@babel/helper-define-polyfill-provider@0.6.2(transitive)
- Removed@babel/helper-define-polyfill-provider@0.5.0(transitive)
Updatedcore-js-compat@^3.36.0