@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.
package/lib/index.iife.js CHANGED
@@ -19424,6 +19424,7 @@ var solanaWeb3 = (function (exports) {
19424
19424
  return url.toString();
19425
19425
  }
19426
19426
 
19427
+ var _process$env$npm_pack;
19427
19428
  const PublicKeyFromString = coerce(instance(PublicKey), string(), value => new PublicKey(value));
19428
19429
  const RawAccountDataResult = tuple([string(), literal('base64')]);
19429
19430
  const BufferFromRawAccountData = coerce(instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
@@ -19634,7 +19635,7 @@ var solanaWeb3 = (function (exports) {
19634
19635
  agent,
19635
19636
  headers: Object.assign({
19636
19637
  'Content-Type': 'application/json'
19637
- }, httpHeaders || {})
19638
+ }, httpHeaders || {}, COMMON_HTTP_HEADERS)
19638
19639
  };
19639
19640
 
19640
19641
  try {
@@ -20307,9 +20308,14 @@ var solanaWeb3 = (function (exports) {
20307
20308
  * Filter for log subscriptions.
20308
20309
  */
20309
20310
 
20311
+ /** @internal */
20312
+ const COMMON_HTTP_HEADERS = {
20313
+ 'solana-client': `js/${(_process$env$npm_pack = "0.0.0-development") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
20314
+ };
20310
20315
  /**
20311
20316
  * A connection to a fullnode JSON RPC endpoint
20312
20317
  */
20318
+
20313
20319
  class Connection {
20314
20320
  /** @internal */
20315
20321