Skip to content

Commit

Permalink
Updated semver to account for missing arguments in equal method.
Browse files Browse the repository at this point in the history
  • Loading branch information
coreybutler committed Sep 19, 2020
1 parent 4c4bf73 commit f8255e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@ngnjs/plugin",
"version": "1.0.0-alpha.6",
"version": "1.0.0-alpha.7",
"description": "A plugin module for NGN.",
"main": "src/index.js",
"module": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion src/semver.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ export default class SV {

static eq () {
const { a, b } = normalize(arguments)
return a.toString() === b.toString()
try { return a.toString() === b.toString() } catch (e) { return false }
}

// Only necessary when inc/dec are enabled.
Expand Down

0 comments on commit f8255e9

Please sign in to comment.