@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.esm.js
CHANGED
|
@@ -13,8 +13,7 @@ import require$$0$2, { Agent as Agent$1 } from 'https';
|
|
|
13
13
|
import { coerce, instance, string, tuple, literal, unknown, type, number, array, nullable, optional, boolean, record, union, create, any, assert as assert$1 } from 'superstruct';
|
|
14
14
|
import RpcClient from 'jayson/lib/client/browser';
|
|
15
15
|
import * as nodeFetch from 'node-fetch';
|
|
16
|
-
import
|
|
17
|
-
import WebsocketFactory from 'rpc-websockets/dist/lib/client/websocket.cjs';
|
|
16
|
+
import { CommonClient, WebSocket } from 'rpc-websockets';
|
|
18
17
|
import { keccak_256 } from '@noble/hashes/sha3';
|
|
19
18
|
import { secp256k1 } from '@noble/curves/secp256k1';
|
|
20
19
|
|
|
@@ -4201,10 +4200,10 @@ async function (input, init) {
|
|
|
4201
4200
|
return await nodeFetch.default(processedInput, init);
|
|
4202
4201
|
};
|
|
4203
4202
|
|
|
4204
|
-
class RpcWebSocketClient extends
|
|
4203
|
+
class RpcWebSocketClient extends CommonClient {
|
|
4205
4204
|
constructor(address, options, generate_request_id) {
|
|
4206
4205
|
const webSocketFactory = url => {
|
|
4207
|
-
const rpc =
|
|
4206
|
+
const rpc = WebSocket(url, {
|
|
4208
4207
|
autoconnect: true,
|
|
4209
4208
|
max_reconnects: 5,
|
|
4210
4209
|
reconnect: true,
|