Skip to content

Commit 0315c73

Browse files
authored
[tag] 0.2.36 (#87)
* [tag] 0.2.36 * Adjust WebSocket check
1 parent b79b300 commit 0315c73

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

CHANGELOG.md

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
# CHANGELOG
22

3-
## master
3+
## 0.2.36 Apr 23, 2023
44

55
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.4.1
6-
- phishing 0.21.1
76
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 12.0.1
87
- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.1.1
9-
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.3.4
10-
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.3.3
8+
- phishing 0.21.1
9+
1110

1211
## 0.2.35 Apr 10, 2023
1312

@@ -17,22 +16,22 @@
1716
## 0.2.34 Apr 1, 2023
1817

1918
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.2.2
20-
- phishing 0.20.5
2119
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 11.1.3
20+
- phishing 0.20.5
2221

2322

2423
## 0.2.33 Mar 25, 2023
2524

2625
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.2.1
27-
- phishing 0.20.4
2826
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 11.1.2
27+
- phishing 0.20.4
2928

3029

3130
## 0.2.32 Mar 19, 2023
3231

3332
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.1.4
34-
- phishing 0.20.3
3533
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 11.1.1
34+
- phishing 0.20.3
3635

3736

3837
## 0.2.31 Mar 12, 2023
@@ -43,9 +42,9 @@
4342
## 0.2.30 Mar 11, 2023
4443

4544
- api, api-{augment, base, contract, derive}, rpc-{augment, core, provider}, types, types-{augment, codec, create, known} 10.1.1
46-
- phishing 0.20.2
4745
- hw-{ledger, ledger-transports}, keyring, networks, util, util-crypto, x-{bigint, fetch, global, randomvalues, textdecoder, textencoder, ws} 11.0.2
4846
- wasm-{bridge, crypto, crypto-{asmjs, init, wasm}, util} 7.0.3
47+
- phishing 0.20.2
4948

5049

5150
## 0.2.29 Mar 5, 2023

rpc-provider/ws/index.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11

22
/* eslint-disable camelcase */
33

4+
import type { Constructor } from 'https://deno.land/x/polkadot/util/types.ts';
45
import type { EndpointStats, JsonRpcResponse, ProviderInterface, ProviderInterfaceCallback, ProviderInterfaceEmitCb, ProviderInterfaceEmitted, ProviderStats } from '../types.ts';
56

67
import { EventEmitter } from 'https://esm.sh/eventemitter3@5.0.0';
@@ -207,8 +208,8 @@ export class WsProvider implements ProviderInterface {
207208
try {
208209
this.#endpointIndex = this.selectEndpointIndex(this.#endpoints);
209210

210-
// the as typeof WebSocket here is Deno-specific - not available on the globalThis
211-
this.#websocket = typeof xglobal.WebSocket !== 'undefined' && isChildClass(xglobal.WebSocket as typeof WebSocket, WebSocket)
211+
// the as here is Deno-specific - not available on the globalThis
212+
this.#websocket = typeof xglobal.WebSocket !== 'undefined' && isChildClass(xglobal.WebSocket as unknown as Constructor, WebSocket)
212213
? new WebSocket(this.endpoint)
213214
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
214215
// @ts-ignore - WS may be an instance of ws, which supports options

0 commit comments

Comments
 (0)