core-js-builder 3.32.0 → 3.32.2
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.js +2 -2
- package/package.json +4 -4
package/index.js
CHANGED
|
@@ -36,7 +36,7 @@ module.exports = async function ({
|
|
|
36
36
|
if (!['bundle', 'cjs', 'esm'].includes(format)) throw TypeError('Incorrect output type');
|
|
37
37
|
summary = { comment: normalizeSummary(summary.comment), console: normalizeSummary(summary.console) };
|
|
38
38
|
|
|
39
|
-
const TITLE = filename
|
|
39
|
+
const TITLE = filename !== null || filename !== undefined ? filename : '`core-js`';
|
|
40
40
|
let script = banner;
|
|
41
41
|
let code = '\n';
|
|
42
42
|
|
|
@@ -95,7 +95,7 @@ module.exports = async function ({
|
|
|
95
95
|
} else console.log('\u001B[36mnothing\u001B[0m');
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if (filename
|
|
98
|
+
if (!(filename === null || filename === undefined)) {
|
|
99
99
|
await mkdirp(dirname(filename));
|
|
100
100
|
await writeFile(filename, script);
|
|
101
101
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "core-js-builder",
|
|
3
|
-
"version": "3.32.
|
|
3
|
+
"version": "3.32.2",
|
|
4
4
|
"description": "core-js builder",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -21,10 +21,10 @@
|
|
|
21
21
|
"main": "index.js",
|
|
22
22
|
"types": "index.d.ts",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"core-js": "3.32.
|
|
25
|
-
"core-js-compat": "3.32.
|
|
24
|
+
"core-js": "3.32.2",
|
|
25
|
+
"core-js-compat": "3.32.2",
|
|
26
26
|
"mkdirp": ">=0.5.5 <1",
|
|
27
|
-
"webpack": ">=4.
|
|
27
|
+
"webpack": ">=4.47.0 <5"
|
|
28
28
|
},
|
|
29
29
|
"engines": {
|
|
30
30
|
"node": ">=8.9.0"
|