@solana/web3.js 1.44.3 → 1.45.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.
@@ -4599,6 +4599,7 @@ function makeWebsocketUrl(endpoint) {
4599
4599
  return url.toString();
4600
4600
  }
4601
4601
 
4602
+ var _process$env$npm_pack;
4602
4603
  const PublicKeyFromString = superstruct.coerce(superstruct.instance(PublicKey), superstruct.string(), value => new PublicKey(value));
4603
4604
  const RawAccountDataResult = superstruct.tuple([superstruct.string(), superstruct.literal('base64')]);
4604
4605
  const BufferFromRawAccountData = superstruct.coerce(superstruct.instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
@@ -4809,7 +4810,7 @@ function createRpcClient(url, useHttps, httpHeaders, customFetch, fetchMiddlewar
4809
4810
  agent,
4810
4811
  headers: Object.assign({
4811
4812
  'Content-Type': 'application/json'
4812
- }, httpHeaders || {})
4813
+ }, httpHeaders || {}, COMMON_HTTP_HEADERS)
4813
4814
  };
4814
4815
 
4815
4816
  try {
@@ -5482,9 +5483,14 @@ const LogsNotificationResult = superstruct.type({
5482
5483
  * Filter for log subscriptions.
5483
5484
  */
5484
5485
 
5486
+ /** @internal */
5487
+ const COMMON_HTTP_HEADERS = {
5488
+ 'solana-client': `js/${(_process$env$npm_pack = "0.0.0-development") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
5489
+ };
5485
5490
  /**
5486
5491
  * A connection to a fullnode JSON RPC endpoint
5487
5492
  */
5493
+
5488
5494
  class Connection {
5489
5495
  /** @internal */
5490
5496