@node-minify/sqwish 6.4.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/sqwish.js +1 -8
  2. package/package.json +4 -4
package/lib/sqwish.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _sqwish = _interopRequireDefault(require("sqwish"));
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,7 +27,6 @@ const minifySqwish = ({
30
27
  index
31
28
  }) => {
32
29
  const contentMinified = _sqwish.default.minify(content, settings.options.strict);
33
-
34
30
  if (!settings.content) {
35
31
  _utils.utils.writeFile({
36
32
  file: settings.output,
@@ -38,16 +34,13 @@ const minifySqwish = ({
38
34
  index
39
35
  });
40
36
  }
41
-
42
37
  if (callback) {
43
38
  return callback(null, contentMinified);
44
39
  }
45
-
46
40
  return contentMinified;
47
41
  };
42
+
48
43
  /**
49
44
  * Expose `minifySqwish()`.
50
45
  */
51
-
52
-
53
46
  module.exports = minifySqwish;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/sqwish",
3
- "version": "6.4.0",
3
+ "version": "7.1.0",
4
4
  "description": "sqwish plugin for @node-minify",
5
5
  "keywords": [
6
6
  "compressor",
@@ -13,7 +13,7 @@
13
13
  "license": "MIT",
14
14
  "main": "lib/sqwish.js",
15
15
  "engines": {
16
- "node": ">=12.0.0"
16
+ "node": ">=14.0.0"
17
17
  },
18
18
  "directories": {
19
19
  "lib": "lib",
@@ -33,8 +33,8 @@
33
33
  "url": "https://github.com/srod/node-minify/issues"
34
34
  },
35
35
  "dependencies": {
36
- "@node-minify/utils": "^6.4.0",
36
+ "@node-minify/utils": "^7.1.0",
37
37
  "sqwish": "0.2.2"
38
38
  },
39
- "gitHead": "d529747a661487597e9be510d3d9e2df1bc0f556"
39
+ "gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3"
40
40
  }