From a4e944d72c52afebaff27269e5f40fdc67d9c77b Mon Sep 17 00:00:00 2001 From: Ivan Kalinin Date: Sun, 23 May 2021 00:27:47 +0300 Subject: [PATCH] Fix old transactions stream guard --- docs/classes/address.html | 8 ++++---- docs/classes/addressliteral.html | 8 ++++---- docs/classes/contract.html | 8 ++++---- docs/classes/providernotfoundexception.html | 8 ++++---- docs/classes/providerrpcclient.html | 8 ++++---- docs/classes/subscriber.html | 8 ++++---- docs/classes/tvmexception.html | 8 ++++---- docs/index.html | 8 ++++---- docs/interfaces/contractmethod.html | 8 ++++---- docs/interfaces/contractstate.html | 8 ++++---- docs/interfaces/fullcontractstate.html | 8 ++++---- docs/interfaces/provider.html | 8 ++++---- docs/interfaces/providerstate.html | 8 ++++---- docs/interfaces/rawproviderrequest.html | 8 ++++---- docs/interfaces/stream.html | 8 ++++---- docs/interfaces/subscription.html | 8 ++++---- package.json | 2 +- src/stream.ts | 2 +- 18 files changed, 66 insertions(+), 66 deletions(-) diff --git a/docs/classes/address.html b/docs/classes/address.html index 85722b25..ce2cf1b0 100644 --- a/docs/classes/address.html +++ b/docs/classes/address.html @@ -3,8 +3,8 @@ - Address | ton-inpage-provider - v0.1.8 - + Address | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Address diff --git a/docs/classes/addressliteral.html b/docs/classes/addressliteral.html index 9b34ca3a..0987080e 100644 --- a/docs/classes/addressliteral.html +++ b/docs/classes/addressliteral.html @@ -3,8 +3,8 @@ - AddressLiteral | ton-inpage-provider - v0.1.8 - + AddressLiteral | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • AddressLiteral diff --git a/docs/classes/contract.html b/docs/classes/contract.html index 6fcf3192..f85fd17b 100644 --- a/docs/classes/contract.html +++ b/docs/classes/contract.html @@ -3,8 +3,8 @@ - Contract | ton-inpage-provider - v0.1.8 - + Contract | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Contract diff --git a/docs/classes/providernotfoundexception.html b/docs/classes/providernotfoundexception.html index c3e92cb1..f10e9ef1 100644 --- a/docs/classes/providernotfoundexception.html +++ b/docs/classes/providernotfoundexception.html @@ -3,8 +3,8 @@ - ProviderNotFoundException | ton-inpage-provider - v0.1.8 - + ProviderNotFoundException | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • ProviderNotFoundException diff --git a/docs/classes/providerrpcclient.html b/docs/classes/providerrpcclient.html index fc01f3f6..82bfcc93 100644 --- a/docs/classes/providerrpcclient.html +++ b/docs/classes/providerrpcclient.html @@ -3,8 +3,8 @@ - ProviderRpcClient | ton-inpage-provider - v0.1.8 - + ProviderRpcClient | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • ProviderRpcClient diff --git a/docs/classes/subscriber.html b/docs/classes/subscriber.html index efd81e49..57bef009 100644 --- a/docs/classes/subscriber.html +++ b/docs/classes/subscriber.html @@ -3,8 +3,8 @@ - Subscriber | ton-inpage-provider - v0.1.8 - + Subscriber | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Subscriber diff --git a/docs/classes/tvmexception.html b/docs/classes/tvmexception.html index 24f7a01b..b63d57eb 100644 --- a/docs/classes/tvmexception.html +++ b/docs/classes/tvmexception.html @@ -3,8 +3,8 @@ - TvmException | ton-inpage-provider - v0.1.8 - + TvmException | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • TvmException diff --git a/docs/index.html b/docs/index.html index a8288fb7..a1e208f0 100644 --- a/docs/index.html +++ b/docs/index.html @@ -3,8 +3,8 @@ - ton-inpage-provider - v0.1.8 - + ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -50,7 +50,7 @@
    -

    ton-inpage-provider - v0.1.8

    +

    ton-inpage-provider - v0.1.9

    diff --git a/docs/interfaces/contractmethod.html b/docs/interfaces/contractmethod.html index ddfec84b..e7005a8a 100644 --- a/docs/interfaces/contractmethod.html +++ b/docs/interfaces/contractmethod.html @@ -3,8 +3,8 @@ - ContractMethod | ton-inpage-provider - v0.1.8 - + ContractMethod | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
  • Preparing search index...
  • The search index is not available
  • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • ContractMethod diff --git a/docs/interfaces/contractstate.html b/docs/interfaces/contractstate.html index 76d5ab14..a2df878f 100644 --- a/docs/interfaces/contractstate.html +++ b/docs/interfaces/contractstate.html @@ -3,8 +3,8 @@ - ContractState | ton-inpage-provider - v0.1.8 - + ContractState | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • ContractState diff --git a/docs/interfaces/fullcontractstate.html b/docs/interfaces/fullcontractstate.html index f11ca546..00ddeba8 100644 --- a/docs/interfaces/fullcontractstate.html +++ b/docs/interfaces/fullcontractstate.html @@ -3,8 +3,8 @@ - FullContractState | ton-inpage-provider - v0.1.8 - + FullContractState | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • FullContractState diff --git a/docs/interfaces/provider.html b/docs/interfaces/provider.html index bacce219..c2297b8d 100644 --- a/docs/interfaces/provider.html +++ b/docs/interfaces/provider.html @@ -3,8 +3,8 @@ - Provider | ton-inpage-provider - v0.1.8 - + Provider | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Provider diff --git a/docs/interfaces/providerstate.html b/docs/interfaces/providerstate.html index 48b16171..946efa15 100644 --- a/docs/interfaces/providerstate.html +++ b/docs/interfaces/providerstate.html @@ -3,8 +3,8 @@ - ProviderState | ton-inpage-provider - v0.1.8 - + ProviderState | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • ProviderState diff --git a/docs/interfaces/rawproviderrequest.html b/docs/interfaces/rawproviderrequest.html index 0579c44b..df066452 100644 --- a/docs/interfaces/rawproviderrequest.html +++ b/docs/interfaces/rawproviderrequest.html @@ -3,8 +3,8 @@ - RawProviderRequest | ton-inpage-provider - v0.1.8 - + RawProviderRequest | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • RawProviderRequest diff --git a/docs/interfaces/stream.html b/docs/interfaces/stream.html index f32f9c73..00fd423b 100644 --- a/docs/interfaces/stream.html +++ b/docs/interfaces/stream.html @@ -3,8 +3,8 @@ - Stream | ton-inpage-provider - v0.1.8 - + Stream | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Stream diff --git a/docs/interfaces/subscription.html b/docs/interfaces/subscription.html index 99159718..16e41a9b 100644 --- a/docs/interfaces/subscription.html +++ b/docs/interfaces/subscription.html @@ -3,8 +3,8 @@ - Subscription | ton-inpage-provider - v0.1.8 - + Subscription | ton-inpage-provider - v0.1.9 + @@ -23,7 +23,7 @@
    • Preparing search index...
    • The search index is not available
    - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    @@ -52,7 +52,7 @@
    • - ton-inpage-provider - v0.1.8 + ton-inpage-provider - v0.1.9
    • Subscription diff --git a/package.json b/package.json index 023732f8..de6b48cc 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ton-inpage-provider", - "version": "0.1.8", + "version": "0.1.9", "description": "Web3-like interface to TON provided by TON Crystal Wallet browser extension", "repository": "https://github.com/broxus/ton-inpage-provider", "main": "dist/index.js", diff --git a/src/stream.ts b/src/stream.ts index f9f9b9e1..cb0084a6 100644 --- a/src/stream.ts +++ b/src/stream.ts @@ -73,7 +73,7 @@ class UnorderedTransactionsScanner { ) )); - if (filteredTransactions == null) { + if (filteredTransactions.length == 0) { break; }