auto-chrome
Advanced tools
Comparing version 0.5.0 to 0.5.1
@@ -10,1 +10,6 @@ ## 版本更新 | ||
* 增加page.goBack()、page.goForward() | ||
#### 0.5.1 | ||
* 捕获ws模块抛出的未知bug,退出浏览器 |
11
index.js
"use strict" | ||
const childProcess = require('child_process') | ||
const readline = require('readline'); | ||
const readline = require('readline') | ||
const WebSocket = require('ws') | ||
@@ -60,3 +60,10 @@ const Chrome = require('./lib/Chrome') | ||
let ws = new WebSocket(webSocketDebuggerUrl, { perMessageDeflate: false }); | ||
let ws | ||
try { | ||
ws = new WebSocket(webSocketDebuggerUrl, { perMessageDeflate: false }); | ||
} catch (error) { | ||
chromeProcess.kill() | ||
throw error | ||
} | ||
@@ -63,0 +70,0 @@ let awaitOpen = new zPromise() |
{ | ||
"name": "auto-chrome", | ||
"version": "0.5.0", | ||
"version": "0.5.1", | ||
"description": "使用Node.js操作Chrome或Chromium,高仿真的用户行为模拟器", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
573571
2953