@node-minify/crass 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/crass.js +1 -8
  2. package/package.json +3 -3
package/lib/crass.js CHANGED
@@ -1,11 +1,8 @@
1
1
  "use strict";
2
2
 
3
3
  var _crass = _interopRequireDefault(require("crass"));
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 minifyCrass = ({
30
27
  index
31
28
  }) => {
32
29
  const contentMinified = _crass.default.parse(content).optimize().toString();
33
-
34
30
  if (!settings.content) {
35
31
  _utils.utils.writeFile({
36
32
  file: settings.output,
@@ -38,16 +34,13 @@ const minifyCrass = ({
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 `minifyCrass()`.
50
45
  */
51
-
52
-
53
46
  module.exports = minifyCrass;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/crass",
3
- "version": "7.0.0",
3
+ "version": "7.1.0",
4
4
  "description": "crass 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",
36
+ "@node-minify/utils": "^7.1.0",
37
37
  "crass": "0.12.3"
38
38
  },
39
- "gitHead": "8b5bda6f1ac9fe7180006f2a19ec3253e8fff4ec"
39
+ "gitHead": "94cef2d5d653c3bddc3e603b4e25c135b0b6f4b3"
40
40
  }