semver-parser
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -40,10 +40,10 @@ /** | ||
* @param {string} part - version part | ||
* @param {boolean} [testInt] - test version part is integer before parseInt() | ||
* @param {boolean} [nonPosInt] - accept non positive integer | ||
* @returns {string|number} - parsed version part | ||
*/ | ||
const parseVersionPart = (part, testInt = false) => { | ||
const parseVersionPart = (part, nonPosInt = false) => { | ||
if (!isString(part)) { | ||
throw new TypeError(`Expected String but got ${getType(part)}.`); | ||
} | ||
if (!(testInt || REGEXP_INT.test(part))) { | ||
if (!(nonPosInt || REGEXP_INT.test(part))) { | ||
throw new Error(`${part} is not a stringified positive integer.`); | ||
@@ -50,0 +50,0 @@ } |
@@ -22,8 +22,8 @@ { | ||
"chai": "^4.1.2", | ||
"eslint": "^4.19.1", | ||
"eslint": "^5.0.1", | ||
"mocha": "^5.2.0", | ||
"nyc": "^12.0.2", | ||
"sinon": "^6.0.0" | ||
"sinon": "^6.1.3" | ||
}, | ||
"version": "2.0.2" | ||
"version": "2.0.3" | ||
} |
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
16647