terser 4.6.0 → 4.6.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/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": "4.6.0",
7
+ "version": "4.6.4",
8
8
  "engines": {
9
9
  "node": ">=6.0.0"
10
10
  },
package/tools/terser.d.ts CHANGED
@@ -92,7 +92,7 @@ export interface MangleOptions {
92
92
  export interface ManglePropertiesOptions {
93
93
  builtins?: boolean;
94
94
  debug?: boolean;
95
- keep_quoted?: boolean;
95
+ keep_quoted?: boolean | 'strict';
96
96
  regex?: RegExp | string;
97
97
  reserved?: string[];
98
98
  }
@@ -101,7 +101,13 @@ export interface OutputOptions {
101
101
  ascii_only?: boolean;
102
102
  beautify?: boolean;
103
103
  braces?: boolean;
104
- comments?: boolean | 'all' | 'some' | RegExp | Function;
104
+ comments?: boolean | 'all' | 'some' | RegExp | ( (node: AST_Node, comment: {
105
+ value: string,
106
+ type: 'comment1' | 'comment2' | 'comment3' | 'comment4',
107
+ pos: number,
108
+ line: number,
109
+ col: number,
110
+ }) => boolean );
105
111
  ecma?: ECMA;
106
112
  ie8?: boolean;
107
113
  indent_level?: number;
@@ -110,6 +116,7 @@ export interface OutputOptions {
110
116
  keep_quoted_props?: boolean;
111
117
  max_line_len?: number | false;
112
118
  preamble?: string;
119
+ preserve_annotations?: boolean;
113
120
  quote_keys?: boolean;
114
121
  quote_style?: OutputQuoteStyle;
115
122
  safari10?: boolean;
@@ -120,6 +127,7 @@ export interface OutputOptions {
120
127
  webkit?: boolean;
121
128
  width?: number;
122
129
  wrap_iife?: boolean;
130
+ wrap_func_args?: boolean;
123
131
  }
124
132
 
125
133
  export enum OutputQuoteStyle {