@solana/web3.js 1.70.1 → 1.70.2
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 +3 -4
- package/lib/index.browser.cjs.js.map +1 -1
- package/lib/index.browser.esm.js +3 -4
- package/lib/index.browser.esm.js.map +1 -1
- package/lib/index.cjs.js +2448 -69
- package/lib/index.cjs.js.map +1 -1
- package/lib/index.d.ts +2 -2
- package/lib/index.esm.js +2441 -67
- package/lib/index.esm.js.map +1 -1
- package/lib/index.iife.js +3 -4
- 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/lib/index.native.js +3 -4
- package/lib/index.native.js.map +1 -1
- package/package.json +2 -1
- package/src/connection.ts +23 -17
- package/src/publickey.ts +2 -2
- package/src/agent-manager.ts +0 -44
package/lib/index.browser.esm.js
CHANGED
|
@@ -189,7 +189,7 @@ class PublicKey extends Struct {
|
|
|
189
189
|
return this.toBase58();
|
|
190
190
|
}
|
|
191
191
|
/**
|
|
192
|
-
* Return the byte array representation of the public key
|
|
192
|
+
* Return the byte array representation of the public key in big endian
|
|
193
193
|
*/
|
|
194
194
|
|
|
195
195
|
|
|
@@ -197,7 +197,7 @@ class PublicKey extends Struct {
|
|
|
197
197
|
return this.toBuffer();
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
|
-
* Return the Buffer representation of the public key
|
|
200
|
+
* Return the Buffer representation of the public key in big endian
|
|
201
201
|
*/
|
|
202
202
|
|
|
203
203
|
|
|
@@ -3869,6 +3869,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(type({
|
|
|
3869
3869
|
|
|
3870
3870
|
function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
|
|
3871
3871
|
const fetch = customFetch ? customFetch : fetchImpl;
|
|
3872
|
+
let agent;
|
|
3872
3873
|
|
|
3873
3874
|
{
|
|
3874
3875
|
if (httpAgent != null) {
|
|
@@ -3892,7 +3893,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3892
3893
|
}
|
|
3893
3894
|
|
|
3894
3895
|
const clientBrowser = new RpcClient(async (request, callback) => {
|
|
3895
|
-
const agent = undefined;
|
|
3896
3896
|
const options = {
|
|
3897
3897
|
method: 'POST',
|
|
3898
3898
|
body: request,
|
|
@@ -3944,7 +3944,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3944
3944
|
}
|
|
3945
3945
|
} catch (err) {
|
|
3946
3946
|
if (err instanceof Error) callback(err);
|
|
3947
|
-
} finally {
|
|
3948
3947
|
}
|
|
3949
3948
|
}, {});
|
|
3950
3949
|
return clientBrowser;
|