@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.cjs.js
CHANGED
|
@@ -219,7 +219,7 @@ class PublicKey extends Struct {
|
|
|
219
219
|
return this.toBase58();
|
|
220
220
|
}
|
|
221
221
|
/**
|
|
222
|
-
* Return the byte array representation of the public key
|
|
222
|
+
* Return the byte array representation of the public key in big endian
|
|
223
223
|
*/
|
|
224
224
|
|
|
225
225
|
|
|
@@ -227,7 +227,7 @@ class PublicKey extends Struct {
|
|
|
227
227
|
return this.toBuffer();
|
|
228
228
|
}
|
|
229
229
|
/**
|
|
230
|
-
* Return the Buffer representation of the public key
|
|
230
|
+
* Return the Buffer representation of the public key in big endian
|
|
231
231
|
*/
|
|
232
232
|
|
|
233
233
|
|
|
@@ -3899,6 +3899,7 @@ const BlockProductionResponseStruct = jsonRpcResultAndContext(superstruct.type({
|
|
|
3899
3899
|
|
|
3900
3900
|
function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disableRetryOnRateLimit, httpAgent) {
|
|
3901
3901
|
const fetch = customFetch ? customFetch : fetchImpl;
|
|
3902
|
+
let agent;
|
|
3902
3903
|
|
|
3903
3904
|
{
|
|
3904
3905
|
if (httpAgent != null) {
|
|
@@ -3922,7 +3923,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3922
3923
|
}
|
|
3923
3924
|
|
|
3924
3925
|
const clientBrowser = new RpcClient__default["default"](async (request, callback) => {
|
|
3925
|
-
const agent = undefined;
|
|
3926
3926
|
const options = {
|
|
3927
3927
|
method: 'POST',
|
|
3928
3928
|
body: request,
|
|
@@ -3974,7 +3974,6 @@ function createRpcClient(url, httpHeaders, customFetch, fetchMiddleware, disable
|
|
|
3974
3974
|
}
|
|
3975
3975
|
} catch (err) {
|
|
3976
3976
|
if (err instanceof Error) callback(err);
|
|
3977
|
-
} finally {
|
|
3978
3977
|
}
|
|
3979
3978
|
}, {});
|
|
3980
3979
|
return clientBrowser;
|