Skip to content

Commit

Permalink
Merge pull request #120 from blocknative/release/3.3.2
Browse files Browse the repository at this point in the history
Release 3.3.2
  • Loading branch information
lnbc1QWFyb24 authored May 11, 2021
2 parents 1d466d8 + 6bf9125 commit 97da682
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bnc-sdk",
"version": "3.3.1",
"version": "3.3.2",
"description": "SDK to connect to the blocknative backend via a websocket connection",
"keywords": [
"ethereum",
Expand Down
5 changes: 4 additions & 1 deletion src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,10 @@ export function handleMessage(this: any, msg: { data: string }): void {

// handle any errors from the server
if (status === 'error') {
if (reason.includes('ratelimit') && !reason.includes('IP ratelimited')) {
if (
reason.includes('ratelimit') &&
!reason.match(/IP (PendingSimulation|Notification) ratelimit reached/)
) {
this._waitToRetry = wait(retryMs)
this._limitRules = limitRules

Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2066,9 +2066,9 @@ lodash.defaults@^4.2.0:
integrity sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw=

lodash@^4.17.13, lodash@^4.17.14, lodash@^4.17.15:
version "4.17.19"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.19.tgz#e48ddedbe30b3321783c5b4301fbd353bc1e4a4b"
integrity sha512-JNvd8XER9GQX0v2qJgsaN/mzFCNA5BRe/j8JN9d+tWyGLSodKQHKFicdwNYzWwI3wjRnaKPsGj1XkBjx/F96DQ==
version "4.17.21"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c"
integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==

loose-envify@^1.0.0:
version "1.4.0"
Expand Down

0 comments on commit 97da682

Please sign in to comment.