New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

auto-chrome

Package Overview
Dependencies
Maintainers
1
Versions
83
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-chrome - npm Package Compare versions

Comparing version 0.3.8 to 0.3.9

2

lib/Element.js

@@ -44,3 +44,3 @@ const { sleep, signale } = require('./helper');

userGesture: true
})
}, { timeOut: 5000 })

@@ -47,0 +47,0 @@ if (result.className === 'TypeError') {

@@ -21,3 +21,3 @@ const debug = require('debug');

*/
send(method = '', params = {}) {
send(method = '', params = {}, config = {}) {

@@ -32,10 +32,15 @@ let id = this.id++

let { timeOut } = config
return new Promise((resolve, reject) => {
if (timeOut) {
setTimeout(() => {
reject('等待返回消息超时')
}, timeOut);
}
this.callbacks.set(id, { resolve, reject, method });
}).catch(error => {
if (error.code) {
let { message, data } = error
signale.error(new Error(`${method} ${message} ${data}`))
if (error instanceof Object) {
signale.error(new Error(Object.values(error).toString()))
} else {
signale.error(new Error(Object.values(error).toString()))
signale.error(new Error(error))
}

@@ -66,3 +71,3 @@ })

}
}

@@ -69,0 +74,0 @@ /**

{
"name": "auto-chrome",
"version": "0.3.8",
"version": "0.3.9",
"description": "使用Node.js操作Chrome或Chromium,高仿真的用户行为模拟器",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc