auto-chrome
Advanced tools
Comparing version 0.11.10 to 0.11.11
"use strict"; | ||
const logger = require('loggercc'); | ||
const ChromeEvent = require('./ChromeEvent.js'); | ||
const helper = require('./helper.js'); | ||
const { logger, sleep } = helper; | ||
const { sleep } = helper; | ||
@@ -8,0 +9,0 @@ class Chrome extends ChromeEvent { |
@@ -1,7 +0,8 @@ | ||
"use strict" | ||
"use strict"; | ||
const logger = require('loggercc'); | ||
const Page = require('./Page.js'); | ||
const helper = require('./helper.js'); | ||
const { logger, timechain, restartPromise, sleep } = helper; | ||
const { timechain, restartPromise, sleep } = helper; | ||
@@ -259,2 +260,2 @@ class ChromeEvent { | ||
module.exports = ChromeEvent | ||
module.exports = ChromeEvent; |
"use strict" | ||
const { sleep, logger } = require('./helper.js'); | ||
const logger = require('loggercc'); | ||
const { sleep } = require('./helper.js'); | ||
@@ -5,0 +6,0 @@ /** |
@@ -1,4 +0,4 @@ | ||
"use strict" | ||
"use strict"; | ||
const { logger } = require('./helper.js'); | ||
const logger = require('loggercc'); | ||
@@ -35,10 +35,10 @@ class Frame { | ||
if (className === 'TypeError' || subtype === 'error') { | ||
logger.error(new Error(description)) | ||
logger.error(new Error(description)); | ||
} | ||
return result | ||
return result; | ||
} catch (error) { | ||
logger.error(error) | ||
logger.error(error); | ||
@@ -45,0 +45,0 @@ } |
@@ -11,3 +11,2 @@ "use strict"; | ||
module.exports = { | ||
logger, | ||
timechain, | ||
@@ -14,0 +13,0 @@ timerPromise, |
"use strict"; | ||
const logger = require('loggercc'); | ||
const cluster = require('cluster'); | ||
@@ -10,3 +11,3 @@ const childProcess = require('child_process'); | ||
const { logger, timerPromise } = helper; | ||
const { timerPromise } = helper; | ||
@@ -40,3 +41,2 @@ async function main(options) { | ||
'--mute-audio', | ||
'--force-device-scale-factor=1.25', | ||
); | ||
@@ -43,0 +43,0 @@ } |
"use strict" | ||
const { logger } = require('./helper.js'); | ||
const logger = require('loggercc'); | ||
const { Mouse, Touch } = require('./Clicker.js'); | ||
@@ -5,0 +5,0 @@ const Keyboard = require('./Keyboard.js'); |
"use strict" | ||
const logger = require('loggercc'); | ||
const helper = require('./helper.js'); | ||
const { logger, timechain, restartPromise } = helper; | ||
const { timechain, restartPromise } = helper; | ||
@@ -7,0 +8,0 @@ /** |
{ | ||
"name": "auto-chrome", | ||
"version": "0.11.10", | ||
"version": "0.11.11", | ||
"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
82749
1947