core-js-builder 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.
Files changed (2) hide show
  1. package/index.js +2 -2
  2. package/package.json +3 -3
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 != null ? filename : '`core-js`';
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 != null) {
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.0",
3
+ "version": "3.32.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.32.0",
25
- "core-js-compat": "3.32.0",
24
+ "core-js": "3.32.1",
25
+ "core-js-compat": "3.32.1",
26
26
  "mkdirp": ">=0.5.5 <1",
27
27
  "webpack": ">=4.46.0 <5"
28
28
  },