Skip to content

Commit

Permalink
fixed versioning bug
Browse files Browse the repository at this point in the history
  • Loading branch information
dauglyon committed May 3, 2019
1 parent 0dd0fdc commit 9e1509f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/brapiVersion.js
Original file line number Diff line number Diff line change
Expand Up @@ -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());
}
}
}
Expand Down

0 comments on commit 9e1509f

Please sign in to comment.