@solana/web3.js 1.91.4 → 1.91.5
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 +72 -78
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +72 -78
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +4 -78
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.esm.js +3 -78
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +72 -74
- 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 +72 -78
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -2
- package/src/connection.ts +2 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@solana/web3.js",
|
|
3
|
-
"version": "1.91.
|
|
3
|
+
"version": "1.91.5",
|
|
4
4
|
"description": "Solana Javascript API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api",
|
|
@@ -59,13 +59,13 @@
|
|
|
59
59
|
"@noble/curves": "^1.2.0",
|
|
60
60
|
"@noble/hashes": "^1.3.3",
|
|
61
61
|
"@solana/buffer-layout": "^4.0.1",
|
|
62
|
+
"@solana/fast-stable-stringify": "workspace:*",
|
|
62
63
|
"agentkeepalive": "^4.5.0",
|
|
63
64
|
"bigint-buffer": "^1.1.5",
|
|
64
65
|
"bn.js": "^5.2.1",
|
|
65
66
|
"borsh": "^0.7.0",
|
|
66
67
|
"bs58": "^4.0.1",
|
|
67
68
|
"buffer": "6.0.3",
|
|
68
|
-
"fast-stable-stringify": "^1.0.0",
|
|
69
69
|
"jayson": "^4.1.0",
|
|
70
70
|
"node-fetch": "^2.7.0",
|
|
71
71
|
"rpc-websockets": "^7.5.1",
|
package/src/connection.ts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
|
+
import fastStableStringify from '@solana/fast-stable-stringify';
|
|
1
2
|
import HttpKeepAliveAgent, {
|
|
2
3
|
HttpsAgent as HttpsKeepAliveAgent,
|
|
3
4
|
} from 'agentkeepalive';
|
|
4
5
|
import bs58 from 'bs58';
|
|
5
6
|
import {Buffer} from 'buffer';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import fastStableStringify from 'fast-stable-stringify';
|
|
8
7
|
import type {Agent as NodeHttpAgent} from 'http';
|
|
9
8
|
import {Agent as NodeHttpsAgent} from 'https';
|
|
10
9
|
import {
|
|
@@ -6291,10 +6290,7 @@ export class Connection {
|
|
|
6291
6290
|
args: IWSRequestParams,
|
|
6292
6291
|
): ClientSubscriptionId {
|
|
6293
6292
|
const clientSubscriptionId = this._nextClientSubscriptionId++;
|
|
6294
|
-
const hash = fastStableStringify(
|
|
6295
|
-
[subscriptionConfig.method, args],
|
|
6296
|
-
true /* isArrayProp */,
|
|
6297
|
-
);
|
|
6293
|
+
const hash = fastStableStringify([subscriptionConfig.method, args]);
|
|
6298
6294
|
const existingSubscription = this._subscriptionsByHash[hash];
|
|
6299
6295
|
if (existingSubscription === undefined) {
|
|
6300
6296
|
this._subscriptionsByHash[hash] = {
|