@live-change/email-service 0.8.57 → 0.8.59
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/render.js +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/email-service",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.59",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,14 +21,14 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.8.
|
|
24
|
+
"@live-change/framework": "^0.8.59",
|
|
25
25
|
"got": "^11.8.3",
|
|
26
26
|
"html-to-text": "8.1.0",
|
|
27
27
|
"inline-css": "4.0.2",
|
|
28
28
|
"jsdom": "^24.1.0",
|
|
29
|
-
"juice": "
|
|
29
|
+
"juice": "11.0.0",
|
|
30
30
|
"nodemailer": "^6.7.2"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "69e6b3004d32994e5fd64df03bf025e04073df3f",
|
|
33
33
|
"type": "module"
|
|
34
34
|
}
|
package/render.js
CHANGED
|
@@ -84,17 +84,18 @@ async function renderEmail(data) {
|
|
|
84
84
|
console.log("BASE URL", baseUrl)
|
|
85
85
|
|
|
86
86
|
let dom = new JSDOM(body)
|
|
87
|
-
console.log("RENDER EMAIL HEADERS HTML:", dom.window.document.querySelector('[data-headers]').innerHTML)
|
|
87
|
+
//console.log("RENDER EMAIL HEADERS HTML:", dom.window.document.querySelector('[data-headers]').innerHTML)
|
|
88
88
|
const headersJson = dom.window.document.querySelector('[data-headers]').textContent
|
|
89
|
-
console.log("RENDER EMAIL HEADERS JSON:", headersJson)
|
|
89
|
+
//console.log("RENDER EMAIL HEADERS JSON:", headersJson)
|
|
90
90
|
const headers = JSON.parse(headersJson)
|
|
91
|
-
console.log("PARSED HEADERS", headers)
|
|
91
|
+
//console.log("PARSED HEADERS", headers)
|
|
92
92
|
|
|
93
93
|
const juiceOptions = {
|
|
94
94
|
webResources: {
|
|
95
95
|
scripts: false,
|
|
96
96
|
links: true,
|
|
97
97
|
images: false,
|
|
98
|
+
resolveCSSVariables: true,
|
|
98
99
|
relativeTo: url
|
|
99
100
|
}
|
|
100
101
|
}
|