auto-chrome
Advanced tools
Comparing version 0.11.12 to 0.11.13
"use strict"; | ||
const logger = require('loggercc'); | ||
const cluster = require('cluster'); | ||
const childProcess = require('child_process'); | ||
@@ -15,11 +14,5 @@ const readline = require('readline'); | ||
const { args = [], userDataDir, profileDir, } = options; | ||
const { args = [], userDataDir, profileDir, port = 9222, } = options; | ||
const { headless, devtools, executablePath, } = options; | ||
// cluster模式下启用多个不同的端口,避免端口重复 | ||
let port = 9222; | ||
if (cluster.isWorker) { | ||
port = port + cluster.worker.id; | ||
} | ||
args.push(`--remote-debugging-port=${port}`); | ||
@@ -26,0 +19,0 @@ |
{ | ||
"name": "auto-chrome", | ||
"version": "0.11.12", | ||
"version": "0.11.13", | ||
"description": "使用Node.js操作Chrome或Chromium,高仿真的用户行为模拟器", | ||
@@ -5,0 +5,0 @@ "main": "lib/", |
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
82650
1945