core-js-compat 3.32.0 → 3.32.1
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/README.md +1 -1
- package/compat.js +2 -2
- package/data.json +3 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ const {
|
|
|
19
19
|
targets, // object with targets for each module
|
|
20
20
|
} = compat({
|
|
21
21
|
targets: '> 1%', // browserslist query or object of minimum environment versions to support, see below
|
|
22
|
-
modules: [ // optional list / filter of modules - regex,
|
|
22
|
+
modules: [ // optional list / filter of modules - regex, string or an array of them:
|
|
23
23
|
'core-js/actual', // - an entry point
|
|
24
24
|
'esnext.array.unique-by', // - a module name (or just a start of a module name)
|
|
25
25
|
/^web\./, // - regex that a module name must satisfy
|
package/compat.js
CHANGED
|
@@ -25,7 +25,7 @@ function getModules(filter) {
|
|
|
25
25
|
|
|
26
26
|
function normalizeModules(option) {
|
|
27
27
|
// TODO: use `.flatMap` in core-js@4
|
|
28
|
-
return new Set(Array.isArray(option) ? [].concat
|
|
28
|
+
return new Set(Array.isArray(option) ? [].concat(...option.map(getModules)) : getModules(option));
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
function checkModule(name, targets) {
|
|
@@ -56,7 +56,7 @@ module.exports = function ({
|
|
|
56
56
|
version = null,
|
|
57
57
|
inverse = false,
|
|
58
58
|
} = {}) {
|
|
59
|
-
if (modules
|
|
59
|
+
if (modules === null || modules === undefined) modules = filter;
|
|
60
60
|
inverse = !!inverse;
|
|
61
61
|
|
|
62
62
|
const parsedTargets = targets ? targetsParser(targets) : null;
|
package/data.json
CHANGED
|
@@ -5892,7 +5892,9 @@
|
|
|
5892
5892
|
"samsung": "14.0"
|
|
5893
5893
|
},
|
|
5894
5894
|
"esnext.promise.try": {},
|
|
5895
|
-
"esnext.promise.with-resolvers": {
|
|
5895
|
+
"esnext.promise.with-resolvers": {
|
|
5896
|
+
"bun": "0.7.1"
|
|
5897
|
+
},
|
|
5896
5898
|
"esnext.reflect.define-metadata": {},
|
|
5897
5899
|
"esnext.reflect.delete-metadata": {},
|
|
5898
5900
|
"esnext.reflect.get-metadata": {},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-compat",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.1",
|
|
4
4
|
"description": "core-js compat",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,6 +21,6 @@
|
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"types": "index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"browserslist": "^4.21.
|
|
24
|
+
"browserslist": "^4.21.10"
|
|
25
25
|
}
|
|
26
26
|
}
|