@node-minify/sqwish 8.0.3-beta.0 → 8.0.5
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/LICENSE +1 -1
- package/README.md +2 -2
- package/dist/index.d.ts +1 -1
- 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/LICENSE
CHANGED
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.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-
|
|
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 && settings.options && 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,YAAY,SAAS,WAAW,SAAS,QAAQ,MAAM;AACtG,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
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-
|
|
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 && settings.options && 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,YAAY,SAAS,WAAW,SAAS,QAAQ,MAAM;AACtG,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.5",
|
|
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.5",
|
|
49
49
|
"sqwish": "0.2.2"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@node-minify/types": "8.0.
|
|
52
|
+
"@node-minify/types": "8.0.5"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "920590d417916e54464d9967e0dceb8b6bb9a784"
|
|
55
55
|
}
|