@midwayjs/casbin-typeorm-adapter 3.11.3 → 3.11.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.
- package/dist/casbinMongoRule.d.ts +11 -2
- package/dist/casbinMongoRule.js +1 -1
- package/package.json +8 -8
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { BaseEntity
|
|
1
|
+
import { BaseEntity } from 'typeorm';
|
|
2
|
+
import * as typeorm from 'typeorm';
|
|
3
|
+
interface NewObj {
|
|
4
|
+
ObjectId: unknown;
|
|
5
|
+
}
|
|
6
|
+
interface OldObj {
|
|
7
|
+
ObjectID: unknown;
|
|
8
|
+
}
|
|
9
|
+
declare type ExtractObjectID<T> = T extends NewObj ? T['ObjectId'] : T extends OldObj ? T['ObjectID'] : never;
|
|
2
10
|
export declare class CasbinMongoRule extends BaseEntity {
|
|
3
|
-
id:
|
|
11
|
+
id: ExtractObjectID<typeof typeorm>;
|
|
4
12
|
ptype: string;
|
|
5
13
|
v0: string;
|
|
6
14
|
v1: string;
|
|
@@ -10,4 +18,5 @@ export declare class CasbinMongoRule extends BaseEntity {
|
|
|
10
18
|
v5: string;
|
|
11
19
|
v6: string;
|
|
12
20
|
}
|
|
21
|
+
export {};
|
|
13
22
|
//# sourceMappingURL=casbinMongoRule.d.ts.map
|
package/dist/casbinMongoRule.js
CHANGED
|
@@ -15,7 +15,7 @@ let CasbinMongoRule = class CasbinMongoRule extends typeorm_1.BaseEntity {
|
|
|
15
15
|
};
|
|
16
16
|
__decorate([
|
|
17
17
|
(0, typeorm_1.ObjectIdColumn)(),
|
|
18
|
-
__metadata("design:type",
|
|
18
|
+
__metadata("design:type", Object)
|
|
19
19
|
], CasbinMongoRule.prototype, "id", void 0);
|
|
20
20
|
__decorate([
|
|
21
21
|
(0, typeorm_1.Column)({
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/casbin-typeorm-adapter",
|
|
3
3
|
"description": "midway casbin typeorm adapter",
|
|
4
|
-
"version": "3.11.
|
|
4
|
+
"version": "3.11.5",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
7
7
|
"files": [
|
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
"dist/**/*.d.ts"
|
|
10
10
|
],
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@midwayjs/core": "^3.11.
|
|
13
|
-
"@midwayjs/koa": "^3.11.
|
|
14
|
-
"@midwayjs/mock": "^3.11.
|
|
12
|
+
"@midwayjs/core": "^3.11.4",
|
|
13
|
+
"@midwayjs/koa": "^3.11.5",
|
|
14
|
+
"@midwayjs/mock": "^3.11.5",
|
|
15
15
|
"casbin": "5.26.1",
|
|
16
16
|
"sqlite3": "5.1.6",
|
|
17
|
-
"typeorm": "0.3.
|
|
17
|
+
"typeorm": "0.3.15"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@midwayjs/casbin": "^3.11.
|
|
21
|
-
"@midwayjs/typeorm": "^3.11.
|
|
20
|
+
"@midwayjs/casbin": "^3.11.5",
|
|
21
|
+
"@midwayjs/typeorm": "^3.11.5"
|
|
22
22
|
},
|
|
23
23
|
"keywords": [
|
|
24
24
|
"midway",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"type": "git",
|
|
44
44
|
"url": "https://github.com/midwayjs/midway.git"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "a2c3b25f840a2e9dc01bfb7ef4bef82c3a4b0dcf"
|
|
47
47
|
}
|