@lyrolab/nest-shared 1.6.2 → 1.8.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/CHANGELOG.md +6 -1
- package/dist/ai/services/ai.service.d.ts +4 -4
- package/dist/ai/services/ai.service.js +6 -1
- package/dist/ai/services/ai.service.js.map +1 -1
- package/dist/auth/auth.constants.d.ts +1 -0
- package/dist/auth/auth.constants.js +5 -0
- package/dist/auth/auth.constants.js.map +1 -0
- package/dist/auth/decorators/current-user.decorator.d.ts +1 -0
- package/dist/auth/decorators/current-user.decorator.js +11 -0
- package/dist/auth/decorators/current-user.decorator.js.map +1 -0
- package/dist/auth/decorators/public.decorator.d.ts +2 -0
- package/dist/auth/decorators/public.decorator.js +8 -0
- package/dist/auth/decorators/public.decorator.js.map +1 -0
- package/dist/auth/guards/jwt-auth.guard.d.ts +9 -0
- package/dist/auth/guards/jwt-auth.guard.js +41 -0
- package/dist/auth/guards/jwt-auth.guard.js.map +1 -0
- package/dist/auth/helpers/keycloak.helper.d.ts +4 -0
- package/dist/auth/helpers/keycloak.helper.js +10 -0
- package/dist/auth/helpers/keycloak.helper.js.map +1 -0
- package/dist/auth/index.d.ts +8 -0
- package/dist/auth/index.js +25 -0
- package/dist/auth/index.js.map +1 -0
- package/dist/auth/interfaces/auth-module-options.interface.d.ts +14 -0
- package/dist/auth/interfaces/auth-module-options.interface.js +3 -0
- package/dist/auth/interfaces/auth-module-options.interface.js.map +1 -0
- package/dist/auth/models/jwt-payload.d.ts +15 -0
- package/dist/auth/models/jwt-payload.js +3 -0
- package/dist/auth/models/jwt-payload.js.map +1 -0
- package/dist/auth/shared-auth.module.d.ts +8 -0
- package/dist/auth/shared-auth.module.js +82 -0
- package/dist/auth/shared-auth.module.js.map +1 -0
- package/dist/auth/strategies/jwt.strategy.d.ts +11 -0
- package/dist/auth/strategies/jwt.strategy.js +49 -0
- package/dist/auth/strategies/jwt.strategy.js.map +1 -0
- package/dist/database/shared-database.module.d.ts +13 -7
- package/dist/database/shared-database.module.js +72 -64
- package/dist/database/shared-database.module.js.map +1 -1
- package/dist/redis/shared-redis.module.d.ts +3 -7
- package/dist/redis/shared-redis.module.js +18 -32
- package/dist/redis/shared-redis.module.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +30 -13
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lyrolab/nest-shared",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "A collection of shared modules for NestJS applications",
|
|
5
5
|
"author": "",
|
|
6
6
|
"license": "UNLICENSED",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/lyrolab/nest-shared"
|
|
10
|
+
},
|
|
7
11
|
"private": false,
|
|
8
12
|
"publishConfig": {
|
|
9
13
|
"access": "public"
|
|
@@ -48,11 +52,17 @@
|
|
|
48
52
|
"types": "./dist/health/index.d.ts",
|
|
49
53
|
"import": "./dist/health/index.js",
|
|
50
54
|
"require": "./dist/health/index.js"
|
|
55
|
+
},
|
|
56
|
+
"./auth": {
|
|
57
|
+
"types": "./dist/auth/index.d.ts",
|
|
58
|
+
"import": "./dist/auth/index.js",
|
|
59
|
+
"require": "./dist/auth/index.js"
|
|
51
60
|
}
|
|
52
61
|
},
|
|
53
62
|
"scripts": {
|
|
54
63
|
"prebuild": "rimraf dist",
|
|
55
64
|
"build": "tsc -p tsconfig.json",
|
|
65
|
+
"dev": "tsc -p tsconfig.json --watch",
|
|
56
66
|
"lint": "eslint 'src/**/*.ts' --fix",
|
|
57
67
|
"test": "jest",
|
|
58
68
|
"test:watch": "jest --watch",
|
|
@@ -61,7 +71,13 @@
|
|
|
61
71
|
"lint-staged": "npx lint-staged",
|
|
62
72
|
"release": "semantic-release"
|
|
63
73
|
},
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"jwks-rsa": "^3.2.0",
|
|
76
|
+
"passport": "^0.7.0",
|
|
77
|
+
"passport-jwt": "^4.0.1"
|
|
78
|
+
},
|
|
64
79
|
"peerDependencies": {
|
|
80
|
+
"@ai-sdk/provider": "^3.0.8",
|
|
65
81
|
"@nestjs/bullmq": "^11.0.0",
|
|
66
82
|
"@nestjs/cache-manager": "^3.0.0",
|
|
67
83
|
"@nestjs/common": "^11.0.0",
|
|
@@ -69,18 +85,18 @@
|
|
|
69
85
|
"@nestjs/swagger": "^11.0.0",
|
|
70
86
|
"@nestjs/terminus": "^11.0.0",
|
|
71
87
|
"@nestjs/typeorm": "^11.0.0",
|
|
72
|
-
"@openrouter/ai-sdk-provider": "^
|
|
73
|
-
"
|
|
74
|
-
"ai": "^5.0.47",
|
|
88
|
+
"@openrouter/ai-sdk-provider": "^2.2.3",
|
|
89
|
+
"ai": "^6.0.86",
|
|
75
90
|
"bullmq": "^5.0.0",
|
|
76
91
|
"cache-manager": "^6.0.0",
|
|
77
92
|
"class-validator": "^0.14.0",
|
|
78
93
|
"rxjs": "^7.8.1",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
94
|
+
"typeorm": "^0.3.22",
|
|
95
|
+
"zod": "^4.1.13",
|
|
96
|
+
"@nestjs/passport": "^11.0.0"
|
|
81
97
|
},
|
|
82
98
|
"devDependencies": {
|
|
83
|
-
"@ai-sdk/provider": "^
|
|
99
|
+
"@ai-sdk/provider": "^3.0.8",
|
|
84
100
|
"@commitlint/cli": "^19.8.0",
|
|
85
101
|
"@commitlint/config-conventional": "^19.8.0",
|
|
86
102
|
"@eslint/eslintrc": "^3.2.0",
|
|
@@ -90,6 +106,7 @@
|
|
|
90
106
|
"@nestjs/cache-manager": "^3.0.1",
|
|
91
107
|
"@nestjs/cli": "^11.0.0",
|
|
92
108
|
"@nestjs/common": "^11.0.1",
|
|
109
|
+
"@nestjs/passport": "^11.0.5",
|
|
93
110
|
"@nestjs/config": "^4.0.2",
|
|
94
111
|
"@nestjs/core": "^11.0.13",
|
|
95
112
|
"@nestjs/platform-express": "^11.0.1",
|
|
@@ -98,17 +115,18 @@
|
|
|
98
115
|
"@nestjs/terminus": "^11.0.0",
|
|
99
116
|
"@nestjs/testing": "^11.0.1",
|
|
100
117
|
"@nestjs/typeorm": "^11.0.0",
|
|
101
|
-
"@openrouter/ai-sdk-provider": "^
|
|
118
|
+
"@openrouter/ai-sdk-provider": "^2.2.3",
|
|
102
119
|
"@semantic-release/changelog": "^6.0.3",
|
|
103
120
|
"@semantic-release/git": "^10.0.1",
|
|
104
|
-
"@semantic-release/npm": "^
|
|
121
|
+
"@semantic-release/npm": "^13.1.4",
|
|
105
122
|
"@swc/cli": "^0.6.0",
|
|
106
123
|
"@swc/core": "^1.10.7",
|
|
107
124
|
"@types/express": "^5.0.0",
|
|
108
125
|
"@types/jest": "^29.5.14",
|
|
126
|
+
"@types/passport-jwt": "^4.0.1",
|
|
109
127
|
"@types/node": "^22.10.7",
|
|
110
128
|
"@types/supertest": "^6.0.2",
|
|
111
|
-
"ai": "^
|
|
129
|
+
"ai": "^6.0.86",
|
|
112
130
|
"bullmq": "^5.46.1",
|
|
113
131
|
"cache-manager": "^6.4.1",
|
|
114
132
|
"class-validator": "^0.14.1",
|
|
@@ -122,10 +140,9 @@
|
|
|
122
140
|
"reflect-metadata": "^0.2.2",
|
|
123
141
|
"rimraf": "^6.0.1",
|
|
124
142
|
"rxjs": "^7.8.1",
|
|
125
|
-
"semantic-release": "^
|
|
143
|
+
"semantic-release": "^25.0.3",
|
|
126
144
|
"source-map-support": "^0.5.21",
|
|
127
145
|
"supertest": "^7.0.0",
|
|
128
|
-
"testcontainers": "^10.24.0",
|
|
129
146
|
"ts-jest": "^29.2.5",
|
|
130
147
|
"ts-loader": "^9.5.2",
|
|
131
148
|
"ts-node": "^10.9.2",
|
|
@@ -133,7 +150,7 @@
|
|
|
133
150
|
"typeorm": "^0.3.22",
|
|
134
151
|
"typescript": "^5.7.3",
|
|
135
152
|
"typescript-eslint": "^8.20.0",
|
|
136
|
-
"zod": "^4.
|
|
153
|
+
"zod": "^4.3.6"
|
|
137
154
|
},
|
|
138
155
|
"jest": {
|
|
139
156
|
"moduleFileExtensions": [
|