Skip to content

Commit

Permalink
Update/migrate to latest semver
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Feb 18, 2020
1 parent 5ad3e18 commit a11f992
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/util.js
Expand Up @@ -75,7 +75,7 @@ const hasAccess = path => {
const parseVersion = raw => {
if (!raw) return { version: null, isPreRelease: false, preReleaseId: null };
const version = semver.valid(raw) ? raw : semver.coerce(raw);
const parsed = new semver(version);
const parsed = semver.parse(version);
const isPreRelease = parsed.prerelease.length > 0;
const preReleaseId = isPreRelease && isNaN(parsed.prerelease[0]) ? parsed.prerelease[0] : null;
return {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -75,7 +75,7 @@
"mime-types": "2.1.25",
"ora": "4.0.3",
"os-name": "3.1.0",
"semver": "6.3.0",
"semver": "7.1.3",
"shell-quote": "1.7.2",
"shelljs": "0.8.3",
"supports-color": "7.1.0",
Expand Down

0 comments on commit a11f992

Please sign in to comment.