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