@node-minify/no-compress 8.0.5 → 9.0.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) 2023 Rodolphe Stoclin
3
+ Copyright (c) 2024 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
@@ -0,0 +1,14 @@
1
+ import { MinifierOptions } from '@node-minify/types';
2
+
3
+ /*!
4
+ * node-minify
5
+ * Copyright(c) 2011-2024 Rodolphe Stoclin
6
+ * MIT Licensed
7
+ */
8
+
9
+ declare const noCompress: {
10
+ ({ settings, content, callback, index, }: MinifierOptions): string | void;
11
+ default: any;
12
+ };
13
+
14
+ export { noCompress as default };
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-2023 Rodolphe Stoclin
5
+ * Copyright(c) 2011-2024 Rodolphe Stoclin
6
6
  * MIT Licensed
7
7
  */
8
8
 
9
9
  declare const noCompress: {
10
- ({ settings, content, callback, index }: MinifierOptions): string | void;
10
+ ({ settings, content, callback, index, }: MinifierOptions): string | void;
11
11
  default: any;
12
12
  };
13
13
 
package/dist/index.js CHANGED
@@ -2,7 +2,12 @@
2
2
 
3
3
  // src/index.ts
4
4
  var import_utils = require("@node-minify/utils");
5
- var noCompress = ({ settings, content, callback, index }) => {
5
+ var noCompress = ({
6
+ settings,
7
+ content,
8
+ callback,
9
+ index
10
+ }) => {
6
11
  if (settings && !settings.content && settings.output) {
7
12
  import_utils.utils.writeFile({ file: settings.output, content, index });
8
13
  }
@@ -15,7 +20,7 @@ noCompress.default = noCompress;
15
20
  module.exports = noCompress;
16
21
  /*!
17
22
  * node-minify
18
- * Copyright(c) 2011-2023 Rodolphe Stoclin
23
+ * Copyright(c) 2011-2024 Rodolphe Stoclin
19
24
  * MIT Licensed
20
25
  */
21
26
  //# 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-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":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2024 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport type { MinifierOptions } from \"@node-minify/types\";\nimport { utils } from \"@node-minify/utils\";\n\n/**\n * Just merge, no compression.\n * @param settings NoCompress options\n * @param content Content to minify\n * @param callback Callback\n * @param index Index of current file in array\n * @returns Minified content\n */\nconst noCompress = ({\n settings,\n content,\n callback,\n index,\n}: 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":";;;AAUA,mBAAsB;AAUtB,IAAM,aAAa,CAAC;AAAA,EAChB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACJ,MAAuB;AACnB,MAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AAClD,uBAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,MAAM,CAAC;AAAA,EAC7D;AACA,MAAI,UAAU;AACV,WAAO,SAAS,MAAM,OAAO;AAAA,EACjC;AACA,SAAO;AACX;AAKA,WAAW,UAAU;AACrB,iBAAS;","names":[]}
package/dist/index.mjs CHANGED
@@ -7,7 +7,12 @@ var __commonJS = (cb, mod) => function __require() {
7
7
  import { utils } from "@node-minify/utils";
8
8
  var require_src = __commonJS({
9
9
  "src/index.ts"(exports, module) {
10
- var noCompress = ({ settings, content, callback, index }) => {
10
+ var noCompress = ({
11
+ settings,
12
+ content,
13
+ callback,
14
+ index
15
+ }) => {
11
16
  if (settings && !settings.content && settings.output) {
12
17
  utils.writeFile({ file: settings.output, content, index });
13
18
  }
@@ -23,7 +28,7 @@ var require_src = __commonJS({
23
28
  export default require_src();
24
29
  /*!
25
30
  * node-minify
26
- * Copyright(c) 2011-2023 Rodolphe Stoclin
31
+ * Copyright(c) 2011-2024 Rodolphe Stoclin
27
32
  * MIT Licensed
28
33
  */
29
34
  //# sourceMappingURL=index.mjs.map
@@ -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 { 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":[]}
1
+ {"version":3,"sources":["../src/index.ts"],"sourcesContent":["/*!\n * node-minify\n * Copyright(c) 2011-2024 Rodolphe Stoclin\n * MIT Licensed\n */\n\n/**\n * Module dependencies.\n */\nimport type { MinifierOptions } from \"@node-minify/types\";\nimport { utils } from \"@node-minify/utils\";\n\n/**\n * Just merge, no compression.\n * @param settings NoCompress options\n * @param content Content to minify\n * @param callback Callback\n * @param index Index of current file in array\n * @returns Minified content\n */\nconst noCompress = ({\n settings,\n content,\n callback,\n index,\n}: 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":";;;;;;AAUA,SAAS,aAAa;AAVtB;AAAA;AAoBA,QAAM,aAAa,CAAC;AAAA,MAChB;AAAA,MACA;AAAA,MACA;AAAA,MACA;AAAA,IACJ,MAAuB;AACnB,UAAI,YAAY,CAAC,SAAS,WAAW,SAAS,QAAQ;AAClD,cAAM,UAAU,EAAE,MAAM,SAAS,QAAQ,SAAS,MAAM,CAAC;AAAA,MAC7D;AACA,UAAI,UAAU;AACV,eAAO,SAAS,MAAM,OAAO;AAAA,MACjC;AACA,aAAO;AAAA,IACX;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.5",
3
+ "version": "9.0.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": ">=16.0.0"
12
+ "node": ">=18.0.0"
13
13
  },
14
14
  "directories": {
15
15
  "lib": "dist",
@@ -19,9 +19,11 @@
19
19
  "module": "./dist/index.mjs",
20
20
  "types": "./dist/index.d.ts",
21
21
  "exports": {
22
- "require": "./dist/index.js",
23
- "import": "./dist/index.mjs",
24
- "types": "./dist/index.d.ts"
22
+ ".": {
23
+ "types": "./dist/index.d.ts",
24
+ "import": "./dist/index.mjs",
25
+ "require": "./dist/index.cjs"
26
+ }
25
27
  },
26
28
  "files": [
27
29
  "dist/**/*"
@@ -36,16 +38,18 @@
36
38
  "bugs": {
37
39
  "url": "https://github.com/srod/node-minify/issues"
38
40
  },
39
- "scripts": {
40
- "clean": "pnpm dlx rimraf dist",
41
- "build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
42
- "prepublishOnly": "pnpm build"
43
- },
44
41
  "dependencies": {
45
- "@node-minify/utils": "8.0.5"
42
+ "@node-minify/utils": "9.0.0"
46
43
  },
47
44
  "devDependencies": {
48
- "@node-minify/types": "8.0.5"
45
+ "@node-minify/types": "9.0.0"
49
46
  },
50
- "gitHead": "920590d417916e54464d9967e0dceb8b6bb9a784"
51
- }
47
+ "scripts": {
48
+ "clean": "pnpm dlx rimraf dist",
49
+ "build": "pnpm clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
50
+ "lint": "biome lint .",
51
+ "test": "vitest run",
52
+ "test:ci": "vitest run --coverage",
53
+ "test:watch": "vitest"
54
+ }
55
+ }