Skip to content

Commit

Permalink
chore: bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Cherry committed Dec 28, 2023
1 parent 288156a commit 8744b9b
Show file tree
Hide file tree
Showing 3 changed files with 438 additions and 231 deletions.
4 changes: 2 additions & 2 deletions lib/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ module.exports = function validate(options) {
if (!endpoint.url) {
throw new Error('The `endpoint.url` parameter must be set on every endpoint');
}
if (endpoint.priority && typeof(endpoint.priority) !== 'number' || endpoint.priority <= 0) {
if (endpoint.priority && (typeof(endpoint.priority) !== 'number' || endpoint.priority <= 0)) {
throw new Error('The `endpoint.priority parameter must be a positive integer if set.');
}
if (endpoint.weight && typeof(endpoint.weight) !== 'number' || endpoint.weight <= 0) {
if (endpoint.weight && (typeof(endpoint.weight) !== 'number' || endpoint.weight <= 0)) {
throw new Error('The `endpoint.weight parameter must be a positive integer if set.');
}
}
Expand Down
Loading

0 comments on commit 8744b9b

Please sign in to comment.