@node-minify/no-compress 8.0.1-beta.0 → 8.0.2-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 +4 -8
- package/dist/index.js +3 -25
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -6,13 +6,9 @@ import { MinifierOptions } from '@node-minify/types';
|
|
|
6
6
|
* MIT Licensed
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
* @param {String} content
|
|
14
|
-
* @param {Function} callback
|
|
15
|
-
*/
|
|
16
|
-
declare const noCompress: ({ settings, content, callback, index }: MinifierOptions) => any;
|
|
9
|
+
declare const noCompress: {
|
|
10
|
+
({ settings, content, callback, index }: MinifierOptions): any;
|
|
11
|
+
default: any;
|
|
12
|
+
};
|
|
17
13
|
|
|
18
14
|
export { noCompress as default };
|
package/dist/index.js
CHANGED
|
@@ -1,27 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all)
|
|
7
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
8
|
-
};
|
|
9
|
-
var __copyProps = (to, from, except, desc) => {
|
|
10
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
-
for (let key of __getOwnPropNames(from))
|
|
12
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
13
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
14
|
-
}
|
|
15
|
-
return to;
|
|
16
|
-
};
|
|
17
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
1
|
+
"use strict";
|
|
18
2
|
|
|
19
3
|
// src/index.ts
|
|
20
|
-
var src_exports = {};
|
|
21
|
-
__export(src_exports, {
|
|
22
|
-
default: () => src_default
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(src_exports);
|
|
25
4
|
var import_utils = require("@node-minify/utils");
|
|
26
5
|
var noCompress = ({ settings, content, callback, index }) => {
|
|
27
6
|
if (settings && !settings.content) {
|
|
@@ -32,9 +11,8 @@ var noCompress = ({ settings, content, callback, index }) => {
|
|
|
32
11
|
}
|
|
33
12
|
return content;
|
|
34
13
|
};
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
0 && (module.exports = {});
|
|
14
|
+
noCompress.default = noCompress;
|
|
15
|
+
module.exports = noCompress;
|
|
38
16
|
/*!
|
|
39
17
|
* node-minify
|
|
40
18
|
* Copyright(c) 2011-2022 Rodolphe Stoclin
|
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
|
|
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;AACjC,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
|
@@ -1,18 +1,26 @@
|
|
|
1
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
2
|
+
var __commonJS = (cb, mod) => function __require() {
|
|
3
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
4
|
+
};
|
|
5
|
+
|
|
1
6
|
// src/index.ts
|
|
2
7
|
import { utils } from "@node-minify/utils";
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
var require_src = __commonJS({
|
|
9
|
+
"src/index.ts"(exports, module) {
|
|
10
|
+
var noCompress = ({ settings, content, callback, index }) => {
|
|
11
|
+
if (settings && !settings.content) {
|
|
12
|
+
utils.writeFile({ file: settings.output, content, index });
|
|
13
|
+
}
|
|
14
|
+
if (callback) {
|
|
15
|
+
return callback(null, content);
|
|
16
|
+
}
|
|
17
|
+
return content;
|
|
18
|
+
};
|
|
19
|
+
noCompress.default = noCompress;
|
|
20
|
+
module.exports = noCompress;
|
|
9
21
|
}
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
var src_default = noCompress;
|
|
13
|
-
export {
|
|
14
|
-
src_default as default
|
|
15
|
-
};
|
|
22
|
+
});
|
|
23
|
+
export default require_src();
|
|
16
24
|
/*!
|
|
17
25
|
* node-minify
|
|
18
26
|
* Copyright(c) 2011-2022 Rodolphe Stoclin
|
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
|
|
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;AACjC,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.2-beta.0",
|
|
4
4
|
"description": "no compress plugin for @node-minify, only concatenate",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"concatenate"
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"prepublishOnly": "npm run build"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@node-minify/utils": "8.0.
|
|
45
|
+
"@node-minify/utils": "8.0.2-beta.0"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
|
-
"@node-minify/types": "8.0.
|
|
48
|
+
"@node-minify/types": "8.0.2-beta.0"
|
|
49
49
|
},
|
|
50
|
-
"gitHead": "
|
|
50
|
+
"gitHead": "bd2fe186257749fcb9bf7a9ff1ce61fb922c4ade"
|
|
51
51
|
}
|