@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.browser.cjs.js +7 -1
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +7 -1
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +7 -1
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.esm.js +7 -1
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +7 -1
- 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/package.json +3 -3
- package/src/connection.ts +12 -1
package/lib/index.browser.cjs.js
CHANGED
|
@@ -4628,6 +4628,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4628
4628
|
return url.toString();
|
|
4629
4629
|
}
|
|
4630
4630
|
|
|
4631
|
+
var _process$env$npm_pack;
|
|
4631
4632
|
const PublicKeyFromString = superstruct.coerce(superstruct.instance(PublicKey), superstruct.string(), value => new PublicKey(value));
|
|
4632
4633
|
const RawAccountDataResult = superstruct.tuple([superstruct.string(), superstruct.literal('base64')]);
|
|
4633
4634
|
const BufferFromRawAccountData = superstruct.coerce(superstruct.instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
|
|
@@ -4838,7 +4839,7 @@ function createRpcClient(url, useHttps, httpHeaders, customFetch, fetchMiddlewar
|
|
|
4838
4839
|
agent,
|
|
4839
4840
|
headers: Object.assign({
|
|
4840
4841
|
'Content-Type': 'application/json'
|
|
4841
|
-
}, httpHeaders || {})
|
|
4842
|
+
}, httpHeaders || {}, COMMON_HTTP_HEADERS)
|
|
4842
4843
|
};
|
|
4843
4844
|
|
|
4844
4845
|
try {
|
|
@@ -5511,9 +5512,14 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5511
5512
|
* Filter for log subscriptions.
|
|
5512
5513
|
*/
|
|
5513
5514
|
|
|
5515
|
+
/** @internal */
|
|
5516
|
+
const COMMON_HTTP_HEADERS = {
|
|
5517
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.45.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5518
|
+
};
|
|
5514
5519
|
/**
|
|
5515
5520
|
* A connection to a fullnode JSON RPC endpoint
|
|
5516
5521
|
*/
|
|
5522
|
+
|
|
5517
5523
|
class Connection {
|
|
5518
5524
|
/** @internal */
|
|
5519
5525
|
|