@palmetto/nestjs-pubsub 3.3.4 → 3.4.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.
@@ -26,12 +26,10 @@ const nestjs_discovery_1 = require("@golevelup/nestjs-discovery");
26
26
  const subscriber_1 = require("./subscriber");
27
27
  const pubsub_provider_module_1 = require("./pubsub-provider-module");
28
28
  function isPublisherProvider(obj) {
29
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
30
- return (obj === null || obj === void 0 ? void 0 : obj.publish) !== undefined;
29
+ return "publish" in obj && typeof obj.publish === "function";
31
30
  }
32
31
  function isSubscriberProvider(obj) {
33
- // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
34
- return (obj === null || obj === void 0 ? void 0 : obj.startSubscribe) !== undefined;
32
+ return "startSubscribe" in obj && typeof obj.startSubscribe === "function";
35
33
  }
36
34
  let PubSubManager = PubSubManager_1 = class PubSubManager {
37
35
  constructor(discover, publisher, subscriber, pubSubFactory) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@palmetto/nestjs-pubsub",
3
- "version": "3.3.4",
3
+ "version": "3.4.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/palmetto/galaxy"
@@ -10,32 +10,30 @@
10
10
  "lint": "yarn run -T eslint --fix ./src",
11
11
  "format": "yarn run -T prettier --write --loglevel warn .",
12
12
  "tc": "tsc --noEmit",
13
- "build": "yarn clean && tsc -p tsconfig.build.json",
13
+ "test": "yarn test-runner 'vitest run'",
14
+ "test:watch": "yarn test-runner 'vitest watch'",
15
+ "build": "yarn clean && yarn ci:build",
14
16
  "clean": "rm -rf ./dist/",
15
17
  "ci:build": "tsc -p tsconfig.build.json",
16
18
  "ci:lint": "yarn run -T eslint . && yarn run -T prettier --check --loglevel warn .",
17
19
  "ci:tc": "yarn tc",
20
+ "ci:test": "yarn run -T ci:test --project @palmetto/nestjs-pubsub",
18
21
  "hook:lint": "eslint --cache --fix",
19
22
  "hook:format": "prettier --write --loglevel warn",
20
23
  "hook:tc": "yarn tc",
21
24
  "prepublishOnly": "yarn build",
22
- "test-runner": "../../scripts/test-runner.sh",
23
- "test": "yarn run test-runner vitest run",
24
- "test:watch": "yarn run test-runner vitest watch"
25
+ "test-runner": "../../scripts/test-runner.sh yarn run -T $0 --project @palmetto/nestjs-pubsub"
25
26
  },
26
27
  "devDependencies": {
27
28
  "@nestjs/common": "^11.1.3",
28
- "@nestjs/core": "^11.1.3",
29
+ "@nestjs/core": "^11.1.18",
29
30
  "@nestjs/testing": "^11.1.5",
30
31
  "@palmetto/nestjs-errors": "^3.0.1",
31
- "@palmetto/pubsub": "^3.3.2",
32
+ "@palmetto/pubsub": "^3.5.0",
32
33
  "@palmetto/trace": "^0.1.1",
33
- "@swc/core": "^1.13.3",
34
34
  "@types/node": "^24.2.1",
35
- "@vitest/coverage-v8": "^3.2.4",
36
35
  "typescript": "5.7.3",
37
- "unplugin-swc": "^1.5.6",
38
- "vitest": "^3.2.4",
36
+ "vitest": "^4.1.5",
39
37
  "zod": "^4.1.13"
40
38
  },
41
39
  "files": [
@@ -55,10 +53,10 @@
55
53
  },
56
54
  "peerDependencies": {
57
55
  "@google-cloud/pubsub": "^5",
58
- "@nestjs/common": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
59
- "@nestjs/core": "^7.0.0 || ^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0",
56
+ "@nestjs/common": "^11",
57
+ "@nestjs/core": "^11",
60
58
  "@palmetto/nestjs-errors": "^3 || ^2",
61
- "@palmetto/pubsub": "^3.3.2",
59
+ "@palmetto/pubsub": "^3.5.0",
62
60
  "zod": "^4.1"
63
61
  }
64
62
  }