terser 5.17.6 → 5.17.7
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/CHANGELOG.md +5 -0
- package/dist/bundle.min.js +4 -3
- package/lib/utils/index.js +1 -1
- package/package.json +8 -9
- package/tools/domprops.js +1 -0
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## v5.17.7
|
4
|
+
- Update some dependencies
|
5
|
+
- Add consistent sorting for `v` RegExp flag
|
6
|
+
- Add `inert` DOM attribute to domprops
|
7
|
+
|
3
8
|
## v5.17.6
|
4
9
|
- Fixes to mozilla AST input and output, for class properties, private properties and static blocks
|
5
10
|
- Fix outputting a shorthand property in quotes when safari10 and ecma=2015 options are enabled
|
package/dist/bundle.min.js
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@jridgewell/source-map')) :
|
3
3
|
typeof define === 'function' && define.amd ? define(['exports', '@jridgewell/source-map'], factory) :
|
4
4
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Terser = {}, global.sourceMap));
|
5
|
-
}(this, (function (exports, sourceMap) { 'use strict';
|
5
|
+
})(this, (function (exports, sourceMap) { 'use strict';
|
6
6
|
|
7
7
|
/***********************************************************************
|
8
8
|
|
@@ -239,7 +239,7 @@ const re_safe_regexp = /^[\\/|\0\s\w^$.[\]()]*$/;
|
|
239
239
|
/** Check if the regexp is safe for Terser to create without risking a RegExp DOS */
|
240
240
|
const regexp_is_safe = (source) => re_safe_regexp.test(source);
|
241
241
|
|
242
|
-
const all_flags = "
|
242
|
+
const all_flags = "dgimsuyv";
|
243
243
|
function sort_regexp_flags(flags) {
|
244
244
|
const existing_flags = new Set(flags.split(""));
|
245
245
|
let out = "";
|
@@ -26641,6 +26641,7 @@ var domprops = [
|
|
26641
26641
|
"indexOf",
|
26642
26642
|
"indexedDB",
|
26643
26643
|
"indicate",
|
26644
|
+
"inert",
|
26644
26645
|
"inertiaDestinationX",
|
26645
26646
|
"inertiaDestinationY",
|
26646
26647
|
"info",
|
@@ -30842,4 +30843,4 @@ exports._default_options = _default_options;
|
|
30842
30843
|
exports._run_cli = run_cli;
|
30843
30844
|
exports.minify = minify;
|
30844
30845
|
|
30845
|
-
}))
|
30846
|
+
}));
|
package/lib/utils/index.js
CHANGED
@@ -237,7 +237,7 @@ const re_safe_regexp = /^[\\/|\0\s\w^$.[\]()]*$/;
|
|
237
237
|
/** Check if the regexp is safe for Terser to create without risking a RegExp DOS */
|
238
238
|
export const regexp_is_safe = (source) => re_safe_regexp.test(source);
|
239
239
|
|
240
|
-
const all_flags = "
|
240
|
+
const all_flags = "dgimsuyv";
|
241
241
|
function sort_regexp_flags(flags) {
|
242
242
|
const existing_flags = new Set(flags.split(""));
|
243
243
|
let out = "";
|
package/package.json
CHANGED
@@ -4,7 +4,7 @@
|
|
4
4
|
"homepage": "https://terser.org",
|
5
5
|
"author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
|
6
6
|
"license": "BSD-2-Clause",
|
7
|
-
"version": "5.17.
|
7
|
+
"version": "5.17.7",
|
8
8
|
"engines": {
|
9
9
|
"node": ">=10"
|
10
10
|
},
|
@@ -44,22 +44,21 @@
|
|
44
44
|
"main.js"
|
45
45
|
],
|
46
46
|
"dependencies": {
|
47
|
-
"@jridgewell/source-map": "^0.3.
|
48
|
-
"acorn": "^8.
|
47
|
+
"@jridgewell/source-map": "^0.3.3",
|
48
|
+
"acorn": "^8.8.2",
|
49
49
|
"commander": "^2.20.0",
|
50
50
|
"source-map-support": "~0.5.20"
|
51
51
|
},
|
52
52
|
"devDependencies": {
|
53
|
-
"@ls-lint/ls-lint": "^1.
|
54
|
-
"astring": "^1.
|
53
|
+
"@ls-lint/ls-lint": "^1.11.2",
|
54
|
+
"astring": "^1.8.5",
|
55
55
|
"eslint": "^7.32.0",
|
56
56
|
"eslump": "^3.0.0",
|
57
57
|
"esm": "^3.2.25",
|
58
58
|
"mocha": "^9.2.0",
|
59
59
|
"pre-commit": "^1.2.2",
|
60
|
-
"
|
61
|
-
"
|
62
|
-
"semver": "^7.3.4",
|
60
|
+
"rollup": "^2.56.3",
|
61
|
+
"semver": "^7.5.1",
|
63
62
|
"source-map": "~0.8.0-beta.0"
|
64
63
|
},
|
65
64
|
"scripts": {
|
@@ -69,7 +68,7 @@
|
|
69
68
|
"lint": "eslint lib",
|
70
69
|
"lint-fix": "eslint --fix lib",
|
71
70
|
"ls-lint": "ls-lint",
|
72
|
-
"build": "
|
71
|
+
"build": "rollup --config --silent",
|
73
72
|
"prepare": "npm run build",
|
74
73
|
"postversion": "echo 'Remember to update the changelog!'"
|
75
74
|
},
|