@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.cjs.js
CHANGED
|
@@ -4707,6 +4707,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4707
4707
|
return url.toString();
|
|
4708
4708
|
}
|
|
4709
4709
|
|
|
4710
|
+
var _process$env$npm_pack;
|
|
4710
4711
|
const PublicKeyFromString = superstruct.coerce(superstruct.instance(PublicKey), superstruct.string(), value => new PublicKey(value));
|
|
4711
4712
|
const RawAccountDataResult = superstruct.tuple([superstruct.string(), superstruct.literal('base64')]);
|
|
4712
4713
|
const BufferFromRawAccountData = superstruct.coerce(superstruct.instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
|
|
@@ -4922,7 +4923,7 @@ function createRpcClient(url, useHttps, httpHeaders, customFetch, fetchMiddlewar
|
|
|
4922
4923
|
agent,
|
|
4923
4924
|
headers: Object.assign({
|
|
4924
4925
|
'Content-Type': 'application/json'
|
|
4925
|
-
}, httpHeaders || {})
|
|
4926
|
+
}, httpHeaders || {}, COMMON_HTTP_HEADERS)
|
|
4926
4927
|
};
|
|
4927
4928
|
|
|
4928
4929
|
try {
|
|
@@ -5596,9 +5597,14 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5596
5597
|
* Filter for log subscriptions.
|
|
5597
5598
|
*/
|
|
5598
5599
|
|
|
5600
|
+
/** @internal */
|
|
5601
|
+
const COMMON_HTTP_HEADERS = {
|
|
5602
|
+
'solana-client': `js/${(_process$env$npm_pack = "1.45.1") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5603
|
+
};
|
|
5599
5604
|
/**
|
|
5600
5605
|
* A connection to a fullnode JSON RPC endpoint
|
|
5601
5606
|
*/
|
|
5607
|
+
|
|
5602
5608
|
class Connection {
|
|
5603
5609
|
/** @internal */
|
|
5604
5610
|
|