@solana/web3.js 1.92.3 → 1.93.1

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.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 RpcWebSocketCommonClient from 'rpc-websockets/dist/lib/client.cjs';
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 RpcWebSocketCommonClient {
4203
+ class RpcWebSocketClient extends CommonClient {
4205
4204
  constructor(address, options, generate_request_id) {
4206
4205
  const webSocketFactory = url => {
4207
- const rpc = WebsocketFactory(url, {
4206
+ const rpc = WebSocket(url, {
4208
4207
  autoconnect: true,
4209
4208
  max_reconnects: 5,
4210
4209
  reconnect: true,