@wisemen/nestjs-async-api 0.0.3 → 0.0.5
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.
|
@@ -8,10 +8,7 @@ export type AsyncAPIChannelParameters<Address> = {
|
|
|
8
8
|
[Param in keyof ExtractParams<Address>]: AsyncAPIParameter;
|
|
9
9
|
};
|
|
10
10
|
export type AsyncAPIOperationDefinition = Omit<AsyncAPIOperation, 'messages' | 'channel' | 'reply'> & {
|
|
11
|
-
messages?:
|
|
12
|
-
name: string;
|
|
13
|
-
constructor: () => unknown;
|
|
14
|
-
}[];
|
|
11
|
+
messages?: Function[];
|
|
15
12
|
};
|
|
16
13
|
export type AsyncAPIChannelDefinition<Address extends string> = {
|
|
17
14
|
address: Address;
|
|
@@ -13,7 +13,8 @@ export type AsyncAPIChannelParameters<Address> = {
|
|
|
13
13
|
|
|
14
14
|
export type AsyncAPIOperationDefinition
|
|
15
15
|
= Omit<AsyncAPIOperation, 'messages' | 'channel' | 'reply'>
|
|
16
|
-
|
|
16
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-function-type
|
|
17
|
+
& { messages?: Function[] }
|
|
17
18
|
|
|
18
19
|
export type AsyncAPIChannelDefinition<Address extends string> = {
|
|
19
20
|
address: Address
|
package/package.json
CHANGED
|
@@ -1,13 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wisemen/nestjs-async-api",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
|
-
".": "./dist/index.js"
|
|
6
|
+
".": "./dist/lib/index.js"
|
|
7
7
|
},
|
|
8
8
|
"imports": {
|
|
9
9
|
"#*": "./lib/*"
|
|
10
10
|
},
|
|
11
|
+
"scripts": {
|
|
12
|
+
"prebuild": "rm -rf ./dist",
|
|
13
|
+
"clean": "rm -rf ./dist",
|
|
14
|
+
"build": "tsc",
|
|
15
|
+
"pretest": "npm run clean && npm run build",
|
|
16
|
+
"test": "node --env-file=.env.test --test ./**/*.test.js",
|
|
17
|
+
"lint": "eslint --cache",
|
|
18
|
+
"prerelease": "npm run build",
|
|
19
|
+
"release": "pnpx release-it"
|
|
20
|
+
},
|
|
11
21
|
"dependencies": {
|
|
12
22
|
"change-case": "^5.4.4",
|
|
13
23
|
"@asyncapi/generator": "3.1.2",
|
|
@@ -24,15 +34,5 @@
|
|
|
24
34
|
"repository": {
|
|
25
35
|
"type": "git",
|
|
26
36
|
"url": "git@github.com:wisemen-digital/node-core.git"
|
|
27
|
-
},
|
|
28
|
-
"scripts": {
|
|
29
|
-
"prebuild": "rm -rf ./dist",
|
|
30
|
-
"clean": "rm -rf ./dist",
|
|
31
|
-
"build": "tsc",
|
|
32
|
-
"pretest": "npm run clean && npm run build",
|
|
33
|
-
"test": "node --env-file=.env.test --test ./**/*.test.js",
|
|
34
|
-
"lint": "eslint --cache",
|
|
35
|
-
"prerelease": "npm run build",
|
|
36
|
-
"release": "pnpx release-it"
|
|
37
37
|
}
|
|
38
|
-
}
|
|
38
|
+
}
|