@nest-boot/auth 5.0.0-alpha.1 → 5.0.0-alpha.2
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/auth.constants.d.ts +2 -0
- package/dist/auth.constants.js +5 -19
- package/dist/auth.constants.js.map +1 -0
- package/dist/auth.guard.d.ts +13 -0
- package/dist/auth.guard.js +51 -89
- package/dist/auth.guard.js.map +1 -0
- package/dist/auth.middleware.d.ts +13 -0
- package/dist/auth.middleware.js +35 -64
- package/dist/auth.middleware.js.map +1 -0
- package/dist/auth.module-definition.d.ts +4 -0
- package/dist/auth.module-definition.js +9 -28
- package/dist/auth.module-definition.js.map +1 -0
- package/dist/auth.module.d.ts +8 -0
- package/dist/auth.module.js +35 -62
- package/dist/auth.module.js.map +1 -0
- package/dist/auth.service.d.ts +12 -0
- package/dist/auth.service.js +38 -82
- package/dist/auth.service.js.map +1 -0
- package/dist/decorators/can.decorator.d.ts +1 -0
- package/dist/decorators/can.decorator.js +7 -12
- package/dist/decorators/can.decorator.js.map +1 -0
- package/dist/decorators/current-entity.decorator.d.ts +2 -0
- package/dist/decorators/current-entity.decorator.js +9 -23
- package/dist/decorators/current-entity.decorator.js.map +1 -0
- package/dist/decorators/current-personal-access-token.decorator.d.ts +1 -0
- package/dist/decorators/current-personal-access-token.decorator.js +8 -14
- package/dist/decorators/current-personal-access-token.decorator.js.map +1 -0
- package/dist/decorators/index.d.ts +4 -0
- package/dist/decorators/index.js +20 -20
- package/dist/decorators/index.js.map +1 -0
- package/dist/decorators/require-auth.decorator.d.ts +1 -0
- package/dist/decorators/require-auth.decorator.js +7 -12
- package/dist/decorators/require-auth.decorator.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +24 -24
- package/dist/index.js.map +1 -0
- package/dist/interfaces/access-token.interface.d.ts +9 -0
- package/dist/interfaces/access-token.interface.js +2 -3
- package/dist/interfaces/access-token.interface.js.map +1 -0
- package/dist/interfaces/auth-module-options.interface.d.ts +10 -0
- package/dist/interfaces/auth-module-options.interface.js +2 -3
- package/dist/interfaces/auth-module-options.interface.js.map +1 -0
- package/dist/interfaces/has-permission.interface.d.ts +3 -0
- package/dist/interfaces/has-permission.interface.js +2 -3
- package/dist/interfaces/has-permission.interface.js.map +1 -0
- package/dist/interfaces/index.d.ts +3 -0
- package/dist/interfaces/index.js +19 -19
- package/dist/interfaces/index.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.js +17 -17
- package/dist/utils/index.js.map +1 -0
- package/dist/utils/mixin-permissions.utils.d.ts +3 -0
- package/dist/utils/mixin-permissions.utils.js +9 -30
- package/dist/utils/mixin-permissions.utils.js.map +1 -0
- package/package.json +8 -10
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nest-boot/auth",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "d4rkcr0w <me@d4rkcr0w.com>",
|
|
6
6
|
"homepage": "",
|
|
@@ -14,9 +14,9 @@
|
|
|
14
14
|
"dist"
|
|
15
15
|
],
|
|
16
16
|
"scripts": {
|
|
17
|
-
"build": "nest build
|
|
17
|
+
"build": "nest build",
|
|
18
18
|
"clean": "rm -rf .turbo && rm -rf node_modules && rm -rf dist",
|
|
19
|
-
"dev": "nest build --
|
|
19
|
+
"dev": "nest build --watch",
|
|
20
20
|
"lint": "eslint \"{src,test}/**/*.ts\" --fix",
|
|
21
21
|
"test": "jest"
|
|
22
22
|
},
|
|
@@ -26,20 +26,18 @@
|
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
28
|
"@mikro-orm/nestjs": "^5.2.0",
|
|
29
|
-
"@nest-boot/database": "5.0.0-alpha.
|
|
30
|
-
"@nest-boot/eslint-config": "5.0.0-alpha.
|
|
29
|
+
"@nest-boot/database": "5.0.0-alpha.2",
|
|
30
|
+
"@nest-boot/eslint-config": "5.0.0-alpha.2",
|
|
31
31
|
"@nest-boot/request-context": "5.0.0-alpha.1",
|
|
32
32
|
"@nest-boot/tsconfig": "5.0.0-alpha.1",
|
|
33
33
|
"@nestjs/common": "^10.0.3",
|
|
34
34
|
"@nestjs/config": "^3.0.0",
|
|
35
35
|
"@nestjs/core": "^10.0.3",
|
|
36
|
-
"@swc/cli": "^0.1.62",
|
|
37
|
-
"@swc/core": "^1.3.66",
|
|
38
36
|
"@types/express": "^4.17.17",
|
|
39
37
|
"@types/jest": "^29.5.2",
|
|
40
38
|
"@types/lodash": "^4.14.195",
|
|
41
39
|
"@types/ms": "^0.7.31",
|
|
42
|
-
"@types/node": "^20.3.
|
|
40
|
+
"@types/node": "^20.3.2",
|
|
43
41
|
"express": "^4.18.2",
|
|
44
42
|
"jest": "^29.5.0",
|
|
45
43
|
"reflect-metadata": "^0.1.13",
|
|
@@ -50,7 +48,7 @@
|
|
|
50
48
|
"peerDependencies": {
|
|
51
49
|
"@mikro-orm/core": "^5.0.0",
|
|
52
50
|
"@mikro-orm/nestjs": "^5.0.0",
|
|
53
|
-
"@nest-boot/database": "5.0.0-alpha.
|
|
51
|
+
"@nest-boot/database": "5.0.0-alpha.2",
|
|
54
52
|
"@nest-boot/request-context": "5.0.0-alpha.1",
|
|
55
53
|
"@nestjs/common": "^10.0.0",
|
|
56
54
|
"@nestjs/core": "^10.0.0",
|
|
@@ -59,7 +57,7 @@
|
|
|
59
57
|
"rxjs": "^7.0.0"
|
|
60
58
|
},
|
|
61
59
|
"optionalDependencies": {
|
|
62
|
-
"@nest-boot/i18n": "5.0.0-alpha.
|
|
60
|
+
"@nest-boot/i18n": "5.0.0-alpha.2"
|
|
63
61
|
},
|
|
64
62
|
"publishConfig": {
|
|
65
63
|
"access": "public"
|