@eggjs/session 5.0.0-beta.33 → 5.0.0-beta.34
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/README.md +1 -7
- package/dist/index.d.ts +3 -2
- package/dist/index.js +7 -3
- package/package.json +8 -11
package/README.md
CHANGED
|
@@ -16,15 +16,9 @@
|
|
|
16
16
|
|
|
17
17
|
Session plugin for egg, based on [koa-session](https://github.com/koajs/session).
|
|
18
18
|
|
|
19
|
-
## Install
|
|
20
|
-
|
|
21
|
-
```bash
|
|
22
|
-
npm i @eggjs/session
|
|
23
|
-
```
|
|
24
|
-
|
|
25
19
|
## Usage
|
|
26
20
|
|
|
27
|
-
|
|
21
|
+
`session` is a built-in plugin in egg and enabled by default.
|
|
28
22
|
|
|
29
23
|
```js
|
|
30
24
|
// {app_root}/config/plugin.js
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
import "./config/config.default.js";
|
|
2
|
-
import "./app/extend/application.js";
|
|
3
1
|
import "./types.js";
|
|
2
|
+
import { definePluginFactory } from 'egg';
|
|
4
3
|
export * from "./config/config.default.js";
|
|
5
|
-
|
|
4
|
+
export default definePluginFactory({
|
|
5
|
+
name: 'session',
|
|
6
|
+
enable: true,
|
|
7
|
+
path: import.meta.dirname,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxZQUFZLENBQUM7QUFFcEIsT0FBTyxFQUFFLG1CQUFtQixFQUF5QixNQUFNLEtBQUssQ0FBQztBQUVqRSxjQUFjLDRCQUE0QixDQUFDO0FBRTNDLGVBQWUsbUJBQW1CLENBQUM7SUFDakMsSUFBSSxFQUFFLFNBQVM7SUFDZixNQUFNLEVBQUUsSUFBSTtJQUNaLElBQUksRUFBRSxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU87Q0FDMUIsQ0FBcUIsQ0FBQyJ9
|
package/package.json
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eggjs/session",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.34",
|
|
4
4
|
"description": "session plugin for egg",
|
|
5
|
-
"eggPlugin": {
|
|
6
|
-
"name": "session"
|
|
7
|
-
},
|
|
8
5
|
"repository": {
|
|
9
6
|
"type": "git",
|
|
10
7
|
"url": "git://github.com/eggjs/egg.git",
|
|
@@ -43,18 +40,18 @@
|
|
|
43
40
|
"zod": "^3.24.1"
|
|
44
41
|
},
|
|
45
42
|
"peerDependencies": {
|
|
46
|
-
"egg": "4.1.0-beta.
|
|
43
|
+
"egg": "4.1.0-beta.34"
|
|
47
44
|
},
|
|
48
45
|
"devDependencies": {
|
|
49
46
|
"@types/node": "^24.9.1",
|
|
50
47
|
"tsdown": "0.15.11",
|
|
51
48
|
"typescript": "^5.9.3",
|
|
52
|
-
"vitest": "4.0.
|
|
53
|
-
"@eggjs/
|
|
54
|
-
"@eggjs/
|
|
55
|
-
"@eggjs/
|
|
56
|
-
"@eggjs/
|
|
57
|
-
"egg": "4.1.0-beta.
|
|
49
|
+
"vitest": "4.0.5",
|
|
50
|
+
"@eggjs/mock": "7.0.0-beta.34",
|
|
51
|
+
"@eggjs/redis": "4.0.0-beta.34",
|
|
52
|
+
"@eggjs/supertest": "9.0.0-beta.34",
|
|
53
|
+
"@eggjs/tsconfig": "3.1.0-beta.34",
|
|
54
|
+
"egg": "4.1.0-beta.34"
|
|
58
55
|
},
|
|
59
56
|
"files": [
|
|
60
57
|
"dist"
|