From f8255e99e6ea6228276955526d89a450de24d021 Mon Sep 17 00:00:00 2001 From: Corey Butler Date: Fri, 18 Sep 2020 22:25:54 -0500 Subject: [PATCH] Updated semver to account for missing arguments in equal method. --- package.json | 2 +- src/semver.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 018e3cf..828aa24 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/src/semver.js b/src/semver.js index 5f6f99a..fdc35a8 100644 --- a/src/semver.js +++ b/src/semver.js @@ -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.