@travetto/email-compiler 5.0.12 → 5.0.14
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 +3 -3
- package/src/util.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/email-compiler",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.14",
|
|
4
4
|
"description": "Email compiling module",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"email",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@travetto/config": "^5.0.11",
|
|
30
30
|
"@travetto/di": "^5.0.11",
|
|
31
31
|
"@travetto/email": "^5.0.11",
|
|
32
|
-
"@travetto/image": "^5.0.
|
|
32
|
+
"@travetto/image": "^5.0.14",
|
|
33
33
|
"@travetto/runtime": "^5.0.11",
|
|
34
34
|
"@travetto/worker": "^5.0.11",
|
|
35
35
|
"@types/inline-css": "^3.0.3",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"sass": "^1.80.3"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@travetto/cli": "^5.0.
|
|
42
|
+
"@travetto/cli": "^5.0.12"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
45
45
|
"@travetto/cli": {
|
package/src/util.ts
CHANGED
|
@@ -137,7 +137,7 @@ export class EmailCompileUtil {
|
|
|
137
137
|
for (const [token, src] of tokens) {
|
|
138
138
|
const ext = path.extname(src);
|
|
139
139
|
if (/^[.](jpe?g|png)$/.test(ext)) {
|
|
140
|
-
const output = await ImageUtil.
|
|
140
|
+
const output = await ImageUtil.convert(
|
|
141
141
|
await opts.loader.readStream(src),
|
|
142
142
|
{ format: ext === '.png' ? 'png' : 'jpeg' }
|
|
143
143
|
);
|