@node-minify/no-compress 8.0.0-beta.0 → 8.0.1-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.js CHANGED
@@ -40,3 +40,4 @@ var src_default = noCompress;
40
40
  * Copyright(c) 2011-2022 Rodolphe Stoclin
41
41
  * MIT Licensed
42
42
  */
43
+ //# sourceMappingURL=index.js.map
@@ -0,0 +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// interface Options {\n// sourceMap?: boolean;\n// _sourceMap?: { url: string } | boolean;\n// }\n\n// interface Settings {\n// options: Options;\n// content: string;\n// output: string;\n// }\n\n// interface MinifierOptions {\n// settings: Settings;\n// content: string;\n// callback: Function;\n// index: number;\n// }\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 */\nexport default noCompress;\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASA,mBAAsB;AA4BtB,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,IAAO,cAAQ;","names":[]}
package/dist/index.mjs CHANGED
@@ -18,3 +18,4 @@ export {
18
18
  * Copyright(c) 2011-2022 Rodolphe Stoclin
19
19
  * MIT Licensed
20
20
  */
21
+ //# sourceMappingURL=index.mjs.map
@@ -0,0 +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// interface Options {\n// sourceMap?: boolean;\n// _sourceMap?: { url: string } | boolean;\n// }\n\n// interface Settings {\n// options: Options;\n// content: string;\n// output: string;\n// }\n\n// interface MinifierOptions {\n// settings: Settings;\n// content: string;\n// callback: Function;\n// index: number;\n// }\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 */\nexport default noCompress;\n"],"mappings":";AASA,SAAS,aAAa;AA4BtB,IAAM,aAAa,CAAC,EAAE,UAAU,SAAS,UAAU,MAAM,MAAuB;AAC9E,MAAI,YAAY,CAAC,SAAS,SAAS;AACjC,UAAM,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,IAAO,cAAQ;","names":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@node-minify/no-compress",
3
- "version": "8.0.0-beta.0",
3
+ "version": "8.0.1-beta.0",
4
4
  "description": "no compress plugin for @node-minify, only concatenate",
5
5
  "keywords": [
6
6
  "concatenate"
@@ -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",
41
+ "build": "npm run clean && tsup src/index.ts --format cjs,esm --dts --clean --sourcemap",
42
42
  "prepublishOnly": "npm run build"
43
43
  },
44
44
  "dependencies": {
45
- "@node-minify/utils": "8.0.0-beta.0"
45
+ "@node-minify/utils": "8.0.1-beta.0"
46
46
  },
47
47
  "devDependencies": {
48
- "@node-minify/types": "8.0.0-beta.0"
48
+ "@node-minify/types": "8.0.1-beta.0"
49
49
  },
50
- "gitHead": "0507c6190577e1939997a8231b07952ba167a780"
50
+ "gitHead": "35a8a41ec86a11cbec05d8a7db9113475ece2cef"
51
51
  }