From 9e1509f62160a250676c74d1f1d22801d6a1c1fd Mon Sep 17 00:00:00 2001 From: dauglyon Date: Fri, 3 May 2019 16:26:30 +0200 Subject: [PATCH] fixed versioning bug --- src/brapiVersion.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/brapiVersion.js b/src/brapiVersion.js index c7cabb5..67dbfe3 100644 --- a/src/brapiVersion.js +++ b/src/brapiVersion.js @@ -70,13 +70,13 @@ class BrAPI_Version_Class { if (check.removed) check.removed = brapiVersion(check.removed); if (check.introduced && this.predates(check.introduced)){ - console.warn(method_name+" is unintroduced in BrAPI@"+this.string()+" before BrAPI@"+check.introduced.string()); + console.warn(name+" is unintroduced in BrAPI@"+this.string()+" before BrAPI@"+check.introduced.string()); } else if (check.deprecated && !this.predates(check.deprecated)){ - console.warn(method_name+" is deprecated in BrAPI@"+this.string()+" since BrAPI@"+check.deprecated.string()); + console.warn(name+" is deprecated in BrAPI@"+this.string()+" since BrAPI@"+check.deprecated.string()); } else if (check.removed && check.removed.predates(this)){ - console.warn(method_name+" was removed from BrAPI@"+this.string()+" since BrAPI@"+check.removed.string()); + console.warn(name+" was removed from BrAPI@"+this.string()+" since BrAPI@"+check.removed.string()); } } }