@powerlines/plugin-image-compression 0.2.582 → 0.2.584
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/_virtual/_rolldown/runtime.cjs +1 -2
- package/dist/index.cjs +1 -3
- package/dist/index.mjs +1 -3
- package/package.json +4 -4
|
@@ -19,11 +19,10 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
}
|
|
20
20
|
return to;
|
|
21
21
|
};
|
|
22
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
22
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
23
23
|
value: mod,
|
|
24
24
|
enumerable: true
|
|
25
25
|
}) : target, mod));
|
|
26
26
|
|
|
27
27
|
//#endregion
|
|
28
|
-
|
|
29
28
|
exports.__toESM = __toESM;
|
package/dist/index.cjs
CHANGED
|
@@ -94,9 +94,7 @@ const plugin = (options = {}) => {
|
|
|
94
94
|
case "jp2":
|
|
95
95
|
image = image.jp2(this.config.imageCompression.jp2);
|
|
96
96
|
break;
|
|
97
|
-
case "jxl":
|
|
98
|
-
image = image.jxl(this.config.imageCompression.jxl);
|
|
99
|
-
break;
|
|
97
|
+
case "jxl": image = image.jxl(this.config.imageCompression.jxl);
|
|
100
98
|
}
|
|
101
99
|
compressedSize = (await image.toFile(outputPath)).size;
|
|
102
100
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -91,9 +91,7 @@ const plugin = (options = {}) => {
|
|
|
91
91
|
case "jp2":
|
|
92
92
|
image = image.jp2(this.config.imageCompression.jp2);
|
|
93
93
|
break;
|
|
94
|
-
case "jxl":
|
|
95
|
-
image = image.jxl(this.config.imageCompression.jxl);
|
|
96
|
-
break;
|
|
94
|
+
case "jxl": image = image.jxl(this.config.imageCompression.jxl);
|
|
97
95
|
}
|
|
98
96
|
compressedSize = (await image.toFile(outputPath)).size;
|
|
99
97
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@powerlines/plugin-image-compression",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.584",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A Powerlines plugin to optimize images used by the project.",
|
|
6
6
|
"keywords": [
|
|
@@ -103,15 +103,15 @@
|
|
|
103
103
|
"chalk": "5.6.2",
|
|
104
104
|
"defu": "^6.1.7",
|
|
105
105
|
"jiti": "^2.7.0",
|
|
106
|
-
"powerlines": "0.47.
|
|
106
|
+
"powerlines": "^0.47.174",
|
|
107
107
|
"sharp": "^0.34.5",
|
|
108
108
|
"svgo": "^4.0.2"
|
|
109
109
|
},
|
|
110
110
|
"devDependencies": {
|
|
111
|
-
"@powerlines/plugin-plugin": "0.12.
|
|
111
|
+
"@powerlines/plugin-plugin": "^0.12.586",
|
|
112
112
|
"@storm-software/config": "^1.138.46",
|
|
113
113
|
"@types/node": "^25.9.5"
|
|
114
114
|
},
|
|
115
115
|
"publishConfig": { "access": "public" },
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "1eb8250f091012d9dfc0faa9fc57c3dbb914dc97"
|
|
117
117
|
}
|