@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.cjs.js
CHANGED
|
@@ -4678,6 +4678,7 @@ function makeWebsocketUrl(endpoint) {
|
|
|
4678
4678
|
return url.toString();
|
|
4679
4679
|
}
|
|
4680
4680
|
|
|
4681
|
+
var _process$env$npm_pack;
|
|
4681
4682
|
const PublicKeyFromString = superstruct.coerce(superstruct.instance(PublicKey), superstruct.string(), value => new PublicKey(value));
|
|
4682
4683
|
const RawAccountDataResult = superstruct.tuple([superstruct.string(), superstruct.literal('base64')]);
|
|
4683
4684
|
const BufferFromRawAccountData = superstruct.coerce(superstruct.instance(buffer.Buffer), RawAccountDataResult, value => buffer.Buffer.from(value[0], 'base64'));
|
|
@@ -4893,7 +4894,7 @@ function createRpcClient(url, useHttps, httpHeaders, customFetch, fetchMiddlewar
|
|
|
4893
4894
|
agent,
|
|
4894
4895
|
headers: Object.assign({
|
|
4895
4896
|
'Content-Type': 'application/json'
|
|
4896
|
-
}, httpHeaders || {})
|
|
4897
|
+
}, httpHeaders || {}, COMMON_HTTP_HEADERS)
|
|
4897
4898
|
};
|
|
4898
4899
|
|
|
4899
4900
|
try {
|
|
@@ -5567,9 +5568,14 @@ const LogsNotificationResult = superstruct.type({
|
|
|
5567
5568
|
* Filter for log subscriptions.
|
|
5568
5569
|
*/
|
|
5569
5570
|
|
|
5571
|
+
/** @internal */
|
|
5572
|
+
const COMMON_HTTP_HEADERS = {
|
|
5573
|
+
'solana-client': `js/${(_process$env$npm_pack = "0.0.0-development") !== null && _process$env$npm_pack !== void 0 ? _process$env$npm_pack : 'UNKNOWN'}`
|
|
5574
|
+
};
|
|
5570
5575
|
/**
|
|
5571
5576
|
* A connection to a fullnode JSON RPC endpoint
|
|
5572
5577
|
*/
|
|
5578
|
+
|
|
5573
5579
|
class Connection {
|
|
5574
5580
|
/** @internal */
|
|
5575
5581
|
|