@solana/web3.js 1.44.4 → 1.45.1

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
@@ -19453,6 +19453,7 @@ var solanaWeb3 = (function (exports) {
19453
19453
  return url.toString();
19454
19454
  }
19455
19455
 
19456
+ var _process$env$npm_pack;
19456
19457
  const PublicKeyFromString = coerce(instance(PublicKey), string(), value => new PublicKey(value));
19457
19458
  const RawAccountDataResult = tuple([string(), literal('base64')]);
19458
19459
  const BufferFromRawAccountData = coerce(instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
@@ -19663,7 +19664,7 @@ var solanaWeb3 = (function (exports) {
19663
19664
  agent,
19664
19665
  headers: Object.assign({
19665
19666
  'Content-Type': 'application/json'
19666
- }, httpHeaders || {})
19667
+ }, httpHeaders || {}, COMMON_HTTP_HEADERS)
19667
19668
  };
19668
19669
 
19669
19670
  try {
@@ -20336,9 +20337,14 @@ var solanaWeb3 = (function (exports) {
20336
20337
  * Filter for log subscriptions.
20337
20338
  */
20338
20339
 
20340
+ /** @internal */
20341
+ const COMMON_HTTP_HEADERS = {
20342
+ 'solana-client': `js/${(_process$env$npm_pack = "1.45.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
20343
+ };
20339
20344
  /**
20340
20345
  * A connection to a fullnode JSON RPC endpoint
20341
20346
  */
20347
+
20342
20348
  class Connection {
20343
20349
  /** @internal */
20344
20350