scrapper-tools-leoalves
Advanced tools
Comparing version 1.0.151 to 1.0.152
@@ -7,3 +7,2 @@ "use strict"; | ||
const puppeteer_core_1 = __importDefault(require("puppeteer-core")); | ||
const chrome_paths_1 = __importDefault(require("chrome-paths")); | ||
const async_lock_1 = __importDefault(require("async-lock")); | ||
@@ -68,3 +67,9 @@ const consoleMessage_1 = __importDefault(require("../consoleMessage")); | ||
}; | ||
launchOptions.executablePath = chrome_paths_1.default.chromium; | ||
launchOptions.executablePath = process.env.CHROME_BIN | ||
? process.env.CHROME_BIN | ||
: "/usr/bin/chromium-browser"; | ||
console.log("starting Chrome from: "); | ||
console.log(process.env.CHROME_BIN | ||
? process.env.CHROME_BIN | ||
: "/usr/bin/chromium-browser"); | ||
config[instanceName].browserHandle = await puppeteer_core_1.default.launch(launchOptions); | ||
@@ -71,0 +76,0 @@ return config[instanceName].browserHandle; |
{ | ||
"name": "scrapper-tools-leoalves", | ||
"version": "1.0.151", | ||
"version": "1.0.152", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "types": "dist/index.d.ts", |
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
102688
1406
16