@capriza/http-utils
Advanced tools
Comparing version 0.2.14-dev.7 to 0.2.14-dev.8
@@ -22,6 +22,10 @@ | ||
if (versionTag) { | ||
let tagCurrentVersion = execSync(`npm dist-tag ls`).toString().split("\n").find(s => s.startsWith(`${versionTag}: `)); | ||
if (tagCurrentVersion) { | ||
tagCurrentVersion = parseInt(tagCurrentVersion.slice(tagCurrentVersion.lastIndexOf(".") + 1)); | ||
} else tagCurrentVersion = -1; | ||
let tagCurrentVersion; | ||
execSync(`npm dist-tag ls`).toString().split("\n").some(s => { | ||
const versionTagRE = new RegExp(`^${versionTag}: ([^-]*)-${versionTag}\\.(.*)`); | ||
const res = versionTagRE.exec(s); | ||
if (res && res[1] === version) tagCurrentVersion = parseInt(res[2]); | ||
return !!res; | ||
}); | ||
if (typeof tagCurrentVersion !== "number") tagCurrentVersion = -1; | ||
version += `-${versionTag}.${tagCurrentVersion + 1}`; | ||
@@ -28,0 +32,0 @@ } |
{ | ||
"name": "@capriza/http-utils", | ||
"version": "0.2.14-dev.7", | ||
"version": "0.2.14-dev.8", | ||
"description": "HTTP Request utils that handles, request-response, errors, concurrency, priority and authentication", | ||
@@ -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
42321
596