@zerodensity/realityhub-api 1.9.0 → 1.10.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.
@@ -7,6 +7,8 @@ on:
7
7
 
8
8
  jobs:
9
9
  publish-npm:
10
+ env:
11
+ NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
10
12
  name: Publish Job
11
13
  runs-on: ubuntu-latest
12
14
  steps:
@@ -18,5 +20,3 @@ jobs:
18
20
  - run: npm ci
19
21
  - run: npm publish
20
22
  - run: npm publish --tag latest
21
- env:
22
- NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerodensity/realityhub-api",
3
- "version": "1.9.0",
3
+ "version": "1.10.0",
4
4
  "description": "RealityHub API Javascript Implementation",
5
5
  "main": "src/index.js",
6
6
  "repository": {
@@ -272,9 +272,9 @@ module.exports = class BrokerClient extends BrokerBase {
272
272
  }
273
273
 
274
274
  case 'subscribe': {
275
- const arr = message.eventName.split('.');
276
- const eventName = arr.pop();
277
- const targetModuleName = arr.join('.');
275
+ const [vendor, moduleName, ...rest] = message.eventName.split('.');
276
+ const eventName = rest.join('.');
277
+ const targetModuleName = [vendor, moduleName].join('.');
278
278
 
279
279
  if (this.moduleName === targetModuleName) {
280
280
  this.emit('subscribe', { eventName });