Comparing version 1.0.1 to 1.1.0
@@ -1,3 +0,11 @@ | ||
## <small>1.0.1 (2018-12-29)</small> | ||
## 1.1.0 (2019-02-10) | ||
* chore: Use named capture groups polyfill on Node.js < v10 ([b0a7d77](https://github.com/quentinrossetti/node-7z/commit/b0a7d77)) | ||
* chore: Update dependencies ([8f5cb7f](https://github.com/quentinrossetti/node-7z/commit/8f5cb7f)) | ||
* ci: Fix nvm usage by substractive design :) ([5b58713](https://github.com/quentinrossetti/node-7z/commit/5b58713)) | ||
## 1.0.1 (2018-12-29) | ||
* doc: Clean usage & typos ([6c53c5a](https://github.com/quentinrossetti/node-7z/commit/6c53c5a)) | ||
@@ -4,0 +12,0 @@ * doc: Fixing clerical errors ([e244438](https://github.com/quentinrossetti/node-7z/commit/e244438)) |
{ | ||
"name": "node-7z", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"description": "A Node.js wrapper for 7-Zip with platform binaries", | ||
@@ -29,4 +29,3 @@ "main": "./src/main.js", | ||
"author": "Quentin Rossetti <quentin.rossetti@gmail.com>", | ||
"contributors": [ | ||
], | ||
"contributors": [], | ||
"license": "ISC", | ||
@@ -39,17 +38,18 @@ "bugs": { | ||
"cross-spawn": "^6.0.4", | ||
"debug": "^4.1.0", | ||
"debug": "^4.1.1", | ||
"lodash": "^4.17.11", | ||
"normalize-path": "^3.0.0" | ||
"normalize-path": "^3.0.0", | ||
"regexp-polyfill": "^1.0.1" | ||
}, | ||
"optionalDependencies": {}, | ||
"devDependencies": { | ||
"chai": "^4.1.2", | ||
"chai": "^4.2.0", | ||
"eslint-config-standard": "^12.0.0", | ||
"esm": "^3.0.79", | ||
"esm": "^3.2.4", | ||
"fs-readdir-recursive": "^1.1.0", | ||
"is-child-process": "^1.0.2", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"rimraf": "^2.6.2" | ||
"nyc": "^13.2.0", | ||
"rimraf": "^2.6.3" | ||
} | ||
} |
@@ -1,10 +0,21 @@ | ||
const LINE_SPLIT = /\n|\r\n|\x08+|\r +\r/ | ||
const BODY_PROGRESS = /^ *(?<percent>\d+)% ?(?<fileCount>\d+)? ?(?<file>.*)$/ | ||
const BODY_SYMBOL_FILE = /^(?<symbol>[=TU+R.-]) (?<file>.+)$/ | ||
const BODY_HASH = /^(?<hash>\S+)? +(?<size>\d*) +(?<file>.+)$/ | ||
const END_OF_STAGE_HYPHEN = /^(-+ +)+-+$/ | ||
const INFOS = /^(?<property>.+?)(?<separator>( = )|(: +))(?<value>.+)$/ | ||
const INFOS_SPLIT = /, +# / | ||
const ERROR = /(?<level>WARNING|ERROR): (?<message>.*)(\r\n)?(\n)?/i | ||
// @COMPAT Named capture groups aren't available before Node.js 10. This | ||
// compatibility checks the running Node.js version and apply a polyfill | ||
// if needed. | ||
// Support until Jan 2020 (https://github.com/nodejs/Release) | ||
const semver = /v(\d+)\.(\d+)\.(\d+)/ | ||
const nodeVersionResults = process.version.match(semver) | ||
const nodeVersionMajor = parseInt(nodeVersionResults[1]) | ||
if (nodeVersionMajor < 10) { | ||
require('regexp-polyfill') | ||
} | ||
const LINE_SPLIT = new RegExp('\n|\r\n|\x08+|\r +\r') | ||
const BODY_PROGRESS = new RegExp('^ *(?<percent>\\d+)% ?(?<fileCount>\\d+)? ?(?<file>.*)$') | ||
const BODY_SYMBOL_FILE = new RegExp('^(?<symbol>[=TU+R.-]) (?<file>.+)$') | ||
const BODY_HASH = new RegExp('^(?<hash>\\S+)? +(?<size>\\d*) +(?<file>.+)$') | ||
const END_OF_STAGE_HYPHEN = new RegExp('^(-+ +)+-+$') | ||
const INFOS = new RegExp('^(?<property>.+?)(?<separator>( = )|(: +))(?<value>.+)$') | ||
const INFOS_SPLIT = new RegExp(', +# ') | ||
const ERROR = new RegExp('(?<level>WARNING|ERROR): (?<message>.*)(\r\n)?(\n)?', 'i') | ||
module.exports = { | ||
@@ -11,0 +22,0 @@ LINE_SPLIT, |
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
89636
746
5
+ Addedregexp-polyfill@^1.0.1
+ Addedregexp-polyfill@1.0.1(transitive)
Updateddebug@^4.1.1