@solana/web3.js 1.69.0 → 1.70.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.iife.js CHANGED
@@ -17514,9 +17514,15 @@ var solanaWeb3 = (function (exports) {
17514
17514
  * A performance sample
17515
17515
  */
17516
17516
 
17517
- function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit) {
17517
+ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
17518
17518
  const fetch = customFetch ? customFetch : fetchImpl;
17519
17519
 
17520
+ {
17521
+ if (httpAgent != null) {
17522
+ console.warn('You have supplied an `httpAgent` when creating a `Connection` in a browser environment.' + 'It has been ignored; `httpAgent` is only used in Node environments.');
17523
+ }
17524
+ }
17525
+
17520
17526
  let fetchWithMiddleware;
17521
17527
 
17522
17528
  if (fetchMiddleware) {
@@ -18423,6 +18429,7 @@ var solanaWeb3 = (function (exports) {
18423
18429
  let fetch;
18424
18430
  let fetchMiddleware;
18425
18431
  let disableRetryOnRateLimit;
18432
+ let httpAgent;
18426
18433
 
18427
18434
  if (commitmentOrConfig && typeof commitmentOrConfig === 'string') {
18428
18435
  this._commitment = commitmentOrConfig;
@@ -18434,11 +18441,12 @@ var solanaWeb3 = (function (exports) {
18434
18441
  fetch = commitmentOrConfig.fetch;
18435
18442
  fetchMiddleware = commitmentOrConfig.fetchMiddleware;
18436
18443
  disableRetryOnRateLimit = commitmentOrConfig.disableRetryOnRateLimit;
18444
+ httpAgent = commitmentOrConfig.httpAgent;
18437
18445
  }
18438
18446
 
18439
18447
  this._rpcEndpoint = assertEndpointUrl(endpoint);
18440
18448
  this._rpcWsEndpoint = wsEndpoint || makeWebsocketUrl(endpoint);
18441
- this._rpcClient = createRpcClient(endpoint, httpHeaders, fetch, fetchMiddleware, disableRetryOnRateLimit);
18449
+ this._rpcClient = createRpcClient(endpoint, httpHeaders, fetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent);
18442
18450
  this._rpcRequest = createRpcRequest(this._rpcClient);
18443
18451
  this._rpcBatchRequest = createRpcBatchRequest(this._rpcClient);
18444
18452
  this._rpcWebSocket = new Client_1(this._rpcWsEndpoint, {