core-js-builder 3.30.2 → 3.31.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/index.d.ts +4 -44
- package/package.json +3 -3
package/index.d.ts
CHANGED
|
@@ -1,40 +1,4 @@
|
|
|
1
|
-
type
|
|
2
|
-
|
|
3
|
-
type Modules = StringOrRegExp | readonly StringOrRegExp[];
|
|
4
|
-
|
|
5
|
-
type Target =
|
|
6
|
-
| 'android'
|
|
7
|
-
| 'bun'
|
|
8
|
-
| 'chrome'
|
|
9
|
-
| 'chrome-android'
|
|
10
|
-
| 'deno'
|
|
11
|
-
| 'edge'
|
|
12
|
-
| 'electron'
|
|
13
|
-
| 'firefox'
|
|
14
|
-
| 'firefox-android'
|
|
15
|
-
| 'hermes'
|
|
16
|
-
| 'ie'
|
|
17
|
-
| 'ios'
|
|
18
|
-
| 'node'
|
|
19
|
-
| 'opera'
|
|
20
|
-
| 'opera-android'
|
|
21
|
-
| 'phantom'
|
|
22
|
-
| 'quest'
|
|
23
|
-
| 'react-native'
|
|
24
|
-
| 'rhino'
|
|
25
|
-
| 'safari'
|
|
26
|
-
| 'samsung';
|
|
27
|
-
|
|
28
|
-
type BrowserslistQuery = string | ReadonlyArray<string>;
|
|
29
|
-
|
|
30
|
-
type Environments = {
|
|
31
|
-
[target in Target]?: string | number;
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
type Targets = Environments & {
|
|
35
|
-
browsers?: Environments | BrowserslistQuery,
|
|
36
|
-
esmodules?: boolean,
|
|
37
|
-
};
|
|
1
|
+
import type compat from "core-js-compat";
|
|
38
2
|
|
|
39
3
|
type Format = 'bundle' | 'esm' | 'cjs';
|
|
40
4
|
|
|
@@ -50,13 +14,9 @@ type Summary = {
|
|
|
50
14
|
console?: SummaryEntry,
|
|
51
15
|
};
|
|
52
16
|
|
|
53
|
-
type
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/** a blacklist, entry / module / namespace / an array of them, by default - empty list */
|
|
57
|
-
exclude?: Modules,
|
|
58
|
-
/** optional browserslist or core-js-compat format query */
|
|
59
|
-
targets?: Targets | BrowserslistQuery,
|
|
17
|
+
type CompatOptions = Exclude<Parameters<typeof compat.compat>[0], undefined>;
|
|
18
|
+
|
|
19
|
+
type Options = Pick<CompatOptions, "exclude" | "modules" | "targets"> & {
|
|
60
20
|
/** output format, 'bundle' by default, can be 'cjs' or 'esm', and in this case
|
|
61
21
|
* the result will not be bundled and will contain imports of required modules */
|
|
62
22
|
format?: Format,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-builder",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.31.1",
|
|
4
4
|
"description": "core-js builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"types": "index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"core-js": "3.
|
|
25
|
-
"core-js-compat": "3.
|
|
24
|
+
"core-js": "3.31.1",
|
|
25
|
+
"core-js-compat": "3.31.1",
|
|
26
26
|
"mkdirp": ">=0.5.5 <1",
|
|
27
27
|
"webpack": ">=4.46.0 <5"
|
|
28
28
|
},
|