@travetto/email-compiler 5.0.13 → 5.0.15

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.
Files changed (2) hide show
  1. package/package.json +4 -4
  2. 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.13",
3
+ "version": "5.0.15",
4
4
  "description": "Email compiling module",
5
5
  "keywords": [
6
6
  "email",
@@ -29,9 +29,9 @@
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.13",
32
+ "@travetto/image": "^5.0.15",
33
33
  "@travetto/runtime": "^5.0.11",
34
- "@travetto/worker": "^5.0.11",
34
+ "@travetto/worker": "^5.0.12",
35
35
  "@types/inline-css": "^3.0.3",
36
36
  "html-entities": "^2.5.2",
37
37
  "inline-css": "^4.0.2",
@@ -39,7 +39,7 @@
39
39
  "sass": "^1.80.3"
40
40
  },
41
41
  "peerDependencies": {
42
- "@travetto/cli": "^5.0.11"
42
+ "@travetto/cli": "^5.0.13"
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.optimize(
140
+ const output = await ImageUtil.convert(
141
141
  await opts.loader.readStream(src),
142
142
  { format: ext === '.png' ? 'png' : 'jpeg' }
143
143
  );