terser 4.0.2 → 4.1.3

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://github.com/fabiosantoscode/terser",
5
5
  "author": "Mihai Bazon <mihai.bazon@gmail.com> (http://lisperator.net/)",
6
6
  "license": "BSD-2-Clause",
7
- "version": "4.0.2",
7
+ "version": "4.1.3",
8
8
  "engines": {
9
9
  "node": ">=6.0.0"
10
10
  },
@@ -27,30 +27,34 @@
27
27
  "PATRONS.md"
28
28
  ],
29
29
  "dependencies": {
30
- "commander": "^2.19.0",
30
+ "commander": "^2.20.0",
31
31
  "source-map": "~0.6.1",
32
- "source-map-support": "~0.5.10"
32
+ "source-map-support": "~0.5.12"
33
33
  },
34
34
  "devDependencies": {
35
- "acorn": "^6.0.4",
36
- "csv": "^5.1.0",
37
- "escodegen": "^1.11.0",
35
+ "acorn": "^6.1.1",
36
+ "csv": "^5.1.1",
37
+ "escodegen": "^1.11.1",
38
38
  "eslint": "^4.19.1",
39
39
  "eslump": "^2.0.0",
40
- "mocha": "^3.0.0",
41
- "mochallel": "^1.8.6",
40
+ "mocha": "^5.2.0",
41
+ "mochallel": "^2.0.0",
42
42
  "pre-commit": "^1.2.2",
43
- "rimraf": "^2.6.2",
44
- "rollup": "^1.0.1",
45
- "semver": "~5.6.0"
43
+ "rimraf": "^2.6.3",
44
+ "rollup": "^1.13.1",
45
+ "rollup-plugin-terser": "^5.1.1",
46
+ "semver": "^5.7.0"
46
47
  },
47
48
  "scripts": {
48
- "test": "npm run build -- --silent --input=main.tests.js && npm run minify && node test/run-tests.js",
49
+ "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
+ "test:compress": "npm run build -- --configTest && node test/compress.js",
49
53
  "lint": "eslint lib",
50
54
  "lint-fix": "eslint --fix lib",
51
- "build": "rimraf dist/* && rollup -c",
55
+ "build": "rimraf dist/* && rollup --config --silent",
52
56
  "minify": "cd dist && node ../bin/uglifyjsnobundle bundle.js -mc --source-map content=bundle.js.map,includeSources=true -o bundle.min.js",
53
- "prepare": "npm run build && npm run minify",
57
+ "prepare": "npm run build",
54
58
  "postversion": "echo 'Remember to update the changelog!'"
55
59
  },
56
60
  "keywords": [
@@ -83,7 +87,8 @@
83
87
  "describe": false,
84
88
  "it": false,
85
89
  "require": false,
86
- "global": false
90
+ "global": false,
91
+ "process": false
87
92
  },
88
93
  "rules": {
89
94
  "brace-style": [
@@ -115,6 +120,6 @@
115
120
  },
116
121
  "pre-commit": [
117
122
  "lint-fix",
118
- "test"
123
+ "test:precommit"
119
124
  ]
120
125
  }
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env node
2
- /* eslint-env node */
3
- process.env.TERSER_NO_BUNDLE = "1";
4
- require("./uglifyjs");