@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.cjs.js
CHANGED
|
@@ -10,8 +10,7 @@ var BufferLayout = require('@solana/buffer-layout');
|
|
|
10
10
|
var bigintBuffer = require('bigint-buffer');
|
|
11
11
|
var superstruct = require('superstruct');
|
|
12
12
|
var RpcClient = require('jayson/lib/client/browser');
|
|
13
|
-
var
|
|
14
|
-
var createRpc = require('rpc-websockets/dist/lib/client/websocket.browser.cjs');
|
|
13
|
+
var rpcWebsockets = require('rpc-websockets');
|
|
15
14
|
var sha3 = require('@noble/hashes/sha3');
|
|
16
15
|
var secp256k1 = require('@noble/curves/secp256k1');
|
|
17
16
|
|
|
@@ -39,8 +38,6 @@ var BN__default = /*#__PURE__*/_interopDefaultCompat(BN);
|
|
|
39
38
|
var bs58__default = /*#__PURE__*/_interopDefaultCompat(bs58);
|
|
40
39
|
var BufferLayout__namespace = /*#__PURE__*/_interopNamespaceCompat(BufferLayout);
|
|
41
40
|
var RpcClient__default = /*#__PURE__*/_interopDefaultCompat(RpcClient);
|
|
42
|
-
var RpcWebSocketCommonClient__default = /*#__PURE__*/_interopDefaultCompat(RpcWebSocketCommonClient);
|
|
43
|
-
var createRpc__default = /*#__PURE__*/_interopDefaultCompat(createRpc);
|
|
44
41
|
|
|
45
42
|
/**
|
|
46
43
|
* A 64 byte secret key, the first 32 bytes of which is the
|
|
@@ -3559,10 +3556,10 @@ class EpochSchedule {
|
|
|
3559
3556
|
|
|
3560
3557
|
var fetchImpl = globalThis.fetch;
|
|
3561
3558
|
|
|
3562
|
-
class RpcWebSocketClient extends
|
|
3559
|
+
class RpcWebSocketClient extends rpcWebsockets.CommonClient {
|
|
3563
3560
|
constructor(address, options, generate_request_id) {
|
|
3564
3561
|
const webSocketFactory = url => {
|
|
3565
|
-
const rpc =
|
|
3562
|
+
const rpc = rpcWebsockets.WebSocket(url, {
|
|
3566
3563
|
autoconnect: true,
|
|
3567
3564
|
max_reconnects: 5,
|
|
3568
3565
|
reconnect: true,
|