@solana/web3.js 1.95.3 → 1.95.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/README.md +1 -1
- package/lib/index.browser.cjs.js +83 -72
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +83 -72
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +752 -689
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +1 -0
- package/lib/index.esm.js +755 -692
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +10339 -10082
- package/lib/index.iife.js.map +1 -1
- package/lib/index.iife.min.js +11 -11
- package/lib/index.iife.min.js.map +1 -1
- package/lib/index.native.js +83 -72
- package/lib/index.native.js.map +1 -1
- package/package.json +1 -1
- package/src/connection.ts +8 -6
package/package.json
CHANGED
package/src/connection.ts
CHANGED
|
@@ -1050,6 +1050,7 @@ export type TokenBalance = {
|
|
|
1050
1050
|
accountIndex: number;
|
|
1051
1051
|
mint: string;
|
|
1052
1052
|
owner?: string;
|
|
1053
|
+
programId?: string;
|
|
1053
1054
|
uiTokenAmount: TokenAmount;
|
|
1054
1055
|
};
|
|
1055
1056
|
|
|
@@ -2330,6 +2331,7 @@ const TokenBalanceResult = pick({
|
|
|
2330
2331
|
accountIndex: number(),
|
|
2331
2332
|
mint: string(),
|
|
2332
2333
|
owner: optional(string()),
|
|
2334
|
+
programId: optional(string()),
|
|
2333
2335
|
uiTokenAmount: TokenAmountResult,
|
|
2334
2336
|
});
|
|
2335
2337
|
|
|
@@ -6252,13 +6254,13 @@ export class Connection {
|
|
|
6252
6254
|
] = subscription.callbacks;
|
|
6253
6255
|
await this._updateSubscriptions();
|
|
6254
6256
|
} catch (e) {
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6257
|
+
console.error(
|
|
6258
|
+
`Received ${e instanceof Error ? '' : 'JSON-RPC '}error calling \`${method}\``,
|
|
6259
|
+
{
|
|
6258
6260
|
args,
|
|
6259
|
-
e
|
|
6260
|
-
|
|
6261
|
-
|
|
6261
|
+
error: e,
|
|
6262
|
+
},
|
|
6263
|
+
);
|
|
6262
6264
|
if (!isCurrentConnectionStillActive()) {
|
|
6263
6265
|
return;
|
|
6264
6266
|
}
|