@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.
- package/dist/pubsub-module.js +2 -4
- package/package.json +12 -14
package/dist/pubsub-module.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
+
"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
|
-
"
|
|
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.
|
|
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.
|
|
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
|
-
"
|
|
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": "^
|
|
59
|
-
"@nestjs/core": "^
|
|
56
|
+
"@nestjs/common": "^11",
|
|
57
|
+
"@nestjs/core": "^11",
|
|
60
58
|
"@palmetto/nestjs-errors": "^3 || ^2",
|
|
61
|
-
"@palmetto/pubsub": "^3.
|
|
59
|
+
"@palmetto/pubsub": "^3.5.0",
|
|
62
60
|
"zod": "^4.1"
|
|
63
61
|
}
|
|
64
62
|
}
|