@palmetto/nestjs-pubsub 1.0.0 → 1.0.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.
@@ -72,7 +72,7 @@ let PubSubManager = class PubSubManager {
72
72
  const handlers = (yield this.discover.providerMethodsWithMetaAtKey(subscriber_1.EVENT_HANDLER)).concat(yield this.discover.controllerMethodsWithMetaAtKey(subscriber_1.EVENT_HANDLER));
73
73
  for (const handler of handlers) {
74
74
  const method = handler.discoveredMethod;
75
- yield this.subscriber.subscribe(handler.meta, (msg) => method.handler.call(method.parentClass.instance, msg));
75
+ yield this.subscriber.subscribe(handler.meta, (msg, context) => method.handler.call(method.parentClass.instance, msg, context));
76
76
  this.logger.log(`Added subscriber method ${method.parentClass.name}.${method.methodName} for ${handler.meta.transport}:${handler.meta.name}`);
77
77
  }
78
78
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/nestjs-pubsub",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "main": "./dist/main.js",
5
5
  "scripts": {
6
6
  "lint": "yarn run -T eslint --fix ./src",
@@ -15,7 +15,9 @@
15
15
  "hook:format": "prettier --write --loglevel warn",
16
16
  "hook:tc": "yarn tc",
17
17
  "prepublishOnly": "yarn build",
18
- "test": "vitest run"
18
+ "test-runner": "../../scripts/test-runner.sh",
19
+ "test": "yarn run test-runner vitest run",
20
+ "test:watch": "yarn run test-runner vitest watch"
19
21
  },
20
22
  "devDependencies": {
21
23
  "@nestjs/common": "^11.1.3",
@@ -42,7 +44,7 @@
42
44
  "dependencies": {
43
45
  "@golevelup/nestjs-discovery": "^5.0.0",
44
46
  "@palmetto/nestjs-errors": "^2.1.1",
45
- "@palmetto/pubsub": "^1.0.0",
47
+ "@palmetto/pubsub": "^1.0.1",
46
48
  "reflect-metadata": "^0.2.2",
47
49
  "rxjs": "^7.8.2"
48
50
  },