@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.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
|
@@ -4568,6 +4568,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4568
4568
|
return url.toString();
|
|
4569
4569
|
}
|
|
4570
4570
|
|
|
4571
|
+
var _process$env$npm_pack;
|
|
4571
4572
|
const PublicKeyFromString = coerce(instance(PublicKey), string(), value => new PublicKey(value));
|
|
4572
4573
|
const RawAccountDataResult = tuple([string(), literal('base64')]);
|
|
4573
4574
|
const BufferFromRawAccountData = coerce(instance(Buffer), RawAccountDataResult, value => Buffer.from(value[0], 'base64'));
|
|
@@ -4778,7 +4779,7 @@ function createRpcClient(url, useHttps, httpHeaders, customFetch, fetchMiddlewar
|
|
|
4778
4779
|
agent,
|
|
4779
4780
|
headers: Object.assign({
|
|
4780
4781
|
'Content-Type': 'application/json'
|
|
4781
|
-
}, httpHeaders || {})
|
|
4782
|
+
}, httpHeaders || {}, COMMON_HTTP_HEADERS)
|
|
4782
4783
|
};
|
|
4783
4784
|
|
|
4784
4785
|
try {
|
|
@@ -5451,9 +5452,14 @@ const LogsNotificationResult = type({
|
|
|
5451
5452
|
* Filter for log subscriptions.
|
|
5452
5453
|
*/
|
|
5453
5454
|
|
|
5455
|
+
/** @internal */
|
|
5456
|
+
const COMMON_HTTP_HEADERS = {
|
|
5457
|
+
'solana-client': `js/${(_process$env$npm_pack = "0.0.0-development") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5458
|
+
};
|
|
5454
5459
|
/**
|
|
5455
5460
|
* A connection to a fullnode JSON RPC endpoint
|
|
5456
5461
|
*/
|
|
5462
|
+
|
|
5457
5463
|
class Connection {
|
|
5458
5464
|
/** @internal */
|
|
5459
5465
|
|