Skip to content

Commit

Permalink
Merge pull request #96 from MadKudu/upgrade-dependencies
Browse files Browse the repository at this point in the history
Upgrade dependencies
  • Loading branch information
GhassenRjab authored Sep 27, 2022
2 parents 8f9fee7 + 9a9db51 commit f19db8b
Show file tree
Hide file tree
Showing 6 changed files with 1,829 additions and 14 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@
/.history
*.iml
test/helper/config.bk.js
package-lock.json
5 changes: 5 additions & 0 deletions .mocharc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
fullTrace: true,
bail: true,
exit: true,
};
2 changes: 1 addition & 1 deletion lib/errors.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ function isRateLimited(err) {
};

function isAwaitable(err) {
return err.errors[0].code === '0';
return err?.errors?.[0]?.code === '0';
};

function HttpError(statusCode, data) {
Expand Down
Loading

0 comments on commit f19db8b

Please sign in to comment.