Comparing version 7.1.2 to 7.1.3
@@ -10,7 +10,5 @@ const parse = require('./parse') | ||
const v2 = parse(version2) | ||
let prefix = '' | ||
if (v1.prerelease.length || v2.prerelease.length) { | ||
prefix = 'pre' | ||
var defaultResult = 'prerelease' | ||
} | ||
const hasPre = v1.prerelease.length || v2.prerelease.length | ||
const prefix = hasPre ? 'pre' : '' | ||
const defaultResult = hasPre ? 'prerelease' : '' | ||
for (const key in v1) { | ||
@@ -17,0 +15,0 @@ if (key === 'major' || key === 'minor' || key === 'patch') { |
{ | ||
"name": "semver", | ||
"version": "7.1.2", | ||
"version": "7.1.3", | ||
"description": "The semantic version parser used by npm.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
75465
1570