@locuschain/lib 0.0.5 → 0.0.6
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/dist/web3/index.amd.js
CHANGED
|
@@ -146,7 +146,7 @@ define(['exports', '../index-BzbudoD7', '../tx-type-BeeK7Ci3', '../rpc-error-CIW
|
|
|
146
146
|
this.id = 0;
|
|
147
147
|
this.canceledLastCallIndex = -1;
|
|
148
148
|
this.rpcUrl = rpcUrl;
|
|
149
|
-
this.rpcOptions = rpcOptions;
|
|
149
|
+
this.rpcOptions = Object.assign({ abortController: new AbortController() }, rpcOptions);
|
|
150
150
|
}
|
|
151
151
|
callRpc(data, options) {
|
|
152
152
|
return utils.__awaiter(this, void 0, void 0, function* () {
|
package/dist/web3/index.cjs.js
CHANGED
|
@@ -152,7 +152,7 @@ class HttpRpcProvider extends RpcProvider {
|
|
|
152
152
|
this.id = 0;
|
|
153
153
|
this.canceledLastCallIndex = -1;
|
|
154
154
|
this.rpcUrl = rpcUrl;
|
|
155
|
-
this.rpcOptions = rpcOptions;
|
|
155
|
+
this.rpcOptions = Object.assign({ abortController: new AbortController() }, rpcOptions);
|
|
156
156
|
}
|
|
157
157
|
callRpc(data, options) {
|
|
158
158
|
return utils.__awaiter(this, void 0, void 0, function* () {
|
package/dist/web3/index.esm.js
CHANGED
|
@@ -150,7 +150,7 @@ class HttpRpcProvider extends RpcProvider {
|
|
|
150
150
|
this.id = 0;
|
|
151
151
|
this.canceledLastCallIndex = -1;
|
|
152
152
|
this.rpcUrl = rpcUrl;
|
|
153
|
-
this.rpcOptions = rpcOptions;
|
|
153
|
+
this.rpcOptions = Object.assign({ abortController: new AbortController() }, rpcOptions);
|
|
154
154
|
}
|
|
155
155
|
callRpc(data, options) {
|
|
156
156
|
return __awaiter(this, void 0, void 0, function* () {
|