Skip to content

Commit cb8010b

Browse files
author
dtolstyi
committed
Updated packages / README to latest stable versions and removed audit / security issues
1 parent ba5ffbb commit cb8010b

File tree

9 files changed

+6764
-3911
lines changed

9 files changed

+6764
-3911
lines changed

README.MD

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ The main benefit of using Chromium is that it **doesn't** include all the propri
99
You can see full list of differences in [Fossbytes article](https://fossbytes.com/difference-google-chrome-vs-chromium-browser/).
1010

1111
## Requirements
12-
`node-chromium 2.x.x` is tested against and supports Node.js 7+
12+
13+
`node-chromium 2.2.x+` is tested against and supports Node.js LTS and latest stable releases
14+
`node-chromium 2.1.2-` is tested against and supports Node.js 7+
1315
If you need to use older versions of Node.js try `node-chromium 1.x.x` releases.
1416

1517
## Usage

config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ module.exports = {
2222
if (!name) {
2323
return '';
2424
}
25+
2526
return process.env[`npm_config_${name.toLowerCase()}`] || process.env[name] || '';
2627
}
2728
};

install.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ const debug = require('debug')('node-chromium');
99
const config = require('./config');
1010
const utils = require('./utils');
1111

12+
/* eslint unicorn/prevent-abbreviations: ["off"] */
13+
1214
function createTempFile() {
1315
return new Promise((resolve, reject) => {
1416
tmp.file((error, path) => {
@@ -78,8 +80,8 @@ async function install() {
7880
await unzipArchive(tmpPath, config.BIN_OUT_PATH);
7981

8082
console.info('Process is successfully finished');
81-
} catch (err) {
82-
console.error('An error occurred while trying to setup Chromium. Resolve all issues and restart the process', err);
83+
} catch (error) {
84+
console.error('An error occurred while trying to setup Chromium. Resolve all issues and restart the process', error);
8385
}
8486
}
8587

0 commit comments

Comments
 (0)