Skip to content

Commit

Permalink
Upgrade dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
GhassenRjab committed Sep 27, 2022
1 parent 7ea1394 commit 9a9db51
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 9a9db51

Please sign in to comment.