@solana/web3.js 1.92.3 → 1.93.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.browser.cjs.js +3 -6
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +3 -4
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +3 -6
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +3 -4
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +349 -414
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +1 -1
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +3 -6
- package/lib/index.native.js.map +1 -1
- package/package.json +3 -3
- package/src/rpc-websocket.ts +9 -13
- package/src/__forks__/browser/rpc-websocket-factory.ts +0 -1
- package/src/__forks__/react-native/rpc-websocket-factory.ts +0 -1
- package/src/rpc-websocket-factory.ts +0 -4
package/lib/index.browser.esm.js
CHANGED
|
@@ -9,8 +9,7 @@ import { blob } from '@solana/buffer-layout';
|
|
|
9
9
|
import { toBigIntLE, toBufferLE } from 'bigint-buffer';
|
|
10
10
|
import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
|
|
11
11
|
import RpcClient from 'jayson/lib/client/browser';
|
|
12
|
-
import
|
|
13
|
-
import createRpc from 'rpc-websockets/dist/lib/client/websocket.browser.cjs';
|
|
12
|
+
import { CommonClient, WebSocket } from 'rpc-websockets';
|
|
14
13
|
import { keccak_256 } from '@noble/hashes/sha3';
|
|
15
14
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
16
15
|
|
|
@@ -3531,10 +3530,10 @@ class EpochSchedule {
|
|
|
3531
3530
|
|
|
3532
3531
|
var fetchImpl = globalThis.fetch;
|
|
3533
3532
|
|
|
3534
|
-
class RpcWebSocketClient extends
|
|
3533
|
+
class RpcWebSocketClient extends CommonClient {
|
|
3535
3534
|
constructor(address, options, generate_request_id) {
|
|
3536
3535
|
const webSocketFactory = url => {
|
|
3537
|
-
const rpc =
|
|
3536
|
+
const rpc = WebSocket(url, {
|
|
3538
3537
|
autoconnect: true,
|
|
3539
3538
|
max_reconnects: 5,
|
|
3540
3539
|
reconnect: true,
|