@dudousxd/nestjs-authz-typeorm 0.2.1 → 0.3.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 +64 -0
- package/dist/authz-rbac.module.d.ts +1 -1
- package/dist/authz-rbac.module.d.ts.map +1 -1
- package/dist/authz-rbac.module.js +86 -8
- package/dist/authz-rbac.module.js.map +1 -1
- package/dist/entities.d.ts +30 -1
- package/dist/entities.d.ts.map +1 -1
- package/dist/entities.js +51 -0
- package/dist/entities.js.map +1 -1
- package/dist/index.d.ts +5 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/schema.d.ts.map +1 -1
- package/dist/schema.js +28 -4
- package/dist/schema.js.map +1 -1
- package/dist/scope.d.ts +75 -0
- package/dist/scope.d.ts.map +1 -0
- package/dist/scope.js +124 -0
- package/dist/scope.js.map +1 -0
- package/dist/sql.d.ts +1 -8
- package/dist/sql.d.ts.map +1 -1
- package/dist/sql.js +3 -19
- package/dist/sql.js.map +1 -1
- package/dist/typeorm-authz.store.d.ts +59 -21
- package/dist/typeorm-authz.store.d.ts.map +1 -1
- package/dist/typeorm-authz.store.js +129 -33
- package/dist/typeorm-authz.store.js.map +1 -1
- package/dist/types.d.ts +10 -9
- package/dist/types.d.ts.map +1 -1
- package/package.json +9 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dudousxd/nestjs-authz-typeorm",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "TypeORM RBAC persistence for @dudousxd/nestjs-authz — roles, permissions, and a Gate seam (zero connection ownership).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -35,14 +35,18 @@
|
|
|
35
35
|
"@nestjs/common": "^11.0.0",
|
|
36
36
|
"@nestjs/core": "^11.0.0",
|
|
37
37
|
"@nestjs/testing": "^11.0.0",
|
|
38
|
+
"@testcontainers/mysql": "^12.0.3",
|
|
39
|
+
"@testcontainers/postgresql": "^12.0.3",
|
|
38
40
|
"@types/node": "^20.0.0",
|
|
41
|
+
"mysql2": "^3.22.5",
|
|
42
|
+
"pg": "^8.21.0",
|
|
39
43
|
"reflect-metadata": "^0.2.2",
|
|
40
44
|
"rxjs": "^7.8.1",
|
|
41
45
|
"sqlite3": "^5.1.7",
|
|
42
46
|
"typeorm": "^0.3.20",
|
|
43
47
|
"typescript": "^5.4.0",
|
|
44
48
|
"vitest": "^3.0.0",
|
|
45
|
-
"@dudousxd/nestjs-authz": "^0.
|
|
49
|
+
"@dudousxd/nestjs-authz": "^0.6.1"
|
|
46
50
|
},
|
|
47
51
|
"engines": {
|
|
48
52
|
"node": ">=20"
|
|
@@ -59,6 +63,9 @@
|
|
|
59
63
|
"scripts": {
|
|
60
64
|
"build": "tsc -p tsconfig.json",
|
|
61
65
|
"test": "vitest run --passWithNoTests",
|
|
66
|
+
"test:db": "pnpm test:db:pg && pnpm test:db:mysql",
|
|
67
|
+
"test:db:pg": "AUTHZ_TEST_DIALECT=postgres vitest run --config vitest.db.config.ts",
|
|
68
|
+
"test:db:mysql": "AUTHZ_TEST_DIALECT=mysql vitest run --config vitest.db.config.ts",
|
|
62
69
|
"test:watch": "vitest",
|
|
63
70
|
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
64
71
|
}
|