terser 4.6.3 → 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.3",
7
+ "version": "4.6.4",
8
8
  "engines": {
9
9
  "node": ">=6.0.0"
10
10
  },
package/tools/terser.d.ts CHANGED
@@ -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;
@@ -121,6 +127,7 @@ export interface OutputOptions {
121
127
  webkit?: boolean;
122
128
  width?: number;
123
129
  wrap_iife?: boolean;
130
+ wrap_func_args?: boolean;
124
131
  }
125
132
 
126
133
  export enum OutputQuoteStyle {