@stacks/blockchain-api-client 9.0.0-next.9 → 9.0.0-pox5.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.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 === "notification" /* JsonRpcLite.RpcStatusType.notification */) {
5231
+ if (obj.type === 'notification') {
5232
5232
  _this.handleNotification(obj.payload);
5233
- } else if (obj.type === "success" /* JsonRpcLite.RpcStatusType.success */) {
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 === "error" /* JsonRpcLite.RpcStatusType.error */) {
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);