@adonisjs/core 5.8.2 → 5.8.5
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 -65
- package/build/adonis-typings/test-utils.d.ts +1 -0
- package/build/providers/AppProvider.js +2 -0
- package/build/services/app.d.ts +12 -0
- package/build/services/app.js +12 -0
- package/build/services/base.d.ts +3 -0
- package/build/services/base.js +23 -0
- package/build/services/bodyparser.d.ts +2 -0
- package/build/services/bodyparser.js +12 -0
- package/build/services/config.d.ts +3 -0
- package/build/services/config.js +12 -0
- package/build/services/drive.d.ts +3 -0
- package/build/services/drive.js +12 -0
- package/build/services/encryption.d.ts +3 -0
- package/build/services/encryption.js +12 -0
- package/build/services/event.d.ts +3 -0
- package/build/services/event.js +12 -0
- package/build/services/hash.d.ts +3 -0
- package/build/services/hash.js +12 -0
- package/build/services/healthChecks.d.ts +3 -0
- package/build/services/healthChecks.js +12 -0
- package/build/services/httpContext.d.ts +3 -0
- package/build/services/httpContext.js +12 -0
- package/build/services/route.d.ts +3 -0
- package/build/services/route.js +12 -0
- package/build/services/validator.d.ts +3 -0
- package/build/services/validator.js +12 -0
- package/package.json +19 -16
package/README.md
CHANGED
|
@@ -5,73 +5,9 @@
|
|
|
5
5
|
<br />
|
|
6
6
|
<hr>
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
<h3>
|
|
10
|
-
<a href="https://www.patreon.com/adonisframework">
|
|
11
|
-
Business Sponsors
|
|
12
|
-
</a>
|
|
13
|
-
</h3>
|
|
14
|
-
|
|
15
|
-
<a href="https://cleavr.io/adonis/?utm_source=adonisjs" title="Cleaver">
|
|
16
|
-
<img src="assets/cleavr.png" width="100px">
|
|
17
|
-
</a>
|
|
18
|
-
|
|
19
|
-
<a href="https://ably.com/?utm_source=adonisjs" title="Build realtime features you can trust to deliver at scale">
|
|
20
|
-
<img src="assets/ably.jpeg" width="100px">
|
|
21
|
-
</a>
|
|
22
|
-
|
|
23
|
-
<a href="https://fossunited.org/?utm_source=adonisjs">
|
|
24
|
-
<img src="assets/foss.png" width="100px">
|
|
25
|
-
</a>
|
|
26
|
-
|
|
27
|
-
</div>
|
|
28
|
-
|
|
29
|
-
<br />
|
|
30
|
-
<hr>
|
|
31
|
-
|
|
32
|
-
<div align="center">
|
|
33
|
-
<h3>
|
|
34
|
-
<a href="https://www.patreon.com/adonisframework">
|
|
35
|
-
Patreon Supporters
|
|
36
|
-
</a>
|
|
37
|
-
</h3>
|
|
38
|
-
|
|
39
|
-
<a title="Bastien Crettenand">
|
|
40
|
-
<img src="assets/bastien-crettenand.png" width="100px">
|
|
41
|
-
</a>
|
|
42
|
-
|
|
43
|
-
<a href="https://github.com/olaoluwa-98" title="Emmanuel Awotunde">
|
|
44
|
-
<img src="assets/emmanuel.png" width="100px">
|
|
45
|
-
</a>
|
|
46
|
-
|
|
47
|
-
<a href="https://mcsneaky.ap3k.pro/?utm_source=adonisjs" title="McSneaky">
|
|
48
|
-
<img src="assets/mc-sneaky.png" width="100px">
|
|
49
|
-
</a>
|
|
50
|
-
|
|
51
|
-
<a href="https://appmasters.io?utm_source=adonisjs" title="Expert in software development for small and medium sized companies">
|
|
52
|
-
<img src="assets/appmasters.jpg" width="100px">
|
|
53
|
-
</a>
|
|
54
|
-
|
|
55
|
-
<a href="http://repzo.com?utm_source=adonisjs" title="Smartest CRM / SFA for your field teams powered by Blockchain">
|
|
56
|
-
<img src="assets/repzo.jpeg" width="100px">
|
|
57
|
-
</a>
|
|
58
|
-
|
|
59
|
-
<a href="https://doconchain.com/?utm_source=adonisjs.com" title="Boost your business today with doconchain.com">
|
|
60
|
-
<img src="assets/doconchain.jpeg" width="100px">
|
|
61
|
-
</a>
|
|
62
|
-
|
|
63
|
-
<a href="https://bitkidd.dev/?utm_source=adonisjs.com" title="Chirill Ceban">
|
|
64
|
-
<img src="assets/bitkidd.jpeg" width="100px">
|
|
65
|
-
</a>
|
|
66
|
-
|
|
67
|
-
<a href="https://github.com/usagar80/?utm_source=adonisjs.com" title="Sagar Upadhyay">
|
|
68
|
-
<img src="assets/usagar80.jpeg" width="100px">
|
|
69
|
-
</a>
|
|
70
|
-
</div>
|
|
8
|
+

|
|
71
9
|
|
|
72
10
|
<hr>
|
|
73
|
-
|
|
74
|
-
|
|
75
11
|
<br />
|
|
76
12
|
|
|
77
13
|
<div align="center">
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* file that was distributed with this source code.
|
|
9
9
|
*/
|
|
10
10
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
+
const base_1 = require("../services/base");
|
|
11
12
|
/**
|
|
12
13
|
* The application provider that sticks all core components
|
|
13
14
|
* to the container.
|
|
@@ -178,6 +179,7 @@ class AppProvider {
|
|
|
178
179
|
* Registering all required bindings to the container
|
|
179
180
|
*/
|
|
180
181
|
register() {
|
|
182
|
+
(0, base_1.setApp)(this.app);
|
|
181
183
|
this.registerHttpExceptionHandler();
|
|
182
184
|
this.registerHealthCheck();
|
|
183
185
|
this.registerAssetsManager();
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference path="../adonis-typings/container.d.ts" />
|
|
2
|
+
/// <reference types="@adonisjs/application/build/adonis-typings/application" />
|
|
3
|
+
/// <reference types="@adonisjs/drive/build/adonis-typings/container" />
|
|
4
|
+
/// <reference types="@adonisjs/http-server/build/adonis-typings/container" />
|
|
5
|
+
/// <reference types="@adonisjs/events/build/adonis-typings/container" />
|
|
6
|
+
/// <reference types="@adonisjs/hash/build/adonis-typings/container" />
|
|
7
|
+
/// <reference types="@adonisjs/encryption/build/adonis-typings/container" />
|
|
8
|
+
/// <reference types="@adonisjs/validator/build/adonis-typings/container" />
|
|
9
|
+
/// <reference types="@adonisjs/repl/build/adonis-typings/container" />
|
|
10
|
+
/// <reference types="@japa/preset-adonis/build/adonis-typings/container" />
|
|
11
|
+
declare const _default: import("@ioc:Adonis/Core/Application").ApplicationContract;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)();
|
|
@@ -0,0 +1,23 @@
|
|
|
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.getApp = exports.setApp = void 0;
|
|
12
|
+
let appInstance;
|
|
13
|
+
function setApp(app) {
|
|
14
|
+
appInstance = app;
|
|
15
|
+
}
|
|
16
|
+
exports.setApp = setApp;
|
|
17
|
+
function getApp() {
|
|
18
|
+
if (!appInstance) {
|
|
19
|
+
throw new Error('Cannot get AdonisJS application instance. Make sure to boot the application');
|
|
20
|
+
}
|
|
21
|
+
return appInstance;
|
|
22
|
+
}
|
|
23
|
+
exports.getApp = getApp;
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/BodyParser');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Config');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Drive');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Encryption');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Event');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Hash');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/HealthCheck');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/HttpContext');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Route');
|
|
@@ -0,0 +1,12 @@
|
|
|
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
|
+
const base_1 = require("./base");
|
|
12
|
+
exports.default = (0, base_1.getApp)().container.resolveBinding('Adonis/Core/Validator');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adonisjs/core",
|
|
3
|
-
"version": "5.8.
|
|
3
|
+
"version": "5.8.5",
|
|
4
4
|
"description": "Core of AdonisJS",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"build/commands",
|
|
29
29
|
"build/templates",
|
|
30
30
|
"build/providers",
|
|
31
|
+
"build/services",
|
|
31
32
|
"build/src",
|
|
32
33
|
"build/instructions.js",
|
|
33
34
|
"build/config.js",
|
|
@@ -67,39 +68,41 @@
|
|
|
67
68
|
},
|
|
68
69
|
"homepage": "https://github.com/adonisjs/core#readme",
|
|
69
70
|
"devDependencies": {
|
|
70
|
-
"@adonisjs/assembler": "^5.
|
|
71
|
+
"@adonisjs/assembler": "^5.8.0",
|
|
72
|
+
"@adonisjs/fold": "^8.2.0",
|
|
73
|
+
"@adonisjs/logger": "^4.1.4",
|
|
71
74
|
"@adonisjs/mrm-preset": "^5.0.3",
|
|
72
75
|
"@adonisjs/repl": "^3.1.10",
|
|
73
76
|
"@adonisjs/require-ts": "^2.0.11",
|
|
74
77
|
"@adonisjs/sink": "^5.3.1",
|
|
75
78
|
"@japa/assert": "^1.3.4",
|
|
76
|
-
"@japa/preset-adonis": "^1.0
|
|
79
|
+
"@japa/preset-adonis": "^1.1.0",
|
|
77
80
|
"@japa/run-failed-tests": "^1.0.7",
|
|
78
|
-
"@japa/runner": "^2.0.
|
|
81
|
+
"@japa/runner": "^2.0.9",
|
|
79
82
|
"@japa/spec-reporter": "^1.1.12",
|
|
80
83
|
"@poppinss/dev-utils": "^2.0.3",
|
|
81
|
-
"@types/node": "^
|
|
84
|
+
"@types/node": "^18.0.6",
|
|
82
85
|
"@types/supertest": "^2.0.12",
|
|
83
86
|
"clear-module": "^4.1.2",
|
|
84
|
-
"commitizen": "^4.2.
|
|
87
|
+
"commitizen": "^4.2.5",
|
|
85
88
|
"copyfiles": "^2.4.1",
|
|
86
89
|
"cz-conventional-changelog": "^3.3.0",
|
|
87
90
|
"del-cli": "^4.0.1",
|
|
88
|
-
"eslint": "^8.
|
|
91
|
+
"eslint": "^8.20.0",
|
|
89
92
|
"eslint-config-prettier": "^8.5.0",
|
|
90
93
|
"eslint-plugin-adonis": "^2.1.0",
|
|
91
|
-
"eslint-plugin-prettier": "^4.
|
|
94
|
+
"eslint-plugin-prettier": "^4.2.1",
|
|
92
95
|
"etag": "^1.8.1",
|
|
93
96
|
"github-label-sync": "^2.2.0",
|
|
94
97
|
"husky": "^8.0.1",
|
|
95
98
|
"mrm": "^4.0.0",
|
|
96
|
-
"np": "^7.6.
|
|
97
|
-
"prettier": "^2.
|
|
99
|
+
"np": "^7.6.2",
|
|
100
|
+
"prettier": "^2.7.1",
|
|
98
101
|
"reflect-metadata": "^0.1.13",
|
|
99
102
|
"strip-ansi": "^6.0.1",
|
|
100
|
-
"supertest": "^6.2.
|
|
103
|
+
"supertest": "^6.2.4",
|
|
101
104
|
"test-console": "^2.0.0",
|
|
102
|
-
"typescript": "^4.
|
|
105
|
+
"typescript": "^4.7.4",
|
|
103
106
|
"youch": "^3.2.0",
|
|
104
107
|
"youch-terminal": "^2.1.4"
|
|
105
108
|
},
|
|
@@ -123,20 +126,20 @@
|
|
|
123
126
|
},
|
|
124
127
|
"dependencies": {
|
|
125
128
|
"@adonisjs/ace": "^11.3.0",
|
|
126
|
-
"@adonisjs/application": "^5.2.
|
|
127
|
-
"@adonisjs/bodyparser": "^8.1.
|
|
129
|
+
"@adonisjs/application": "^5.2.5",
|
|
130
|
+
"@adonisjs/bodyparser": "^8.1.6",
|
|
128
131
|
"@adonisjs/drive": "^2.2.0",
|
|
129
132
|
"@adonisjs/encryption": "^4.0.8",
|
|
130
133
|
"@adonisjs/events": "^7.2.1",
|
|
131
134
|
"@adonisjs/hash": "^7.1.1",
|
|
132
|
-
"@adonisjs/http-server": "^5.
|
|
135
|
+
"@adonisjs/http-server": "^5.11.0",
|
|
133
136
|
"@adonisjs/validator": "^12.3.2",
|
|
134
137
|
"@poppinss/cliui": "^3.0.2",
|
|
135
138
|
"@poppinss/manager": "^5.0.2",
|
|
136
139
|
"@poppinss/utils": "^4.0.4",
|
|
137
140
|
"fs-extra": "^10.1.0",
|
|
138
141
|
"macroable": "^7.0.1",
|
|
139
|
-
"memfs": "^3.4.
|
|
142
|
+
"memfs": "^3.4.7",
|
|
140
143
|
"serve-static": "^1.15.0",
|
|
141
144
|
"stringify-attributes": "^2.0.0"
|
|
142
145
|
},
|