@live-change/email-service 0.9.101 → 0.9.103
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/browser.js +6 -2
- package/package.json +3 -3
package/browser.js
CHANGED
|
@@ -17,8 +17,12 @@ async function newBrowser() {
|
|
|
17
17
|
console.log("New browser", config)
|
|
18
18
|
//process.exit(0)
|
|
19
19
|
if(config.browser.webSocketDebuggerUrl) {
|
|
20
|
-
|
|
21
|
-
const
|
|
20
|
+
const url = new URL(config.browser.webSocketDebuggerUrl)
|
|
21
|
+
const ip = await dns.resolve4(url.hostname)
|
|
22
|
+
console.log("BROWSER WS DEBUGGER URL HOST", url.hostname, "RESOLVED TO", ip)
|
|
23
|
+
url.hostname = ip
|
|
24
|
+
const browser = await chromium.connect(url.href, { timeout: 10000 }) // connect by ip address
|
|
25
|
+
//const browser = await chromium.connect(config.browser.webSocketDebuggerUrl, { timeout: 10000 })
|
|
22
26
|
return browser
|
|
23
27
|
} else if(config.browser.url) {
|
|
24
28
|
const browserInfo = await got.post(config.browser.url + '/json/version').json()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@live-change/email-service",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.103",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"url": "https://www.viamage.com/"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@live-change/framework": "^0.9.
|
|
24
|
+
"@live-change/framework": "^0.9.103",
|
|
25
25
|
"got": "^11.8.6",
|
|
26
26
|
"html-to-text": "8.1.0",
|
|
27
27
|
"inline-css": "4.0.2",
|
|
@@ -32,6 +32,6 @@
|
|
|
32
32
|
"postcss-calc": "10.1.1",
|
|
33
33
|
"postcss-custom-properties": "14.0.4"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "665bfa896fe92865a97556c86953f6d515ffc9ab",
|
|
36
36
|
"type": "module"
|
|
37
37
|
}
|