@adonisjs/session 7.0.0-5 → 7.0.0-6
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/build/configure.js +4 -3
- package/build/src/debug.d.ts +1 -1
- package/package.json +5 -5
package/build/configure.js
CHANGED
|
@@ -14,14 +14,15 @@ export async function configure(command) {
|
|
|
14
14
|
* Publish config file
|
|
15
15
|
*/
|
|
16
16
|
await command.publishStub('config.stub');
|
|
17
|
+
const codemods = await command.createCodemods();
|
|
17
18
|
/**
|
|
18
19
|
* Define environment variables
|
|
19
20
|
*/
|
|
20
|
-
await
|
|
21
|
+
await codemods.defineEnvVariables({ SESSION_DRIVER: 'cookie' });
|
|
21
22
|
/**
|
|
22
23
|
* Define environment variables validations
|
|
23
24
|
*/
|
|
24
|
-
await
|
|
25
|
+
await codemods.defineEnvValidations({
|
|
25
26
|
variables: {
|
|
26
27
|
SESSION_DRIVER: `Env.schema.enum(['cookie', 'redis', 'file', 'memory' as const])`,
|
|
27
28
|
},
|
|
@@ -30,7 +31,7 @@ export async function configure(command) {
|
|
|
30
31
|
/**
|
|
31
32
|
* Register provider
|
|
32
33
|
*/
|
|
33
|
-
await
|
|
34
|
+
await codemods.updateRcFile((rcFile) => {
|
|
34
35
|
rcFile.addProvider('@adonisjs/session/session_provider');
|
|
35
36
|
});
|
|
36
37
|
}
|
package/build/src/debug.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/session",
|
|
3
3
|
"description": "Session provider for AdonisJS",
|
|
4
|
-
"version": "7.0.0-
|
|
4
|
+
"version": "7.0.0-6",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.16.0"
|
|
7
7
|
},
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
43
|
"@adonisjs/assembler": "^6.1.3-18",
|
|
44
|
-
"@adonisjs/core": "^6.1.5-
|
|
44
|
+
"@adonisjs/core": "^6.1.5-19",
|
|
45
45
|
"@adonisjs/eslint-config": "^1.1.8",
|
|
46
46
|
"@adonisjs/prettier-config": "^1.1.8",
|
|
47
|
-
"@adonisjs/redis": "^8.0.0-
|
|
47
|
+
"@adonisjs/redis": "^8.0.0-10",
|
|
48
48
|
"@adonisjs/tsconfig": "^1.1.8",
|
|
49
49
|
"@japa/assert": "^2.0.0-1",
|
|
50
50
|
"@japa/file-system": "^2.0.0-1",
|
|
@@ -74,8 +74,8 @@
|
|
|
74
74
|
"@poppinss/utils": "^6.5.0-5"
|
|
75
75
|
},
|
|
76
76
|
"peerDependencies": {
|
|
77
|
-
"@adonisjs/core": "^6.1.5-
|
|
78
|
-
"@adonisjs/redis": "^8.0.0-
|
|
77
|
+
"@adonisjs/core": "^6.1.5-19",
|
|
78
|
+
"@adonisjs/redis": "^8.0.0-10"
|
|
79
79
|
},
|
|
80
80
|
"peerDependenciesMeta": {
|
|
81
81
|
"@adonisjs/redis": {
|