@adonisjs/core 5.7.5 → 5.8.1
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/commands/ListRoutes/index.d.ts +1 -0
- package/build/commands/ListRoutes/index.js +2 -0
- package/build/config.d.ts +2 -0
- package/build/config.js +15 -0
- package/build/src/Ignitor/Ace/App/index.js +1 -1
- package/build/templates/config/app.txt +4 -4
- package/build/templates/config/drive.txt +7 -6
- package/build/templates/config/hash.txt +3 -5
- package/build/templates/contracts/drive.txt +4 -14
- package/build/templates/contracts/env.txt +7 -7
- package/build/templates/contracts/hash.txt +4 -10
- package/package.json +23 -19
|
@@ -119,6 +119,7 @@ class ListRoutes extends ace_1.BaseCommand {
|
|
|
119
119
|
else {
|
|
120
120
|
new PrettyRenderer_1.RoutesPrettyRenderer(this).render();
|
|
121
121
|
}
|
|
122
|
+
await this.application.shutdown();
|
|
122
123
|
}
|
|
123
124
|
}
|
|
124
125
|
ListRoutes.commandName = 'list:routes';
|
|
@@ -128,6 +129,7 @@ ListRoutes.description = 'List application routes';
|
|
|
128
129
|
*/
|
|
129
130
|
ListRoutes.settings = {
|
|
130
131
|
loadApp: true,
|
|
132
|
+
stayAlive: true,
|
|
131
133
|
};
|
|
132
134
|
__decorate([
|
|
133
135
|
ace_1.flags.boolean({ name: 'verbose', description: 'Display more information' }),
|
package/build/config.js
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* @adonisjs/core
|
|
4
|
+
*
|
|
5
|
+
* (c) Harminder Virk <virk@adonisjs.com>
|
|
6
|
+
*
|
|
7
|
+
* For the full copyright and license information, please view the LICENSE
|
|
8
|
+
* file that was distributed with this source code.
|
|
9
|
+
*/
|
|
10
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
exports.driveConfig = exports.hashConfig = void 0;
|
|
12
|
+
var config_1 = require("@adonisjs/hash/build/config");
|
|
13
|
+
Object.defineProperty(exports, "hashConfig", { enumerable: true, get: function () { return config_1.hashConfig; } });
|
|
14
|
+
var config_2 = require("@adonisjs/drive/build/config");
|
|
15
|
+
Object.defineProperty(exports, "driveConfig", { enumerable: true, get: function () { return config_2.driveConfig; } });
|
|
@@ -122,7 +122,7 @@ class App {
|
|
|
122
122
|
* If a sub-command needs application, then the main command
|
|
123
123
|
* should set "loadApp" to true as well.
|
|
124
124
|
*/
|
|
125
|
-
if (command.commandName === this.commandName) {
|
|
125
|
+
if (command.commandName === this.commandName || command.aliases.includes(this.commandName)) {
|
|
126
126
|
/**
|
|
127
127
|
* Switch environment before wiring the app
|
|
128
128
|
*/
|
|
@@ -284,8 +284,8 @@ export const assets: AssetsManagerConfig = {
|
|
|
284
284
|
*/
|
|
285
285
|
script: {
|
|
286
286
|
attributes: {
|
|
287
|
-
defer: true
|
|
288
|
-
}
|
|
287
|
+
defer: true,
|
|
288
|
+
},
|
|
289
289
|
},
|
|
290
290
|
|
|
291
291
|
/*
|
|
@@ -297,7 +297,7 @@ export const assets: AssetsManagerConfig = {
|
|
|
297
297
|
|
|
|
298
298
|
*/
|
|
299
299
|
style: {
|
|
300
|
-
attributes: {}
|
|
301
|
-
}
|
|
300
|
+
attributes: {},
|
|
301
|
+
},
|
|
302
302
|
}
|
|
303
303
|
{{/assetsManager}}
|
|
@@ -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
|
|
@@ -101,6 +101,9 @@ const driveConfig: DriveConfig = {
|
|
|
101
101
|
// region: Env.get('S3_REGION'),
|
|
102
102
|
// bucket: Env.get('S3_BUCKET'),
|
|
103
103
|
// endpoint: Env.get('S3_ENDPOINT'),
|
|
104
|
+
//
|
|
105
|
+
// // For minio to work
|
|
106
|
+
// // forcePathStyle: true,
|
|
104
107
|
// },
|
|
105
108
|
|
|
106
109
|
/*
|
|
@@ -140,9 +143,7 @@ const driveConfig: DriveConfig = {
|
|
|
140
143
|
| console.
|
|
141
144
|
|
|
|
142
145
|
*/
|
|
143
|
-
// usingUniformAcl: false
|
|
146
|
+
// usingUniformAcl: false,
|
|
144
147
|
// },
|
|
145
148
|
},
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
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
|
}
|
|
@@ -11,14 +11,14 @@ declare module '@ioc:Adonis/Core/Env' {
|
|
|
11
11
|
| Getting types for validated environment variables
|
|
12
12
|
|--------------------------------------------------------------------------
|
|
13
13
|
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
| The `default` export from the "../env.ts" file exports types for the
|
|
15
|
+
| validated environment variables. Here we merge them with the `EnvTypes`
|
|
16
|
+
| interface so that you can enjoy intellisense when using the "Env"
|
|
17
|
+
| module.
|
|
18
18
|
|
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
type CustomTypes = typeof import('../env').default
|
|
22
|
+
interface EnvTypes extends CustomTypes {
|
|
23
|
+
}
|
|
24
24
|
}
|
|
@@ -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.1",
|
|
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",
|
|
@@ -28,6 +30,8 @@
|
|
|
28
30
|
"build/providers",
|
|
29
31
|
"build/src",
|
|
30
32
|
"build/instructions.js",
|
|
33
|
+
"build/config.js",
|
|
34
|
+
"build/config.d.ts",
|
|
31
35
|
"build/standalone.js",
|
|
32
36
|
"build/standalone.d.ts"
|
|
33
37
|
],
|
|
@@ -63,41 +67,41 @@
|
|
|
63
67
|
},
|
|
64
68
|
"homepage": "https://github.com/adonisjs/core#readme",
|
|
65
69
|
"devDependencies": {
|
|
66
|
-
"@adonisjs/assembler": "^5.6.
|
|
70
|
+
"@adonisjs/assembler": "^5.6.2",
|
|
67
71
|
"@adonisjs/mrm-preset": "^5.0.3",
|
|
68
72
|
"@adonisjs/repl": "^3.1.10",
|
|
69
73
|
"@adonisjs/require-ts": "^2.0.11",
|
|
70
|
-
"@adonisjs/sink": "^5.
|
|
74
|
+
"@adonisjs/sink": "^5.3.1",
|
|
71
75
|
"@japa/assert": "^1.3.4",
|
|
72
76
|
"@japa/preset-adonis": "^1.0.15",
|
|
73
77
|
"@japa/run-failed-tests": "^1.0.7",
|
|
74
|
-
"@japa/runner": "^2.0.
|
|
78
|
+
"@japa/runner": "^2.0.8",
|
|
75
79
|
"@japa/spec-reporter": "^1.1.12",
|
|
76
80
|
"@poppinss/dev-utils": "^2.0.3",
|
|
77
|
-
"@types/node": "^17.0.
|
|
81
|
+
"@types/node": "^17.0.34",
|
|
78
82
|
"@types/supertest": "^2.0.12",
|
|
79
83
|
"clear-module": "^4.1.2",
|
|
80
84
|
"commitizen": "^4.2.4",
|
|
81
85
|
"copyfiles": "^2.4.1",
|
|
82
86
|
"cz-conventional-changelog": "^3.3.0",
|
|
83
87
|
"del-cli": "^4.0.1",
|
|
84
|
-
"eslint": "^8.
|
|
88
|
+
"eslint": "^8.15.0",
|
|
85
89
|
"eslint-config-prettier": "^8.5.0",
|
|
86
90
|
"eslint-plugin-adonis": "^2.1.0",
|
|
87
91
|
"eslint-plugin-prettier": "^4.0.0",
|
|
88
92
|
"etag": "^1.8.1",
|
|
89
93
|
"github-label-sync": "^2.2.0",
|
|
90
|
-
"husky": "^
|
|
94
|
+
"husky": "^8.0.1",
|
|
91
95
|
"mrm": "^4.0.0",
|
|
92
96
|
"np": "^7.6.1",
|
|
93
97
|
"prettier": "^2.6.2",
|
|
94
98
|
"reflect-metadata": "^0.1.13",
|
|
95
99
|
"strip-ansi": "^6.0.1",
|
|
96
|
-
"supertest": "^6.2.
|
|
100
|
+
"supertest": "^6.2.3",
|
|
97
101
|
"test-console": "^2.0.0",
|
|
98
|
-
"typescript": "^4.6.
|
|
99
|
-
"youch": "^3.
|
|
100
|
-
"youch-terminal": "^2.1.
|
|
102
|
+
"typescript": "^4.6.4",
|
|
103
|
+
"youch": "^3.2.0",
|
|
104
|
+
"youch-terminal": "^2.1.4"
|
|
101
105
|
},
|
|
102
106
|
"nyc": {
|
|
103
107
|
"exclude": [
|
|
@@ -118,21 +122,21 @@
|
|
|
118
122
|
}
|
|
119
123
|
},
|
|
120
124
|
"dependencies": {
|
|
121
|
-
"@adonisjs/ace": "^11.
|
|
125
|
+
"@adonisjs/ace": "^11.3.0",
|
|
122
126
|
"@adonisjs/application": "^5.2.4",
|
|
123
|
-
"@adonisjs/bodyparser": "^8.1.
|
|
124
|
-
"@adonisjs/drive": "^2.
|
|
127
|
+
"@adonisjs/bodyparser": "^8.1.4",
|
|
128
|
+
"@adonisjs/drive": "^2.2.0",
|
|
125
129
|
"@adonisjs/encryption": "^4.0.8",
|
|
126
130
|
"@adonisjs/events": "^7.2.1",
|
|
127
|
-
"@adonisjs/hash": "^7.
|
|
128
|
-
"@adonisjs/http-server": "^5.
|
|
129
|
-
"@adonisjs/validator": "^12.3.
|
|
131
|
+
"@adonisjs/hash": "^7.1.1",
|
|
132
|
+
"@adonisjs/http-server": "^5.9.0",
|
|
133
|
+
"@adonisjs/validator": "^12.3.2",
|
|
130
134
|
"@poppinss/cliui": "^3.0.2",
|
|
131
135
|
"@poppinss/manager": "^5.0.2",
|
|
132
136
|
"@poppinss/utils": "^4.0.4",
|
|
133
|
-
"fs-extra": "^10.0
|
|
137
|
+
"fs-extra": "^10.1.0",
|
|
134
138
|
"macroable": "^7.0.1",
|
|
135
|
-
"memfs": "^3.4.
|
|
139
|
+
"memfs": "^3.4.3",
|
|
136
140
|
"serve-static": "^1.15.0",
|
|
137
141
|
"stringify-attributes": "^2.0.0"
|
|
138
142
|
},
|