@adonisjs/core 5.8.7 → 5.8.9
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/templates/config/app.txt +5 -5
- package/build/templates/config/bodyparser.txt +1 -1
- package/build/templates/config/cors.txt +1 -1
- package/build/templates/config/hash.txt +24 -1
- package/build/templates/contracts/drive.txt +2 -2
- package/build/templates/contracts/events.txt +1 -0
- package/build/templates/contracts/hash.txt +2 -2
- package/package.json +14 -14
|
@@ -10,12 +10,12 @@ import Env from '@ioc:Adonis/Core/Env'
|
|
|
10
10
|
{{#assetsManager}}
|
|
11
11
|
import Application from '@ioc:Adonis/Core/Application'
|
|
12
12
|
{{/assetsManager}}
|
|
13
|
-
import { ServerConfig } from '@ioc:Adonis/Core/Server'
|
|
14
|
-
import { LoggerConfig } from '@ioc:Adonis/Core/Logger'
|
|
15
|
-
import { ProfilerConfig } from '@ioc:Adonis/Core/Profiler'
|
|
16
|
-
import { ValidatorConfig } from '@ioc:Adonis/Core/Validator'
|
|
13
|
+
import type { ServerConfig } from '@ioc:Adonis/Core/Server'
|
|
14
|
+
import type { LoggerConfig } from '@ioc:Adonis/Core/Logger'
|
|
15
|
+
import type { ProfilerConfig } from '@ioc:Adonis/Core/Profiler'
|
|
16
|
+
import type { ValidatorConfig } from '@ioc:Adonis/Core/Validator'
|
|
17
17
|
{{#assetsManager}}
|
|
18
|
-
import { AssetsManagerConfig } from '@ioc:Adonis/Core/AssetsManager'
|
|
18
|
+
import type { AssetsManagerConfig } from '@ioc:Adonis/Core/AssetsManager'
|
|
19
19
|
{{/assetsManager}}
|
|
20
20
|
|
|
21
21
|
/*
|
|
@@ -27,9 +27,32 @@ export default hashConfig({
|
|
|
27
27
|
| free to change the default value
|
|
28
28
|
|
|
|
29
29
|
*/
|
|
30
|
-
default: Env.get('HASH_DRIVER', '
|
|
30
|
+
default: Env.get('HASH_DRIVER', 'scrypt'),
|
|
31
31
|
|
|
32
32
|
list: {
|
|
33
|
+
/*
|
|
34
|
+
|--------------------------------------------------------------------------
|
|
35
|
+
| scrypt
|
|
36
|
+
|--------------------------------------------------------------------------
|
|
37
|
+
|
|
|
38
|
+
| Scrypt mapping uses the Node.js inbuilt crypto module for creating
|
|
39
|
+
| hashes.
|
|
40
|
+
|
|
|
41
|
+
| We are using the default configuration recommended within the Node.js
|
|
42
|
+
| documentation.
|
|
43
|
+
| https://nodejs.org/api/crypto.html#cryptoscryptpassword-salt-keylen-options-callback
|
|
44
|
+
|
|
|
45
|
+
*/
|
|
46
|
+
scrypt: {
|
|
47
|
+
driver: 'scrypt',
|
|
48
|
+
cost: 16384,
|
|
49
|
+
blockSize: 8,
|
|
50
|
+
parallelization: 1,
|
|
51
|
+
saltSize: 16,
|
|
52
|
+
keyLength: 64,
|
|
53
|
+
maxMemory: 32 * 1024 * 1024,
|
|
54
|
+
},
|
|
55
|
+
|
|
33
56
|
/*
|
|
34
57
|
|--------------------------------------------------------------------------
|
|
35
58
|
| Argon
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { InferDisksFromConfig } from '@adonisjs/core/build/config'
|
|
9
|
-
import driveConfig from '../config/drive'
|
|
8
|
+
import type { InferDisksFromConfig } from '@adonisjs/core/build/config'
|
|
9
|
+
import type driveConfig from '../config/drive'
|
|
10
10
|
|
|
11
11
|
declare module '@ioc:Adonis/Core/Drive' {
|
|
12
12
|
interface DisksList extends InferDisksFromConfig<typeof driveConfig> {}
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* file.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import { InferListFromConfig } from '@adonisjs/core/build/config'
|
|
9
|
-
import hashConfig from '../config/hash'
|
|
8
|
+
import type { InferListFromConfig } from '@adonisjs/core/build/config'
|
|
9
|
+
import type hashConfig from '../config/hash'
|
|
10
10
|
|
|
11
11
|
declare module '@ioc:Adonis/Core/Hash' {
|
|
12
12
|
interface HashersList extends InferListFromConfig<typeof hashConfig> {}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.9",
|
|
4
4
|
"description": "Core of AdonisJS",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"devDependencies": {
|
|
71
71
|
"@adonisjs/assembler": "^5.9.3",
|
|
72
72
|
"@adonisjs/fold": "^8.2.0",
|
|
73
|
-
"@adonisjs/logger": "^4.1.
|
|
73
|
+
"@adonisjs/logger": "^4.1.5",
|
|
74
74
|
"@adonisjs/mrm-preset": "^5.0.3",
|
|
75
75
|
"@adonisjs/repl": "^3.1.11",
|
|
76
76
|
"@adonisjs/require-ts": "^2.0.13",
|
|
@@ -78,29 +78,29 @@
|
|
|
78
78
|
"@japa/assert": "^1.3.5",
|
|
79
79
|
"@japa/preset-adonis": "^1.1.1",
|
|
80
80
|
"@japa/run-failed-tests": "^1.0.8",
|
|
81
|
-
"@japa/runner": "^2.2.
|
|
82
|
-
"@japa/spec-reporter": "^1.3.
|
|
81
|
+
"@japa/runner": "^2.2.2",
|
|
82
|
+
"@japa/spec-reporter": "^1.3.2",
|
|
83
83
|
"@poppinss/dev-utils": "^2.0.3",
|
|
84
|
-
"@types/node": "^18.
|
|
84
|
+
"@types/node": "^18.11.9",
|
|
85
85
|
"@types/supertest": "^2.0.12",
|
|
86
86
|
"clear-module": "^4.1.2",
|
|
87
87
|
"commitizen": "^4.2.5",
|
|
88
88
|
"copyfiles": "^2.4.1",
|
|
89
89
|
"cz-conventional-changelog": "^3.3.0",
|
|
90
90
|
"del-cli": "^5.0.0",
|
|
91
|
-
"eslint": "^8.
|
|
91
|
+
"eslint": "^8.27.0",
|
|
92
92
|
"eslint-config-prettier": "^8.5.0",
|
|
93
93
|
"eslint-plugin-adonis": "^2.1.1",
|
|
94
94
|
"eslint-plugin-prettier": "^4.2.1",
|
|
95
95
|
"etag": "^1.8.1",
|
|
96
96
|
"github-label-sync": "^2.2.0",
|
|
97
|
-
"husky": "^8.0.
|
|
98
|
-
"mrm": "^4.1.
|
|
97
|
+
"husky": "^8.0.2",
|
|
98
|
+
"mrm": "^4.1.13",
|
|
99
99
|
"np": "^7.6.2",
|
|
100
100
|
"prettier": "^2.7.1",
|
|
101
101
|
"reflect-metadata": "^0.1.13",
|
|
102
102
|
"strip-ansi": "^6.0.1",
|
|
103
|
-
"supertest": "^6.3.
|
|
103
|
+
"supertest": "^6.3.1",
|
|
104
104
|
"test-console": "^2.0.0",
|
|
105
105
|
"typescript": "^4.8.4",
|
|
106
106
|
"youch": "^3.2.1",
|
|
@@ -131,15 +131,15 @@
|
|
|
131
131
|
"@adonisjs/drive": "^2.3.0",
|
|
132
132
|
"@adonisjs/encryption": "^4.0.8",
|
|
133
133
|
"@adonisjs/events": "^7.2.1",
|
|
134
|
-
"@adonisjs/hash": "^7.
|
|
135
|
-
"@adonisjs/http-server": "^5.
|
|
134
|
+
"@adonisjs/hash": "^7.2.0",
|
|
135
|
+
"@adonisjs/http-server": "^5.12.0",
|
|
136
136
|
"@adonisjs/validator": "^12.4.1",
|
|
137
|
-
"@poppinss/cliui": "^3.0.
|
|
137
|
+
"@poppinss/cliui": "^3.0.5",
|
|
138
138
|
"@poppinss/manager": "^5.0.2",
|
|
139
139
|
"@poppinss/utils": "^5.0.0",
|
|
140
140
|
"fs-extra": "^10.1.0",
|
|
141
|
-
"macroable": "^7.0.
|
|
142
|
-
"memfs": "^3.4.
|
|
141
|
+
"macroable": "^7.0.2",
|
|
142
|
+
"memfs": "^3.4.10",
|
|
143
143
|
"serve-static": "^1.15.0",
|
|
144
144
|
"stringify-attributes": "^2.0.0"
|
|
145
145
|
},
|