susee-plugin-terser 0.0.6 → 0.0.7

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.cjs CHANGED
@@ -14,7 +14,7 @@ function suseeTerser(terserMinifyOptions) {
14
14
  type: "post-process",
15
15
  async: true,
16
16
  name: "@suseejs/plugin-terser",
17
- func: async function (code, _file) {
17
+ func: async (code, _file) => {
18
18
  const _code = (await terser.minify(code, terserMinifyOptions)).code;
19
19
  if (_code) {
20
20
  code = _code;
@@ -1 +1 @@
1
- {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";AACA,iCAAkC;AAElC;;;;;;;;GAQG;AACH,SAAS,WAAW,CAClB,mBAAsD;IAEtD,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,iBAAS,WAAW,CAAC"}
1
+ {"version":3,"file":"index.cjs","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":";AACA,iCAAkC;AAElC;;;;;;;;GAQG;AACH,SAAS,WAAW,CACnB,mBAAsD;IAEtD,OAAO;QACN,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;YAC3B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACX,IAAI,GAAG,KAAK,CAAC;YACd,CAAC;YACD,OAAO,IAAI,CAAC;QACb,CAAC;KACD,CAAC;AACH,CAAC;AAED,iBAAS,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAAA,YAAY,UAAU,GAAG,QAAQ,aAAa,CAAC,CAAC;AAChD,OAAO,MAAM,GAAG,QAAQ,QAAQ,CAAC,CAAC;AAElC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACrD,UAAU,CAAC,WAAW,CAaxB;AAED,SAAS,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.cts","sourceRoot":"","sources":["../src/index.cts"],"names":[],"mappings":"AAAA,YAAY,UAAU,GAAG,QAAQ,aAAa,CAAC,CAAC;AAChD,OAAO,MAAM,GAAG,QAAQ,QAAQ,CAAC,CAAC;AAElC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACpD,UAAU,CAAC,WAAW,CAaxB;AAED,SAAS,WAAW,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CAClB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACrD,UAAU,CAAC,WAAW,CAaxB;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,UAAU,MAAM,aAAa,CAAC;AAC/C,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,iBAAS,WAAW,CACnB,mBAAmB,CAAC,EAAE,MAAM,CAAC,aAAa,GAAG,SAAS,GACpD,UAAU,CAAC,WAAW,CAaxB;AAED,eAAe,WAAW,CAAC"}
package/dist/index.mjs CHANGED
@@ -13,7 +13,7 @@ function suseeTerser(terserMinifyOptions) {
13
13
  type: "post-process",
14
14
  async: true,
15
15
  name: "@suseejs/plugin-terser",
16
- func: async function (code, _file) {
16
+ func: async (code, _file) => {
17
17
  const _code = (await terser.minify(code, terserMinifyOptions)).code;
18
18
  if (_code) {
19
19
  code = _code;
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,SAAS,WAAW,CAClB,mBAAsD;IAEtD,OAAO;QACL,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,KAAK,WAAW,IAAI,EAAE,KAAK;YAC/B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,GAAG,KAAK,CAAC;YACf,CAAC;YACD,OAAO,IAAI,CAAC;QACd,CAAC;KACF,CAAC;AACJ,CAAC;AAED,eAAe,WAAW,CAAC"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/index.mts"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC;;;;;;;;GAQG;AACH,SAAS,WAAW,CACnB,mBAAsD;IAEtD,OAAO;QACN,IAAI,EAAE,cAAc;QACpB,KAAK,EAAE,IAAI;QACX,IAAI,EAAE,wBAAwB;QAC9B,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE;YAC3B,MAAM,KAAK,GAAG,CAAC,MAAM,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,mBAAmB,CAAC,CAAC,CAAC,IAAI,CAAC;YACpE,IAAI,KAAK,EAAE,CAAC;gBACX,IAAI,GAAG,KAAK,CAAC;YACd,CAAC;YACD,OAAO,IAAI,CAAC;QACb,CAAC;KACD,CAAC;AACH,CAAC;AAED,eAAe,WAAW,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "susee-plugin-terser",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "description": "A Susee plugin that minifies JavaScript code using the Terser library",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -19,7 +19,8 @@
19
19
  }
20
20
  },
21
21
  "scripts": {
22
- "build": "tsc"
22
+ "build": "tsc",
23
+ "lint": "biome check src --write"
23
24
  },
24
25
  "keywords": [
25
26
  "suseejs"
@@ -31,7 +32,7 @@
31
32
  },
32
33
  "license": "Apache-2.0",
33
34
  "dependencies": {
34
- "susee-types": "^0.0.6",
35
+ "susee-types": "^0.0.7",
35
36
  "terser": "^5.46.1",
36
37
  "typescript": "^6.0.2"
37
38
  },
@@ -52,5 +53,8 @@
52
53
  "publishConfig": {
53
54
  "access": "public",
54
55
  "provenance": true
56
+ },
57
+ "devDependencies": {
58
+ "@biomejs/biome": "^2.4.10"
55
59
  }
56
60
  }