chromedriver
Advanced tools
Comparing version 99.0.0 to 100.0.0
@@ -358,6 +358,17 @@ 'use strict'; | ||
if (archName === 'x86_64') { | ||
const processTranslated = child_process.spawnSync('sysctl', ['-in', 'sysctl.proc_translated']) | ||
.stdout.toString() | ||
.trim(); | ||
const proc = child_process.spawnSync('sysctl', ['-in', 'sysctl.proc_translated']); | ||
// When run with `-in`, the return code is 0 even if there is no `sysctl.proc_translated` | ||
if(proc.status) { | ||
throw new Error('Unexpected return code from sysctl: ' + proc.status); | ||
} | ||
// If there is no `sysctl.proc_translated` (i.e. not rosetta) then nothing is printed to | ||
// stdout | ||
if(!proc.stdout) { | ||
return false | ||
} | ||
const processTranslated = proc.stdout.toString().trim(); | ||
return processTranslated === '1'; | ||
@@ -364,0 +375,0 @@ } |
@@ -20,3 +20,3 @@ const fs = require('fs'); | ||
exports.path = process.platform === 'win32' ? path.join(__dirname, 'chromedriver', 'chromedriver.exe') : path.join(__dirname, 'chromedriver', 'chromedriver'); | ||
exports.version = '99.0.4844.51'; | ||
exports.version = '100.0.4896.60'; | ||
exports.start = function (args, returnPromise) { | ||
@@ -23,0 +23,0 @@ let command = exports.path; |
{ | ||
"name": "chromedriver", | ||
"version": "99.0.0", | ||
"version": "100.0.0", | ||
"keywords": [ | ||
@@ -5,0 +5,0 @@ "chromedriver", |
AI detected anomaly
Supply chain riskAI has identified unusual behaviors that may pose a security risk.
Found 1 instance in 1 package
37389
395
28