@zerodensity/realityhub-api 1.15.0 → 1.16.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodensity/realityhub-api",
3
- "version": "1.15.0",
3
+ "version": "1.16.0",
4
4
  "description": "RealityHub API Javascript Implementation",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -313,9 +313,9 @@ module.exports = class BrokerClient extends BrokerBase {
313
313
  }
314
314
 
315
315
  case 'unsubscribe': {
316
- const arr = message.eventName.split('.');
317
- const eventName = arr.pop();
318
- const targetModuleName = arr.join('.');
316
+ const [vendor, moduleName, ...rest] = message.eventName.split(".");
317
+ const eventName = rest.join(".");
318
+ const targetModuleName = [vendor, moduleName].join(".");
319
319
 
320
320
  if (this.moduleName === targetModuleName) {
321
321
  this.emit('unsubscribe', { eventName });