Comparing version 2.1.1 to 2.1.2
@@ -0,1 +1,9 @@ | ||
## 2.1.2 (2020-10-11) | ||
* style: Implement JavaScript Standard Style ([dff09b8](https://github.com/quentinrossetti/node-7z/commit/dff09b8)) | ||
* fix: JSON typo ([02df853](https://github.com/quentinrossetti/node-7z/commit/02df853)) | ||
* security: npm audit fix ([0790b46](https://github.com/quentinrossetti/node-7z/commit/0790b46)) | ||
* security: npm audit fix ([7758a64](https://github.com/quentinrossetti/node-7z/commit/7758a64)) | ||
* chore: Documentation cleanup ([0913758](https://github.com/quentinrossetti/node-7z/commit/0913758)) | ||
## 2.1.1 (2020-02-15) | ||
@@ -2,0 +10,0 @@ |
{ | ||
"name": "node-7z", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "A Node.js wrapper for 7-Zip with platform binaries", | ||
@@ -39,3 +39,3 @@ "main": "./src/main.js", | ||
"dependencies": { | ||
"cross-spawn": "^7.0.1", | ||
"cross-spawn": "^7.0.2", | ||
"debug": "^4.1.1", | ||
@@ -52,10 +52,10 @@ "lodash.defaultsdeep": "^4.6.1", | ||
"chai": "^4.2.0", | ||
"eslint-config-standard": "^14.1.0", | ||
"esm": "^3.2.25", | ||
"fs-readdir-recursive": "^1.1.0", | ||
"is-child-process": "^1.0.2", | ||
"mocha": "^6.2.2", | ||
"mocha": "^6.2.3", | ||
"nyc": "^14.1.1", | ||
"rimraf": "^3.0.0" | ||
"rimraf": "^3.0.2", | ||
"standard": "^14.3.4" | ||
} | ||
} |
@@ -65,3 +65,3 @@ <h1 align="center">node-7z</h1> | ||
An alernative is to add the `7zip-bin` module to your project. This module | ||
An alternative is to add the `7zip-bin` module to your project. This module | ||
contains an up-to-date version of 7-Zip for all available plaforms. Then you | ||
@@ -88,3 +88,3 @@ can do: | ||
#### Add | ||
Adds files to archive. | ||
Adds files to an archive. | ||
@@ -105,3 +105,3 @@ | Arguments | Type | Description | | ||
#### Delete | ||
Deletes files from archive. | ||
Deletes files from an archive. | ||
@@ -154,3 +154,3 @@ | Arguments | Type | Description | | ||
#### Hash | ||
Calculate hash values for files. | ||
Calculates hash values for files. | ||
@@ -170,3 +170,3 @@ | Arguments | Type | Description | | ||
#### List | ||
Lists contents of archive. | ||
Lists contents of an archive. | ||
@@ -186,3 +186,3 @@ | Arguments | Type | Description | | ||
#### Rename | ||
Renames files in archive. | ||
Renames files in an archive. | ||
@@ -220,3 +220,3 @@ | Arguments | Type | Description | | ||
#### Update | ||
Update older files in the archive and add files that are not already in the archive. | ||
Updates older files in the archive and adds files that are not already in the archive. | ||
@@ -345,3 +345,3 @@ | Arguments | Type | Description | | ||
Using the CLI, compression is made like that: | ||
Using the CLI, compression is done like this: | ||
@@ -348,0 +348,0 @@ ```sh |
@@ -30,3 +30,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
const match = stderr.match(ERROR) | ||
let err = new Error('unknown error') | ||
const err = new Error('unknown error') | ||
err.stderr = stderr | ||
@@ -33,0 +33,0 @@ if (match) { |
@@ -37,3 +37,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
// only does flow control. | ||
for (let line of lines) { | ||
for (const line of lines) { | ||
debug('stdout: %s', line) | ||
@@ -40,0 +40,0 @@ |
@@ -27,3 +27,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
const entries = Object.entries(opts) | ||
let args = entries | ||
const args = entries | ||
.map(fromPair) | ||
@@ -66,3 +66,3 @@ .filter(isReferenced) | ||
boolContext: flag => { | ||
let suffix = (flag.value === true) ? '' : '-' | ||
const suffix = (flag.value === true) ? '' : '-' | ||
return `-${flag.cli}${suffix}` | ||
@@ -69,0 +69,0 @@ }, |
@@ -71,3 +71,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
const run = stream => { | ||
let spawnOptions = Object.assign({ detached: true }, stream._spawnOptions) | ||
const spawnOptions = Object.assign({ detached: true }, stream._spawnOptions) | ||
stream._childProcess = spawn(stream._bin, stream._args, spawnOptions) | ||
@@ -74,0 +74,0 @@ return stream |
@@ -35,3 +35,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
const infos = new Map() | ||
for (let info of infosLine) { | ||
for (const info of infosLine) { | ||
infos.set(info.groups.property, info.groups.value) | ||
@@ -38,0 +38,0 @@ } |
@@ -87,2 +87,3 @@ // Copyright (c) 2014-2019, Quentin Rossetti <quentin.rossetti@gmail.com> | ||
/* eslint-disable */ | ||
// =TU+R.- | ||
@@ -97,2 +98,3 @@ const SYMBOL_OPERATIONS = { | ||
} | ||
/* eslint-enable */ | ||
@@ -99,0 +101,0 @@ module.exports = { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
103908
886
Updatedcross-spawn@^7.0.2