terser 4.3.0 → 4.3.4
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.
Potentially problematic release.
This version of terser might be problematic. Click here for more details.
- package/CHANGELOG.md +25 -0
- package/README.md +30 -0
- package/bin/terser +2 -6
- package/dist/bundle.min.js +1 -1
- package/dist/bundle.min.js.map +1 -1
- package/package.json +5 -7
- package/tools/domprops.js +4 -1
- package/tools/terser.d.ts +6 -7
package/package.json
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
{
|
2
2
|
"name": "terser",
|
3
3
|
"description": "JavaScript parser, mangler/compressor and beautifier toolkit for ES6+",
|
4
|
-
"homepage": "https://
|
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": "4.3.
|
7
|
+
"version": "4.3.4",
|
8
8
|
"engines": {
|
9
9
|
"node": ">=6.0.0"
|
10
10
|
},
|
11
11
|
"maintainers": [
|
12
12
|
"Fábio Santos <fabiosantosart@gmail.com>"
|
13
13
|
],
|
14
|
-
"repository": "https://github.com/
|
14
|
+
"repository": "https://github.com/terser/terser",
|
15
15
|
"main": "dist/bundle.min.js",
|
16
16
|
"types": "tools/terser.d.ts",
|
17
17
|
"bin": {
|
@@ -34,7 +34,6 @@
|
|
34
34
|
"devDependencies": {
|
35
35
|
"acorn": "^7.0.0",
|
36
36
|
"astring": "^1.4.1",
|
37
|
-
"csv": "^5.1.2",
|
38
37
|
"eslint": "^6.3.0",
|
39
38
|
"eslump": "^2.0.0",
|
40
39
|
"mocha": "^5.2.0",
|
@@ -47,9 +46,8 @@
|
|
47
46
|
},
|
48
47
|
"scripts": {
|
49
48
|
"test": "npm run build -- --configTest && node test/run-tests.js",
|
50
|
-
"test:precommit": "npm run build && node test/run-tests.js",
|
51
|
-
"test:mocha": "npm run build -- --configTest && node test/mocha.js",
|
52
49
|
"test:compress": "npm run build -- --configTest && node test/compress.js",
|
50
|
+
"test:mocha": "npm run build -- --configTest && node test/mocha.js",
|
53
51
|
"lint": "eslint lib",
|
54
52
|
"lint-fix": "eslint --fix lib",
|
55
53
|
"build": "rimraf dist/* && rollup --config --silent",
|
@@ -119,6 +117,6 @@
|
|
119
117
|
},
|
120
118
|
"pre-commit": [
|
121
119
|
"lint-fix",
|
122
|
-
"test
|
120
|
+
"test"
|
123
121
|
]
|
124
122
|
}
|
package/tools/domprops.js
CHANGED
@@ -2384,6 +2384,7 @@ export var domprops = [
|
|
2384
2384
|
"caption",
|
2385
2385
|
"caption-side",
|
2386
2386
|
"captionSide",
|
2387
|
+
"capture",
|
2387
2388
|
"captureEvents",
|
2388
2389
|
"captureStackTrace",
|
2389
2390
|
"caretPositionFromPoint",
|
@@ -4102,6 +4103,7 @@ export var domprops = [
|
|
4102
4103
|
"oncandidatewindowupdate",
|
4103
4104
|
"oncanplay",
|
4104
4105
|
"oncanplaythrough",
|
4106
|
+
"once",
|
4105
4107
|
"oncellchange",
|
4106
4108
|
"onchange",
|
4107
4109
|
"onchargingchange",
|
@@ -4420,6 +4422,7 @@ export var domprops = [
|
|
4420
4422
|
"parseFromString",
|
4421
4423
|
"parseInt",
|
4422
4424
|
"participants",
|
4425
|
+
"passive",
|
4423
4426
|
"password",
|
4424
4427
|
"pasteHTML",
|
4425
4428
|
"path",
|
@@ -5613,4 +5616,4 @@ export var domprops = [
|
|
5613
5616
|
"zoom",
|
5614
5617
|
"zoomAndPan",
|
5615
5618
|
"zoomRectScreen"
|
5616
|
-
]
|
5619
|
+
];
|
package/tools/terser.d.ts
CHANGED
@@ -99,11 +99,11 @@ export interface OutputOptions {
|
|
99
99
|
comments?: boolean | 'all' | 'some' | RegExp | Function;
|
100
100
|
ecma?: ECMA;
|
101
101
|
indent_level?: number;
|
102
|
-
indent_start?:
|
102
|
+
indent_start?: number;
|
103
103
|
inline_script?: boolean;
|
104
104
|
ie8?: boolean;
|
105
105
|
keep_quoted_props?: boolean;
|
106
|
-
max_line_len?:
|
106
|
+
max_line_len?: number | false;
|
107
107
|
preamble?: string;
|
108
108
|
quote_keys?: boolean;
|
109
109
|
quote_style?: OutputQuoteStyle;
|
@@ -282,17 +282,14 @@ declare class AST_Accessor extends AST_Lambda {
|
|
282
282
|
|
283
283
|
declare class AST_Function extends AST_Lambda {
|
284
284
|
constructor(props?: object);
|
285
|
-
inlined: boolean;
|
286
285
|
}
|
287
286
|
|
288
287
|
declare class AST_Arrow extends AST_Lambda {
|
289
288
|
constructor(props?: object);
|
290
|
-
inlined: boolean;
|
291
289
|
}
|
292
290
|
|
293
291
|
declare class AST_Defun extends AST_Lambda {
|
294
292
|
constructor(props?: object);
|
295
|
-
inlined: boolean;
|
296
293
|
}
|
297
294
|
|
298
295
|
declare class AST_Class extends AST_Scope {
|
@@ -300,7 +297,6 @@ declare class AST_Class extends AST_Scope {
|
|
300
297
|
name: AST_SymbolClass | AST_SymbolDefClass | null;
|
301
298
|
extends: AST_Node | null;
|
302
299
|
properties: AST_ObjectProperty[];
|
303
|
-
inlined: boolean;
|
304
300
|
}
|
305
301
|
|
306
302
|
declare class AST_DefClass extends AST_Class {
|
@@ -729,7 +725,10 @@ declare class AST_Number extends AST_Constant {
|
|
729
725
|
|
730
726
|
declare class AST_RegExp extends AST_Constant {
|
731
727
|
constructor(props?: object);
|
732
|
-
value:
|
728
|
+
value: {
|
729
|
+
source: string,
|
730
|
+
flags: string
|
731
|
+
};
|
733
732
|
}
|
734
733
|
|
735
734
|
declare class AST_Atom extends AST_Constant {
|