@stacks/blockchain-api-client 9.0.0-next.9 → 9.0.0-pox5.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/README.md +0 -4
- package/lib/generated/schema.d.ts +1205 -521
- package/lib/index.umd.js +3 -3
- package/lib/index.umd.js.map +1 -1
- package/lib/ws/index.js +3 -3
- package/lib/ws/index.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/schema.d.ts +1205 -521
- package/src/ws/index.ts +3 -3
package/lib/index.umd.js
CHANGED
|
@@ -5228,15 +5228,15 @@
|
|
|
5228
5228
|
var parsed = parse(event.data);
|
|
5229
5229
|
var rpcObjects = Array.isArray(parsed) ? parsed : [parsed];
|
|
5230
5230
|
rpcObjects.forEach(function (obj) {
|
|
5231
|
-
if (obj.type ===
|
|
5231
|
+
if (obj.type === 'notification') {
|
|
5232
5232
|
_this.handleNotification(obj.payload);
|
|
5233
|
-
} else if (obj.type ===
|
|
5233
|
+
} else if (obj.type === 'success') {
|
|
5234
5234
|
var req = _this.pendingRequests.get(obj.payload.id);
|
|
5235
5235
|
if (req) {
|
|
5236
5236
|
_this.pendingRequests["delete"](obj.payload.id);
|
|
5237
5237
|
req.resolve(obj.payload.result);
|
|
5238
5238
|
}
|
|
5239
|
-
} else if (obj.type ===
|
|
5239
|
+
} else if (obj.type === 'error') {
|
|
5240
5240
|
var _req = _this.pendingRequests.get(obj.payload.id);
|
|
5241
5241
|
if (_req) {
|
|
5242
5242
|
_this.pendingRequests["delete"](obj.payload.id);
|