@node-minify/no-compress 8.0.2-beta.0 → 8.0.5-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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 Rodolphe Stoclin
3
+ Copyright (c) 2023 Rodolphe Stoclin
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.d.ts CHANGED
@@ -2,12 +2,12 @@ import { MinifierOptions } from '@node-minify/types';
2
2
 
3
3
  /*!
4
4
  * node-minify
5
- * Copyright(c) 2011-2022 Rodolphe Stoclin
5
+ * Copyright(c) 2011-2023 Rodolphe Stoclin
6
6
  * MIT Licensed
7
7
  */
8
8
 
9
9
  declare const noCompress: {
10
- ({ settings, content, callback, index }: MinifierOptions): any;
10
+ ({ settings, content, callback, index }: MinifierOptions): string | void;
11
11
  default: any;
12
12
  };
13
13
 
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) {
@@ -15,7 +15,7 @@ noCompress.default = noCompress;
15
15
  module.exports = noCompress;
16
16
  /*!
17
17
  * node-minify
18
- * Copyright(c) 2011-2022 Rodolphe Stoclin
18
+ * Copyright(c) 2011-2023 Rodolphe Stoclin
19
19
  * MIT Licensed
20
20
  */
21
21
  //# sourceMappingURL=index.js.map
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;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":[]}
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 { 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) {
@@ -23,7 +23,7 @@ var require_src = __commonJS({
23
23
  export default require_src();
24
24
  /*!
25
25
  * node-minify
26
- * Copyright(c) 2011-2022 Rodolphe Stoclin
26
+ * Copyright(c) 2011-2023 Rodolphe Stoclin
27
27
  * MIT Licensed
28
28
  */
29
29
  //# sourceMappingURL=index.mjs.map
@@ -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;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":[]}
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 { 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.2-beta.0",
3
+ "version": "8.0.5-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": ">=14.0.0"
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": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
42
- "prepublishOnly": "npm run build"
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.2-beta.0"
45
+ "@node-minify/utils": "8.0.5-beta.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@node-minify/types": "8.0.2-beta.0"
48
+ "@node-minify/types": "8.0.3-beta.0"
49
49
  },
50
- "gitHead": "bd2fe186257749fcb9bf7a9ff1ce61fb922c4ade"
50
+ "gitHead": "22a7b887ea22743702b1dc5a613755ae20838a73"
51
51
  }