@miqro/core 1.5.13 → 1.5.14
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.
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dict } from "@miqro/parser";
|
|
2
1
|
import { Context } from "../context";
|
|
3
2
|
export interface SessionHandlerOptions {
|
|
4
3
|
authService: {
|
|
@@ -18,7 +17,10 @@ export interface SessionHandlerOptions {
|
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
19
|
}
|
|
21
|
-
|
|
20
|
+
declare type Dict<T = any> = {
|
|
21
|
+
[key: string]: T;
|
|
22
|
+
};
|
|
23
|
+
export interface NoTokenSession extends Dict {
|
|
22
24
|
account: string;
|
|
23
25
|
username: string;
|
|
24
26
|
groups: string[];
|
|
@@ -32,3 +34,4 @@ export interface GroupPolicy {
|
|
|
32
34
|
groups: GroupPolicyGroups[];
|
|
33
35
|
groupPolicy: GroupPolicyType;
|
|
34
36
|
}
|
|
37
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@miqro/core",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.14",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"author": "claukers",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@miqro/test": "0.0
|
|
18
|
+
"@miqro/test": "0.1.0",
|
|
19
19
|
"@types/node": "17.0.23",
|
|
20
20
|
"typescript": "4.6.3",
|
|
21
21
|
"@types/cookie": "0.4.1",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@miqro/request": "^0.0.7",
|
|
30
|
-
"@miqro/parser": "^0.
|
|
30
|
+
"@miqro/parser": "^0.1.1",
|
|
31
31
|
"cookie": "0.4.1",
|
|
32
32
|
"uuid": "8.3.2"
|
|
33
33
|
}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {Dict} from "@miqro/parser";
|
|
2
1
|
import {Context} from "../context";
|
|
3
2
|
|
|
4
3
|
export interface SessionHandlerOptions {
|
|
@@ -17,7 +16,11 @@ export interface SessionHandlerOptions {
|
|
|
17
16
|
}
|
|
18
17
|
}
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
type Dict<T = any> = {
|
|
20
|
+
[key: string]: T
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export interface NoTokenSession extends Dict {
|
|
21
24
|
account: string;
|
|
22
25
|
username: string;
|
|
23
26
|
groups: string[];
|