Skip to content

Commit

Permalink
Updated packages / README to latest stable versions and removed audit…
Browse files Browse the repository at this point in the history
… / security issues
  • Loading branch information
dtolstyi committed Jul 30, 2020
1 parent ba5ffbb commit cb8010b
Show file tree
Hide file tree
Showing 9 changed files with 6,764 additions and 3,911 deletions.
4 changes: 3 additions & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ The main benefit of using Chromium is that it **doesn't** include all the propri
You can see full list of differences in [Fossbytes article](https://fossbytes.com/difference-google-chrome-vs-chromium-browser/).

## Requirements
`node-chromium 2.x.x` is tested against and supports Node.js 7+

`node-chromium 2.2.x+` is tested against and supports Node.js LTS and latest stable releases
`node-chromium 2.1.2-` is tested against and supports Node.js 7+
If you need to use older versions of Node.js try `node-chromium 1.x.x` releases.

## Usage
Expand Down
1 change: 1 addition & 0 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ module.exports = {
if (!name) {
return '';
}

return process.env[`npm_config_${name.toLowerCase()}`] || process.env[name] || '';
}
};
6 changes: 4 additions & 2 deletions install.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ const debug = require('debug')('node-chromium');
const config = require('./config');
const utils = require('./utils');

/* eslint unicorn/prevent-abbreviations: ["off"] */

function createTempFile() {
return new Promise((resolve, reject) => {
tmp.file((error, path) => {
Expand Down Expand Up @@ -78,8 +80,8 @@ async function install() {
await unzipArchive(tmpPath, config.BIN_OUT_PATH);

console.info('Process is successfully finished');
} catch (err) {
console.error('An error occurred while trying to setup Chromium. Resolve all issues and restart the process', err);
} catch (error) {
console.error('An error occurred while trying to setup Chromium. Resolve all issues and restart the process', error);
}
}

Expand Down
Loading

0 comments on commit cb8010b

Please sign in to comment.