@achinet/nestjs-async 0.1.0 → 0.1.1
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/CHANGELOG.md +7 -0
- package/dist/src/services/asyncapi.generator.js.map +1 -1
- package/dist/src/services/operation-object.factory.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/eslint.config.mjs +21 -0
- package/package.json +37 -37
- package/src/services/operation-object.factory.ts +0 -1
- package/.eslintrc.js +0 -40
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import sharedConfig from '@achinet/eslint-config-custom';
|
|
2
|
+
|
|
3
|
+
export default [
|
|
4
|
+
...sharedConfig,
|
|
5
|
+
{
|
|
6
|
+
ignores: ['dist/**', 'node_modules/**'],
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
files: ['**/*.ts', '**/*.tsx'],
|
|
10
|
+
rules: {
|
|
11
|
+
'no-restricted-syntax': 'off',
|
|
12
|
+
'@typescript-eslint/no-unused-vars': [
|
|
13
|
+
'warn',
|
|
14
|
+
{
|
|
15
|
+
argsIgnorePattern: '^_',
|
|
16
|
+
varsIgnorePattern: '^_',
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@achinet/nestjs-async",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -52,36 +52,36 @@
|
|
|
52
52
|
"testEnvironment": "node"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@nestjs/cli": "11.0.
|
|
56
|
-
"@nestjs/microservices": "11.
|
|
57
|
-
"@nestjs/platform-express": "11.
|
|
58
|
-
"@nestjs/platform-fastify": "11.1.
|
|
59
|
-
"@nestjs/platform-socket.io": "11.
|
|
60
|
-
"@nestjs/schematics": "11.0.
|
|
61
|
-
"@nestjs/testing": "11.
|
|
62
|
-
"@types/express": "
|
|
63
|
-
"@types/jest": "
|
|
55
|
+
"@nestjs/cli": "11.0.16",
|
|
56
|
+
"@nestjs/microservices": "11.1.13",
|
|
57
|
+
"@nestjs/platform-express": "11.1.13",
|
|
58
|
+
"@nestjs/platform-fastify": "11.1.13",
|
|
59
|
+
"@nestjs/platform-socket.io": "11.1.13",
|
|
60
|
+
"@nestjs/schematics": "11.0.9",
|
|
61
|
+
"@nestjs/testing": "11.1.13",
|
|
62
|
+
"@types/express": "5.0.6",
|
|
63
|
+
"@types/jest": "30.0.0",
|
|
64
64
|
"@types/js-yaml": "4.0.9",
|
|
65
|
-
"@types/lodash": "^4",
|
|
66
|
-
"@types/node": "
|
|
67
|
-
"@types/supertest": "
|
|
68
|
-
"@types/url-join": "
|
|
69
|
-
"@typescript-eslint/eslint-plugin": "
|
|
70
|
-
"@typescript-eslint/parser": "
|
|
71
|
-
"eslint": "
|
|
72
|
-
"eslint-config-prettier": "
|
|
73
|
-
"eslint-plugin-import": "2.
|
|
74
|
-
"eslint-plugin-prettier": "5.
|
|
75
|
-
"husky": "9.
|
|
76
|
-
"jest": "
|
|
77
|
-
"lint-staged": "
|
|
78
|
-
"prettier": "3.
|
|
79
|
-
"release-it": "
|
|
80
|
-
"socket.io": "4.
|
|
81
|
-
"socket.io-client": "4.
|
|
82
|
-
"supertest": "
|
|
83
|
-
"ts-jest": "^29.4.
|
|
84
|
-
"ts-loader": "9.5.
|
|
65
|
+
"@types/lodash": "^4.17.23",
|
|
66
|
+
"@types/node": "25.2.1",
|
|
67
|
+
"@types/supertest": "6.0.3",
|
|
68
|
+
"@types/url-join": "5.0.0",
|
|
69
|
+
"@typescript-eslint/eslint-plugin": "8.54.0",
|
|
70
|
+
"@typescript-eslint/parser": "8.54.0",
|
|
71
|
+
"eslint": "10.0.0",
|
|
72
|
+
"eslint-config-prettier": "10.1.8",
|
|
73
|
+
"eslint-plugin-import": "2.32.0",
|
|
74
|
+
"eslint-plugin-prettier": "5.5.5",
|
|
75
|
+
"husky": "9.1.7",
|
|
76
|
+
"jest": "30.2.0",
|
|
77
|
+
"lint-staged": "16.2.7",
|
|
78
|
+
"prettier": "3.8.1",
|
|
79
|
+
"release-it": "19.2.4",
|
|
80
|
+
"socket.io": "4.8.3",
|
|
81
|
+
"socket.io-client": "4.8.3",
|
|
82
|
+
"supertest": "7.2.2",
|
|
83
|
+
"ts-jest": "^29.4.6",
|
|
84
|
+
"ts-loader": "9.5.4",
|
|
85
85
|
"ts-node": "^10.9.2",
|
|
86
86
|
"tsconfig-paths": "4.2.0",
|
|
87
87
|
"typescript": "5.9.3"
|
|
@@ -89,13 +89,13 @@
|
|
|
89
89
|
"dependencies": {
|
|
90
90
|
"@asyncapi/generator": "^3.1.2",
|
|
91
91
|
"@asyncapi/html-template": "^3.5.4",
|
|
92
|
-
"@nestjs/common": "^11.1.
|
|
93
|
-
"@nestjs/core": "^11.1.
|
|
94
|
-
"@nestjs/swagger": "^11.2.
|
|
95
|
-
"@nestjs/websockets": "^11.1.
|
|
96
|
-
"@swc/core": "1.
|
|
92
|
+
"@nestjs/common": "^11.1.13",
|
|
93
|
+
"@nestjs/core": "^11.1.13",
|
|
94
|
+
"@nestjs/swagger": "^11.2.6",
|
|
95
|
+
"@nestjs/websockets": "^11.1.13",
|
|
96
|
+
"@swc/core": "1.15.11",
|
|
97
97
|
"js-yaml": "4.1.1",
|
|
98
|
-
"lodash": "^4.17.
|
|
99
|
-
"reflect-metadata": "0.2.
|
|
98
|
+
"lodash": "^4.17.23",
|
|
99
|
+
"reflect-metadata": "0.2.2"
|
|
100
100
|
}
|
|
101
101
|
}
|
|
@@ -49,7 +49,6 @@ export class OperationObjectFactory {
|
|
|
49
49
|
if (!message.payload || !message.payload.type) {
|
|
50
50
|
throw new Error('Async message payload or payload.type is undefined; ensure message.payload is provided.');
|
|
51
51
|
}
|
|
52
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
53
52
|
const messagePayloadType = message.payload.type as Function;
|
|
54
53
|
return this.schemaObjectFactory.exploreModelSchema(messagePayloadType, schemas);
|
|
55
54
|
}
|
package/.eslintrc.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
root: true,
|
|
3
|
-
extends: ["@achinet/eslint-config-custom"],
|
|
4
|
-
parserOptions: {
|
|
5
|
-
project: 'tsconfig.json',
|
|
6
|
-
tsconfigRootDir: __dirname,
|
|
7
|
-
sourceType: 'module',
|
|
8
|
-
},
|
|
9
|
-
rules: {
|
|
10
|
-
'@typescript-eslint/ban-types': 'off',
|
|
11
|
-
'no-restricted-syntax': 'off',
|
|
12
|
-
'import/no-cycle': [
|
|
13
|
-
'warn',
|
|
14
|
-
{
|
|
15
|
-
maxDepth: 1, // opcional: ignora ciclos muy superficiales
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
'@typescript-eslint/no-unused-vars': [
|
|
19
|
-
'warn',
|
|
20
|
-
{
|
|
21
|
-
argsIgnorePattern: '^_',
|
|
22
|
-
varsIgnorePattern: '^_',
|
|
23
|
-
},
|
|
24
|
-
],
|
|
25
|
-
'import/no-extraneous-dependencies': [
|
|
26
|
-
'error',
|
|
27
|
-
{
|
|
28
|
-
devDependencies: [
|
|
29
|
-
'**/*.test.ts',
|
|
30
|
-
'**/*.spec.ts',
|
|
31
|
-
'**/test/**',
|
|
32
|
-
'**/tests/**',
|
|
33
|
-
'**/jest.config.ts',
|
|
34
|
-
'**/jest-*.config.ts',
|
|
35
|
-
'**/test/configs/**',
|
|
36
|
-
],
|
|
37
|
-
},
|
|
38
|
-
],
|
|
39
|
-
},
|
|
40
|
-
};
|