@solana/web3.js 1.69.0 → 1.70.0-pr-29130
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 +0 -13
- package/lib/index.browser.cjs.js +11 -4
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +11 -4
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2632 -62
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +8 -0
- package/lib/index.esm.js +2625 -60
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +11 -4
- 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 +11 -4
- package/lib/index.native.js.map +1 -1
- package/package.json +3 -2
- package/src/connection.ts +53 -7
- package/src/agent-manager.ts +0 -44
package/lib/index.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
2
|
declare module '@solana/web3.js' {
|
|
3
3
|
import {Buffer} from 'buffer';
|
|
4
|
+
import {Agent} from 'http';
|
|
5
|
+
import {Agent as Agent$1} from 'https';
|
|
4
6
|
import * as nodeFetch from 'node-fetch';
|
|
5
7
|
|
|
6
8
|
export class Struct {
|
|
@@ -3272,6 +3274,12 @@ declare module '@solana/web3.js' {
|
|
|
3272
3274
|
* Configuration for instantiating a Connection
|
|
3273
3275
|
*/
|
|
3274
3276
|
type ConnectionConfig = {
|
|
3277
|
+
/**
|
|
3278
|
+
* An `http.Agent` that will be used to manage socket connections (eg. to implement connection
|
|
3279
|
+
* persistence). Set this to `false` to create a connection that uses no agent. This applies to
|
|
3280
|
+
* Node environments only.
|
|
3281
|
+
*/
|
|
3282
|
+
httpAgent?: Agent | Agent$1 | false;
|
|
3275
3283
|
/** Optional commitment level */
|
|
3276
3284
|
commitment?: Commitment;
|
|
3277
3285
|
/** Optional endpoint URL to the fullnode JSON RPC PubSub WebSocket Endpoint */
|