@adonisjs/core 5.7.6 → 5.8.0
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.
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Env from '@ioc:Adonis/Core/Env'
|
|
9
|
-
import {
|
|
9
|
+
import { driveConfig } from '@adonisjs/core/config'
|
|
10
10
|
import Application from '@ioc:Adonis/Core/Application'
|
|
11
11
|
|
|
12
12
|
/*
|
|
@@ -18,7 +18,7 @@ import Application from '@ioc:Adonis/Core/Application'
|
|
|
18
18
|
| defined inside the `contracts` directory.
|
|
19
19
|
|
|
|
20
20
|
*/
|
|
21
|
-
|
|
21
|
+
export default driveConfig({
|
|
22
22
|
/*
|
|
23
23
|
|--------------------------------------------------------------------------
|
|
24
24
|
| Default disk
|
|
@@ -146,6 +146,4 @@ const driveConfig: DriveConfig = {
|
|
|
146
146
|
// usingUniformAcl: false,
|
|
147
147
|
// },
|
|
148
148
|
},
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export default driveConfig
|
|
149
|
+
})
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import Env from '@ioc:Adonis/Core/Env'
|
|
9
|
-
import {
|
|
9
|
+
import { hashConfig } from '@adonisjs/core/config'
|
|
10
10
|
|
|
11
11
|
/*
|
|
12
12
|
|--------------------------------------------------------------------------
|
|
@@ -17,7 +17,7 @@ import { HashConfig } from '@ioc:Adonis/Core/Hash'
|
|
|
17
17
|
| defined inside `contracts` directory.
|
|
18
18
|
|
|
|
19
19
|
*/
|
|
20
|
-
|
|
20
|
+
export default hashConfig({
|
|
21
21
|
/*
|
|
22
22
|
|--------------------------------------------------------------------------
|
|
23
23
|
| Default hasher
|
|
@@ -70,6 +70,4 @@ const hashConfig: HashConfig = {
|
|
|
70
70
|
rounds: 10,
|
|
71
71
|
},
|
|
72
72
|
},
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
export default hashConfig
|
|
73
|
+
})
|
|
@@ -5,19 +5,9 @@
|
|
|
5
5
|
* file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { InferDisksFromConfig } from '@adonisjs/core/config'
|
|
9
|
+
import driveConfig from '../config/drive'
|
|
10
|
+
|
|
8
11
|
declare module '@ioc:Adonis/Core/Drive' {
|
|
9
|
-
interface DisksList {
|
|
10
|
-
local: {
|
|
11
|
-
config: LocalDriverConfig
|
|
12
|
-
implementation: LocalDriverContract
|
|
13
|
-
}
|
|
14
|
-
// s3: {
|
|
15
|
-
// config: S3DriverConfig
|
|
16
|
-
// implementation: S3DriverContract
|
|
17
|
-
// }
|
|
18
|
-
// gcs: {
|
|
19
|
-
// config: GcsDriverConfig
|
|
20
|
-
// implementation: GcsDriverContract
|
|
21
|
-
// }
|
|
22
|
-
}
|
|
12
|
+
interface DisksList extends InferDisksFromConfig<typeof driveConfig> {}
|
|
23
13
|
}
|
|
@@ -5,15 +5,9 @@
|
|
|
5
5
|
* file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
+
import { InferListFromConfig } from '@adonisjs/core/config'
|
|
9
|
+
import hashConfig from '../config/hash'
|
|
10
|
+
|
|
8
11
|
declare module '@ioc:Adonis/Core/Hash' {
|
|
9
|
-
interface HashersList {
|
|
10
|
-
bcrypt: {
|
|
11
|
-
config: BcryptConfig,
|
|
12
|
-
implementation: BcryptContract,
|
|
13
|
-
},
|
|
14
|
-
argon: {
|
|
15
|
-
config: ArgonConfig,
|
|
16
|
-
implementation: ArgonContract,
|
|
17
|
-
},
|
|
18
|
-
}
|
|
12
|
+
interface HashersList extends InferListFromConfig<typeof hashConfig> {}
|
|
19
13
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.8.0",
|
|
4
4
|
"description": "Core of AdonisJS",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -8,12 +8,14 @@
|
|
|
8
8
|
"require": "./build/providers/AppProvider.js"
|
|
9
9
|
},
|
|
10
10
|
"./standalone": "./build/standalone.js",
|
|
11
|
+
"./config": "./build/config.js",
|
|
11
12
|
"./Ignitor": "./build/src/Ignitor/index.js",
|
|
12
13
|
"./commands": "./build/commands/index.js",
|
|
13
14
|
"./commands/DumpRc": "./build/commands/DumpRc.js",
|
|
14
15
|
"./commands/ListRoutes": "./build/commands/ListRoutes.js",
|
|
15
16
|
"./commands/GenerateKey": "./build/commands/GenerateKey.js",
|
|
16
17
|
"./build/standalone": "./build/standalone.js",
|
|
18
|
+
"./build/config": "./build/config.js",
|
|
17
19
|
"./build/src/Ignitor": "./build/src/Ignitor/index.js",
|
|
18
20
|
"./build/commands": "./build/commands/index.js",
|
|
19
21
|
"./build/commands/DumpRc": "./build/commands/DumpRc.js",
|
|
@@ -71,23 +73,23 @@
|
|
|
71
73
|
"@japa/assert": "^1.3.4",
|
|
72
74
|
"@japa/preset-adonis": "^1.0.15",
|
|
73
75
|
"@japa/run-failed-tests": "^1.0.7",
|
|
74
|
-
"@japa/runner": "^2.0.
|
|
76
|
+
"@japa/runner": "^2.0.8",
|
|
75
77
|
"@japa/spec-reporter": "^1.1.12",
|
|
76
78
|
"@poppinss/dev-utils": "^2.0.3",
|
|
77
|
-
"@types/node": "^17.0.
|
|
79
|
+
"@types/node": "^17.0.34",
|
|
78
80
|
"@types/supertest": "^2.0.12",
|
|
79
81
|
"clear-module": "^4.1.2",
|
|
80
82
|
"commitizen": "^4.2.4",
|
|
81
83
|
"copyfiles": "^2.4.1",
|
|
82
84
|
"cz-conventional-changelog": "^3.3.0",
|
|
83
85
|
"del-cli": "^4.0.1",
|
|
84
|
-
"eslint": "^8.
|
|
86
|
+
"eslint": "^8.15.0",
|
|
85
87
|
"eslint-config-prettier": "^8.5.0",
|
|
86
88
|
"eslint-plugin-adonis": "^2.1.0",
|
|
87
89
|
"eslint-plugin-prettier": "^4.0.0",
|
|
88
90
|
"etag": "^1.8.1",
|
|
89
91
|
"github-label-sync": "^2.2.0",
|
|
90
|
-
"husky": "^
|
|
92
|
+
"husky": "^8.0.1",
|
|
91
93
|
"mrm": "^4.0.0",
|
|
92
94
|
"np": "^7.6.1",
|
|
93
95
|
"prettier": "^2.6.2",
|
|
@@ -97,7 +99,7 @@
|
|
|
97
99
|
"test-console": "^2.0.0",
|
|
98
100
|
"typescript": "^4.6.4",
|
|
99
101
|
"youch": "^3.2.0",
|
|
100
|
-
"youch-terminal": "^2.1.
|
|
102
|
+
"youch-terminal": "^2.1.4"
|
|
101
103
|
},
|
|
102
104
|
"nyc": {
|
|
103
105
|
"exclude": [
|
|
@@ -120,19 +122,19 @@
|
|
|
120
122
|
"dependencies": {
|
|
121
123
|
"@adonisjs/ace": "^11.3.0",
|
|
122
124
|
"@adonisjs/application": "^5.2.4",
|
|
123
|
-
"@adonisjs/bodyparser": "^8.1.
|
|
124
|
-
"@adonisjs/drive": "^2.
|
|
125
|
+
"@adonisjs/bodyparser": "^8.1.4",
|
|
126
|
+
"@adonisjs/drive": "^2.2.0",
|
|
125
127
|
"@adonisjs/encryption": "^4.0.8",
|
|
126
128
|
"@adonisjs/events": "^7.2.1",
|
|
127
|
-
"@adonisjs/hash": "^7.
|
|
128
|
-
"@adonisjs/http-server": "^5.
|
|
129
|
-
"@adonisjs/validator": "^12.3.
|
|
129
|
+
"@adonisjs/hash": "^7.1.1",
|
|
130
|
+
"@adonisjs/http-server": "^5.9.0",
|
|
131
|
+
"@adonisjs/validator": "^12.3.2",
|
|
130
132
|
"@poppinss/cliui": "^3.0.2",
|
|
131
133
|
"@poppinss/manager": "^5.0.2",
|
|
132
134
|
"@poppinss/utils": "^4.0.4",
|
|
133
135
|
"fs-extra": "^10.1.0",
|
|
134
136
|
"macroable": "^7.0.1",
|
|
135
|
-
"memfs": "^3.4.
|
|
137
|
+
"memfs": "^3.4.3",
|
|
136
138
|
"serve-static": "^1.15.0",
|
|
137
139
|
"stringify-attributes": "^2.0.0"
|
|
138
140
|
},
|