libshv-js 3.23.1 → 3.23.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/dist/ws-client.js CHANGED
@@ -447,11 +447,11 @@ class WsClient {
447
447
  }
448
448
  }
449
449
  async subscribe(subscriber, pathGetter, method, callback) {
450
+ const path = await (0, utils_1.resolveString)(pathGetter);
450
451
  if (this.subscriptions.some(val => val.subscriber === subscriber && val.path === path && val.method === method)) {
451
452
  this.logDebug(`Already subscribed {$path}:${method} for subscriber ${subscriber}`);
452
453
  return;
453
454
  }
454
- const path = await (0, utils_1.resolveString)(pathGetter);
455
455
  // If this path:method has not been subscribed on the broker, do it now
456
456
  if (!this.subscriptions.some(val => val.path === path && val.method === method)) {
457
457
  this.callRpcMethod('.broker/app', 'subscribe', (0, rpcvalue_1.makeMap)({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "libshv-js",
3
- "version": "3.23.1",
3
+ "version": "3.23.2",
4
4
  "description": "Typescript implementation of libshv",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",