@node-minify/no-compress 8.0.2-beta.0 → 8.0.3-beta.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.
- 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 +7 -7
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// src/index.ts
|
|
4
4
|
var import_utils = require("@node-minify/utils");
|
|
5
5
|
var noCompress = ({ settings, content, callback, index }) => {
|
|
6
|
-
if (settings && !settings.content) {
|
|
6
|
+
if (settings && !settings.content && settings.output) {
|
|
7
7
|
import_utils.utils.writeFile({ file: settings.output, content, index });
|
|
8
8
|
}
|
|
9
9
|
if (callback) {
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2022 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Just merge, no compression.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst noCompress = ({ settings, content, callback, index }: MinifierOptions) => {\n if (settings && !settings.content) {\n utils.writeFile({ file: settings.output, content, index });\n }\n if (callback) {\n return callback(null, content);\n }\n return content;\n};\n\n/**\n * Expose `noCompress()`.\n */\nnoCompress.default = noCompress;\nexport = noCompress;\n"],"mappings":";;;AASA,mBAAsB;AAUtB,IAAM,aAAa,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAC9E,MAAI,YAAY,CAAC,SAAS,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2022 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Just merge, no compression.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst noCompress = ({ settings, content, callback, index }: MinifierOptions) => {\n if (settings && !settings.content && settings.output) {\n utils.writeFile({ file: settings.output, content, index });\n }\n if (callback) {\n return callback(null, content);\n }\n return content;\n};\n\n/**\n * Expose `noCompress()`.\n */\nnoCompress.default = noCompress;\nexport = noCompress;\n"],"mappings":";;;AASA,mBAAsB;AAUtB,IAAM,aAAa,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAC9E,MAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AACpD,uBAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,MAAM,CAAC;AAAA,EAC3D;AACA,MAAI,UAAU;AACZ,WAAO,SAAS,MAAM,OAAO;AAAA,EAC/B;AACA,SAAO;AACT;AAKA,WAAW,UAAU;AACrB,iBAAS;","names":[]}
|
package/dist/index.mjs
CHANGED
|
@@ -8,7 +8,7 @@ import { utils } from "@node-minify/utils";
|
|
|
8
8
|
var require_src = __commonJS({
|
|
9
9
|
"src/index.ts"(exports, module) {
|
|
10
10
|
var noCompress = ({ settings, content, callback, index }) => {
|
|
11
|
-
if (settings && !settings.content) {
|
|
11
|
+
if (settings && !settings.content && settings.output) {
|
|
12
12
|
utils.writeFile({ file: settings.output, content, index });
|
|
13
13
|
}
|
|
14
14
|
if (callback) {
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2022 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Just merge, no compression.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst noCompress = ({ settings, content, callback, index }: MinifierOptions) => {\n if (settings && !settings.content) {\n utils.writeFile({ file: settings.output, content, index });\n }\n if (callback) {\n return callback(null, content);\n }\n return content;\n};\n\n/**\n * Expose `noCompress()`.\n */\nnoCompress.default = noCompress;\nexport = noCompress;\n"],"mappings":";;;;;;AASA,SAAS,aAAa;AATtB;AAAA;AAmBA,QAAM,aAAa,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAC9E,UAAI,YAAY,CAAC,SAAS,SAAS;
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2022 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport { utils } from '@node-minify/utils';\nimport { MinifierOptions } from '@node-minify/types';\n\n/**\n * Just merge, no compression.\n *\n * @param {Object} settings\n * @param {String} content\n * @param {Function} callback\n */\nconst noCompress = ({ settings, content, callback, index }: MinifierOptions) => {\n if (settings && !settings.content && settings.output) {\n utils.writeFile({ file: settings.output, content, index });\n }\n if (callback) {\n return callback(null, content);\n }\n return content;\n};\n\n/**\n * Expose `noCompress()`.\n */\nnoCompress.default = noCompress;\nexport = noCompress;\n"],"mappings":";;;;;;AASA,SAAS,aAAa;AATtB;AAAA;AAmBA,QAAM,aAAa,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAC9E,UAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AACpD,cAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,MAAM,CAAC;AAAA,MAC3D;AACA,UAAI,UAAU;AACZ,eAAO,SAAS,MAAM,OAAO;AAAA,MAC/B;AACA,aAAO;AAAA,IACT;AAKA,eAAW,UAAU;AACrB,qBAAS;AAAA;AAAA;","names":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node-minify/no-compress",
|
|
3
|
-
"version": "8.0.
|
|
3
|
+
"version": "8.0.3-beta.0",
|
|
4
4
|
"description": "no compress plugin for @node-minify, only concatenate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"concatenate"
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"homepage": "https://github.com/srod/node-minify/tree/master/packages/no-compress#readme",
|
|
10
10
|
"license": "MIT",
|
|
11
11
|
"engines": {
|
|
12
|
-
"node": ">=
|
|
12
|
+
"node": ">=16.0.0"
|
|
13
13
|
},
|
|
14
14
|
"directories": {
|
|
15
15
|
"lib": "dist",
|
|
@@ -38,14 +38,14 @@
|
|
|
38
38
|
},
|
|
39
39
|
"scripts": {
|
|
40
40
|
"clean": "pnpm dlx rimraf dist",
|
|
41
|
-
"build": "
|
|
42
|
-
"prepublishOnly": "
|
|
41
|
+
"build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
|
|
42
|
+
"prepublishOnly": "pnpm build"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@node-minify/utils": "8.0.
|
|
45
|
+
"@node-minify/utils": "8.0.3-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@node-minify/types": "8.0.
|
|
48
|
+
"@node-minify/types": "8.0.3-beta.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "f79e146eed24ca117756cf029eb5005631f12892"
|
|
51
51
|
}
|