@travetto/image 5.0.0 → 5.0.2
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/package.json +4 -4
- package/src/util.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/image",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Image support, resizing, and optimization",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"images",
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"directory": "module/image"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@travetto/command": "^5.0.
|
|
27
|
-
"@travetto/runtime": "^5.0.
|
|
28
|
-
"sharp": "^0.33.
|
|
26
|
+
"@travetto/command": "^5.0.2",
|
|
27
|
+
"@travetto/runtime": "^5.0.2",
|
|
28
|
+
"sharp": "^0.33.5"
|
|
29
29
|
},
|
|
30
30
|
"travetto": {
|
|
31
31
|
"displayName": "Image"
|
package/src/util.ts
CHANGED
|
@@ -137,7 +137,7 @@ export class ImageUtil {
|
|
|
137
137
|
await this.PNG_COMPRESSOR.exec('pngquant', '--quality', '40-80', '--speed', '1', '--force', '-'), image);
|
|
138
138
|
default:
|
|
139
139
|
case 'jpeg': return this.#subprocessReturn(
|
|
140
|
-
await this.JPEG_COMPRESSOR.exec('jpegoptim', '-m70', '-s', '--stdin', '--stdout'), image);
|
|
140
|
+
await this.JPEG_COMPRESSOR.exec('jpegoptim', '-m70', '-s', '--stdin', '--stdout', '-'), image);
|
|
141
141
|
}
|
|
142
142
|
} else {
|
|
143
143
|
const { default: sharp } = await import('sharp');
|