@node-minify/sqwish 8.0.5-beta.0 → 8.0.6
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.
- package/README.md +2 -2
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<p align="center"><img src="/static/node-minify.
|
|
1
|
+
<p align="center"><img src="/static/node-minify.svg" width="348" alt="node-minify"></p>
|
|
2
2
|
|
|
3
3
|
<p align="center">A very light minifier Node.js module.</p>
|
|
4
4
|
|
|
@@ -32,7 +32,7 @@ minify({
|
|
|
32
32
|
compressor: sqwish,
|
|
33
33
|
input: 'foo.css',
|
|
34
34
|
output: 'bar.css',
|
|
35
|
-
callback: function(err, min) {}
|
|
35
|
+
callback: function (err, min) {}
|
|
36
36
|
});
|
|
37
37
|
```
|
|
38
38
|
|
package/dist/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
var import_sqwish = __toESM(require("sqwish"));
|
|
27
27
|
var import_utils = require("@node-minify/utils");
|
|
28
28
|
var minifySqwish = ({ settings, content, callback, index }) => {
|
|
29
|
-
const contentMinified = import_sqwish.default.minify(content, settings
|
|
29
|
+
const contentMinified = import_sqwish.default.minify(content, settings?.options?.strict);
|
|
30
30
|
if (settings && !settings.content && settings.output) {
|
|
31
31
|
import_utils.utils.writeFile({ file: settings.output, content: contentMinified, index });
|
|
32
32
|
}
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2023 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport sqwish from 'sqwish';\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Run sqwish.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst minifySqwish = ({ settings, content, callback, index }: MinifierOptions) => {\n const contentMinified = sqwish.minify(content, settings
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2023 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport sqwish from 'sqwish';\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Run sqwish.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst minifySqwish = ({ settings, content, callback, index }: MinifierOptions) => {\n const contentMinified = sqwish.minify(content, settings?.options?.strict);\n if (settings && !settings.content && settings.output) {\n utils.writeFile({ file: settings.output, content: contentMinified, index });\n }\n if (callback) {\n return callback(null, contentMinified);\n }\n return contentMinified;\n};\n\n/**\n * Expose `minifySqwish()`.\n */\nminifySqwish.default = minifySqwish;\nexport = minifySqwish;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AASA,oBAAmB;AACnB,mBAAsB;AAUtB,IAAM,eAAe,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAChF,QAAM,kBAAkB,cAAAA,QAAO,OAAO,SAAS,UAAU,SAAS,MAAM;AACxE,MAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AACpD,uBAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,iBAAiB,MAAM,CAAC;AAAA,EAC5E;AACA,MAAI,UAAU;AACZ,WAAO,SAAS,MAAM,eAAe;AAAA,EACvC;AACA,SAAO;AACT;AAKA,aAAa,UAAU;AACvB,iBAAS;","names":["sqwish"]}
|
package/dist/index.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { utils } from "@node-minify/utils";
|
|
|
9
9
|
var require_src = __commonJS({
|
|
10
10
|
"src/index.ts"(exports, module) {
|
|
11
11
|
var minifySqwish = ({ settings, content, callback, index }) => {
|
|
12
|
-
const contentMinified = sqwish.minify(content, settings
|
|
12
|
+
const contentMinified = sqwish.minify(content, settings?.options?.strict);
|
|
13
13
|
if (settings && !settings.content && settings.output) {
|
|
14
14
|
utils.writeFile({ file: settings.output, content: contentMinified, index });
|
|
15
15
|
}
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2023 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport sqwish from 'sqwish';\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Run sqwish.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst minifySqwish = ({ settings, content, callback, index }: MinifierOptions) => {\n const contentMinified = sqwish.minify(content, settings
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2023 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport sqwish from 'sqwish';\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Run sqwish.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst minifySqwish = ({ settings, content, callback, index }: MinifierOptions) => {\n const contentMinified = sqwish.minify(content, settings?.options?.strict);\n if (settings && !settings.content && settings.output) {\n utils.writeFile({ file: settings.output, content: contentMinified, index });\n }\n if (callback) {\n return callback(null, contentMinified);\n }\n return contentMinified;\n};\n\n/**\n * Expose `minifySqwish()`.\n */\nminifySqwish.default = minifySqwish;\nexport = minifySqwish;\n"],"mappings":";;;;;;AASA,OAAO,YAAY;AACnB,SAAS,aAAa;AAVtB;AAAA;AAoBA,QAAM,eAAe,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAChF,YAAM,kBAAkB,OAAO,OAAO,SAAS,UAAU,SAAS,MAAM;AACxE,UAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AACpD,cAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,iBAAiB,MAAM,CAAC;AAAA,MAC5E;AACA,UAAI,UAAU;AACZ,eAAO,SAAS,MAAM,eAAe;AAAA,MACvC;AACA,aAAO;AAAA,IACT;AAKA,iBAAa,UAAU;AACvB,qBAAS;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-minify/sqwish",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.6",
|
|
4
4
|
"description": "sqwish plugin for @node-minify",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"compressor",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"prepublishOnly": "pnpm build"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@node-minify/utils": "8.0.
|
|
48
|
+
"@node-minify/utils": "8.0.6",
|
|
49
49
|
"sqwish": "0.2.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@node-minify/types": "8.0.
|
|
52
|
+
"@node-minify/types": "8.0.6"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "9fb532af458cb6416ecfb7abfb9cc0a3b9cb42e1"
|
|
55
55
|
}
|