@midwayjs/session 3.0.0-beta.9 → 3.0.3
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/LICENSE +21 -0
- package/README.md +0 -1
- package/dist/config/config.default.d.ts +1 -0
- package/dist/config/config.default.js +1 -0
- package/dist/config/config.default.js.map +1 -0
- package/dist/configuration.js +17 -15
- package/dist/configuration.js.map +1 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -0
- package/dist/interface.d.ts +105 -0
- package/dist/interface.js +7 -0
- package/dist/interface.js.map +1 -0
- package/dist/lib/context.d.ts +80 -0
- package/dist/lib/context.js +315 -0
- package/dist/lib/context.js.map +1 -0
- package/dist/lib/crc.d.ts +9 -0
- package/dist/lib/crc.js +69 -0
- package/dist/lib/crc.js.map +1 -0
- package/dist/lib/session.d.ts +72 -0
- package/dist/lib/session.js +112 -0
- package/dist/lib/session.js.map +1 -0
- package/dist/lib/store.d.ts +7 -0
- package/dist/{store.js → lib/store.js} +1 -4
- package/dist/lib/store.js.map +1 -0
- package/dist/lib/util.d.ts +20 -0
- package/dist/lib/util.js +35 -0
- package/dist/lib/util.js.map +1 -0
- package/dist/middleware/session.d.ts +3 -2
- package/dist/middleware/session.js +125 -3
- package/dist/middleware/session.js.map +1 -0
- package/index.d.ts +14 -2
- package/package.json +11 -10
- package/dist/store.d.ts +0 -11
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@midwayjs/session",
|
|
3
3
|
"description": "midway session component for koa and faas",
|
|
4
|
-
"version": "3.0.
|
|
4
|
+
"version": "3.0.3",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"typings": "index.d.ts",
|
|
7
7
|
"files": [
|
|
8
8
|
"dist/**/*.js",
|
|
9
9
|
"dist/**/*.d.ts",
|
|
10
|
-
"index.d.ts"
|
|
10
|
+
"index.d.ts",
|
|
11
|
+
"dist/**/*.js.map"
|
|
11
12
|
],
|
|
12
13
|
"devDependencies": {
|
|
13
|
-
"@midwayjs/core": "^3.0.
|
|
14
|
-
"@midwayjs/decorator": "^3.0.
|
|
15
|
-
"@midwayjs/mock": "^3.0.
|
|
16
|
-
"@types/koa-session": "^5.10.4"
|
|
14
|
+
"@midwayjs/core": "^3.0.2",
|
|
15
|
+
"@midwayjs/decorator": "^3.0.2",
|
|
16
|
+
"@midwayjs/mock": "^3.0.2"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"
|
|
19
|
+
"@midwayjs/cookies": "1.0.1"
|
|
20
20
|
},
|
|
21
21
|
"keywords": [
|
|
22
22
|
"midway",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"license": "MIT",
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "tsc",
|
|
32
|
-
"test": "node --require=ts-node/register ../../node_modules/.bin/jest",
|
|
33
|
-
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --coverage --forceExit",
|
|
32
|
+
"test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand",
|
|
33
|
+
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit",
|
|
34
34
|
"ci": "npm run test",
|
|
35
35
|
"lint": "mwts check"
|
|
36
36
|
},
|
|
@@ -40,5 +40,6 @@
|
|
|
40
40
|
"repository": {
|
|
41
41
|
"type": "git",
|
|
42
42
|
"url": "https://github.com/midwayjs/midway.git"
|
|
43
|
-
}
|
|
43
|
+
},
|
|
44
|
+
"gitHead": "43a5971b284aa918d22d191236c5664b011f8d87"
|
|
44
45
|
}
|
package/dist/store.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export declare abstract class SessionStore {
|
|
2
|
-
abstract get(key: string): any;
|
|
3
|
-
abstract set(key: string, value: string, maxAge: number): any;
|
|
4
|
-
abstract destroy(key: any): any;
|
|
5
|
-
}
|
|
6
|
-
export declare class SessionStoreManager {
|
|
7
|
-
private sessionStore;
|
|
8
|
-
setSessionStore(sessionStore: any): void;
|
|
9
|
-
getSessionStore(): SessionStore;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=store.d.ts.map
|