starknet 11.10.0 → 11.10.1
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/CHANGELOG.md +6 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.global.js +11 -2
- package/dist/index.global.js.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +11 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -13841,8 +13841,17 @@ var BatchClient = class {
|
|
|
13841
13841
|
this.batchPromises[key] = promise;
|
|
13842
13842
|
});
|
|
13843
13843
|
}
|
|
13844
|
-
|
|
13845
|
-
|
|
13844
|
+
let results;
|
|
13845
|
+
try {
|
|
13846
|
+
results = await this.batchPromises[requestId];
|
|
13847
|
+
} finally {
|
|
13848
|
+
delete this.batchPromises[requestId];
|
|
13849
|
+
}
|
|
13850
|
+
if (!Array.isArray(results)) {
|
|
13851
|
+
const reply = results;
|
|
13852
|
+
if (reply?.error) return reply;
|
|
13853
|
+
throw new Error(`Unexpected reply to a batch request. Method: ${String(method)}`);
|
|
13854
|
+
}
|
|
13846
13855
|
const result = results.find((res) => res.id === requestId);
|
|
13847
13856
|
if (!result)
|
|
13848
13857
|
throw new Error(`Couldn't find the result for the request. Method: ${String(method)}`);
|