@grvt/client 1.5.3 → 1.5.4

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/ws/ws.js +4 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grvt/client",
3
- "version": "1.5.3",
3
+ "version": "1.5.4",
4
4
  "description": "Node.js & JavaScript client for GRVT REST APIs & WebSockets",
5
5
  "repository": {
6
6
  "type": "git",
package/ws/ws.js CHANGED
@@ -177,7 +177,7 @@ class WS {
177
177
  }
178
178
  }
179
179
  else {
180
- console.error(error);
180
+ console.warn(error);
181
181
  }
182
182
  }
183
183
  return;
@@ -718,7 +718,9 @@ class WS {
718
718
  throw new Error('Unknown stream or feed');
719
719
  }
720
720
  const pair = this._getPair({ stream, feed });
721
- void this._subscribe(pair, subscribePayload).catch(onError);
721
+ void this._subscribe(pair, subscribePayload).catch((error) => {
722
+ onError === null || onError === void 0 ? void 0 : onError(error);
723
+ });
722
724
  return this._addConsumer(pair, onMessage);
723
725
  }
724
726
  subscribes(...subscriptions) {