@gorangajic/chromeless
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -114,3 +114,3 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var _a, viewport, config, port, host, versionResult, isHeadless, _b, _c; | ||
var _a, viewport, config, port, versionResult, isHeadless, _b, _c; | ||
return __generator(this, function (_d) { | ||
@@ -127,4 +127,3 @@ switch (_d.label) { | ||
port = this.options.cdp.port; | ||
host = this.options.cdp.host; | ||
return [4 /*yield*/, CDP.Version({ port: port, host: host })]; | ||
return [4 /*yield*/, CDP.Version({ port: port })]; | ||
case 1: | ||
@@ -190,3 +189,3 @@ versionResult = _d.sent(); | ||
if (this.options.cdp.closeTab) { | ||
CDP.Close({ id: client.target.id, port: this.options.cdp.port, host: this.options.cdp.host }); | ||
CDP.Close({ id: client.target.id }); | ||
} | ||
@@ -193,0 +192,0 @@ if (this.chromeInstance) { |
@@ -12,2 +12,4 @@ export interface Client { | ||
}; | ||
host?: string; | ||
port?: number; | ||
} | ||
@@ -14,0 +16,0 @@ export interface DeviceMetrics { |
@@ -72,3 +72,3 @@ "use strict"; | ||
}; | ||
return [4 /*yield*/, CDP.Version()]; | ||
return [4 /*yield*/, CDP.Version({ port: client.port, host: client.host })]; | ||
case 1: | ||
@@ -75,0 +75,0 @@ versionResult = _c.sent(); |
{ | ||
"name": "@gorangajic/chromeless", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"description": "🖥 Chrome automation made simple. Runs locally or headless on AWS Lambda.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://github.com/graphcool/chromeless", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
2693
189960