@node-minify/uglify-js 7.0.0 → 7.1.0

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.
Files changed (2) hide show
  1. package/lib/uglify-js.js +1 -10
  2. package/package.json +4 -4
package/lib/uglify-js.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _uglifyJs = _interopRequireDefault(require("uglify-js"));
4
-
5
4
  var _utils = require("@node-minify/utils");
6
-
7
5
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
8
-
9
6
  /*!
10
7
  * node-minify
11
8
  * Copyright(c) 2011-2022 Rodolphe Stoclin
@@ -30,13 +27,11 @@ const minifyUglifyJS = ({
30
27
  index
31
28
  }) => {
32
29
  const contentMinified = _uglifyJs.default.minify(content, settings.options);
33
-
34
30
  if (contentMinified.error) {
35
31
  if (callback) {
36
32
  return callback(contentMinified.error);
37
33
  }
38
34
  }
39
-
40
35
  if (contentMinified.map && settings.options.sourceMap) {
41
36
  _utils.utils.writeFile({
42
37
  file: settings.options.sourceMap.filename,
@@ -44,7 +39,6 @@ const minifyUglifyJS = ({
44
39
  index
45
40
  });
46
41
  }
47
-
48
42
  if (!settings.content) {
49
43
  _utils.utils.writeFile({
50
44
  file: settings.output,
@@ -52,16 +46,13 @@ const minifyUglifyJS = ({
52
46
  index
53
47
  });
54
48
  }
55
-
56
49
  if (callback) {
57
50
  return callback(null, contentMinified.code);
58
51
  }
59
-
60
52
  return contentMinified.code;
61
53
  };
54
+
62
55
  /**
63
56
  * Expose `minifyUglifyJS()`.
64
57
  */
65
-
66
-
67
58
  module.exports = minifyUglifyJS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/uglify-js",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "uglify-js plugin for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
@@ -33,8 +33,8 @@
33
33
  "url": "https://github.com/srod/node-minify/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@node-minify/utils": "^7.0.0",
37
- "uglify-js": "3.16.3"
36
+ "@node-minify/utils": "^7.1.0",
37
+ "uglify-js": "3.17.4"
38
38
  },
39
- "gitHead": "8b5bda6f1ac9fe7180006f2a19ec3253e8fff4ec"
39
+ "gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3"
40
40
  }