From 8080a0c79176fd6c095c04f5a270f25a7be6b4ef Mon Sep 17 00:00:00 2001 From: Elbert Alias <77259+AliasIO@users.noreply.github.com> Date: Tue, 2 Nov 2021 11:24:55 +1100 Subject: [PATCH] Use puppeteer instead of puppeteer-core --- src/drivers/npm/driver.js | 8 +------- src/drivers/npm/package.json | 2 +- src/drivers/webextension/manifest.json | 2 +- src/package.json | 2 +- 4 files changed, 4 insertions(+), 10 deletions(-) diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 1b9ecca6d..930cbe835 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -5,6 +5,7 @@ const dns = require('dns').promises const path = require('path') const http = require('http') const https = require('https') +const puppeteer = require('puppeteer') const Wappalyzer = require('./wappalyzer') const { setTechnologies, setCategories, analyze, analyzeManyToMany, resolve } = @@ -16,7 +17,6 @@ function next() { const { CHROMIUM_BIN, CHROMIUM_DATA_DIR, CHROMIUM_WEBSOCKET } = process.env -let puppeteer const chromiumArgs = [ '--no-sandbox', '--no-zygote', @@ -31,12 +31,6 @@ if (os.arch() === 'arm64') { chromiumArgs.push('--single-process') } -if (CHROMIUM_BIN) { - puppeteer = require('puppeteer-core') -} else { - puppeteer = require('puppeteer') -} - const extensions = /^([^.]+$|\.(asp|aspx|cgi|htm|html|jsp|php)$)/ const categories = JSON.parse( diff --git a/src/drivers/npm/package.json b/src/drivers/npm/package.json index dbec0f778..cf8448682 100644 --- a/src/drivers/npm/package.json +++ b/src/drivers/npm/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.8.21", + "version": "6.9.0", "author": "Wappalyzer", "license": "MIT", "repository": { diff --git a/src/drivers/webextension/manifest.json b/src/drivers/webextension/manifest.json index 8875f2ceb..6ee6ef9ed 100644 --- a/src/drivers/webextension/manifest.json +++ b/src/drivers/webextension/manifest.json @@ -4,7 +4,7 @@ "author": "Wappalyzer", "homepage_url": "https://www.wappalyzer.com/", "description": "Identify web technologies", - "version": "6.8.21", + "version": "6.9.0", "default_locale": "en", "manifest_version": 2, "icons": { diff --git a/src/package.json b/src/package.json index 74a0a7e96..fd6e81ec5 100644 --- a/src/package.json +++ b/src/package.json @@ -13,7 +13,7 @@ "software" ], "homepage": "https://www.wappalyzer.com/", - "version": "6.8.21", + "version": "6.9.0", "author": "Wappalyzer", "license": "MIT", "repository": {