@adonisjs/core 5.8.4 → 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 CHANGED
@@ -5,7 +5,7 @@
5
5
  <br />
6
6
  <hr>
7
7
 
8
- ![](./sponsorkit/sponsors.png)
8
+ ![](https://cdn.jsdelivr.net/gh/thetutlage/static/sponsorkit/sponsors.png)
9
9
 
10
10
  <hr>
11
11
  <br />
@@ -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,3 @@
1
+ import { ApplicationContract } from '@ioc:Adonis/Core/Application';
2
+ export declare function setApp(app: ApplicationContract): void;
3
+ export declare function getApp(): ApplicationContract;
@@ -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,2 @@
1
+ declare const _default: any;
2
+ 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)().container.resolveBinding('Adonis/Core/BodyParser');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/config/build/adonis-typings/config" />
2
+ declare const _default: import("@ioc:Adonis/Core/Config").ConfigContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Config');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/drive/build/adonis-typings/drive" />
2
+ declare const _default: import("@ioc:Adonis/Core/Drive").DriveManagerContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Drive');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/encryption/build/adonis-typings/encryption" />
2
+ declare const _default: import("@ioc:Adonis/Core/Encryption").EncryptionContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Encryption');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/events/build/adonis-typings/events" />
2
+ declare const _default: import("@ioc:Adonis/Core/Event").EmitterContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Event');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/hash/build/adonis-typings/hash" />
2
+ declare const _default: import("@ioc:Adonis/Core/Hash").HashContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Hash');
@@ -0,0 +1,3 @@
1
+ /// <reference path="../adonis-typings/health-check.d.ts" />
2
+ declare const _default: import("@ioc:Adonis/Core/HealthCheck").HealthCheckContract;
3
+ 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)().container.resolveBinding('Adonis/Core/HealthCheck');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/http-server/build/adonis-typings" />
2
+ declare const _default: import("@ioc:Adonis/Core/HttpContext").HttpContextConstructorContract;
3
+ 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)().container.resolveBinding('Adonis/Core/HttpContext');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/http-server/build/adonis-typings" />
2
+ declare const _default: import("@ioc:Adonis/Core/Route").RouterContract;
3
+ 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)().container.resolveBinding('Adonis/Core/Route');
@@ -0,0 +1,3 @@
1
+ /// <reference types="@adonisjs/validator/build/adonis-typings/validator" />
2
+ declare const _default: typeof import("@ioc:Adonis/Core/Validator");
3
+ 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)().container.resolveBinding('Adonis/Core/Validator');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adonisjs/core",
3
- "version": "5.8.4",
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,7 +68,7 @@
67
68
  },
68
69
  "homepage": "https://github.com/adonisjs/core#readme",
69
70
  "devDependencies": {
70
- "@adonisjs/assembler": "^5.6.2",
71
+ "@adonisjs/assembler": "^5.8.0",
71
72
  "@adonisjs/fold": "^8.2.0",
72
73
  "@adonisjs/logger": "^4.1.4",
73
74
  "@adonisjs/mrm-preset": "^5.0.3",
@@ -80,28 +81,28 @@
80
81
  "@japa/runner": "^2.0.9",
81
82
  "@japa/spec-reporter": "^1.1.12",
82
83
  "@poppinss/dev-utils": "^2.0.3",
83
- "@types/node": "^17.0.42",
84
+ "@types/node": "^18.0.6",
84
85
  "@types/supertest": "^2.0.12",
85
86
  "clear-module": "^4.1.2",
86
- "commitizen": "^4.2.4",
87
+ "commitizen": "^4.2.5",
87
88
  "copyfiles": "^2.4.1",
88
89
  "cz-conventional-changelog": "^3.3.0",
89
90
  "del-cli": "^4.0.1",
90
- "eslint": "^8.17.0",
91
+ "eslint": "^8.20.0",
91
92
  "eslint-config-prettier": "^8.5.0",
92
93
  "eslint-plugin-adonis": "^2.1.0",
93
- "eslint-plugin-prettier": "^4.0.0",
94
+ "eslint-plugin-prettier": "^4.2.1",
94
95
  "etag": "^1.8.1",
95
96
  "github-label-sync": "^2.2.0",
96
97
  "husky": "^8.0.1",
97
98
  "mrm": "^4.0.0",
98
- "np": "^7.6.1",
99
- "prettier": "^2.6.2",
99
+ "np": "^7.6.2",
100
+ "prettier": "^2.7.1",
100
101
  "reflect-metadata": "^0.1.13",
101
102
  "strip-ansi": "^6.0.1",
102
- "supertest": "^6.2.3",
103
+ "supertest": "^6.2.4",
103
104
  "test-console": "^2.0.0",
104
- "typescript": "^4.7.3",
105
+ "typescript": "^4.7.4",
105
106
  "youch": "^3.2.0",
106
107
  "youch-terminal": "^2.1.4"
107
108
  },
@@ -131,14 +132,14 @@
131
132
  "@adonisjs/encryption": "^4.0.8",
132
133
  "@adonisjs/events": "^7.2.1",
133
134
  "@adonisjs/hash": "^7.1.1",
134
- "@adonisjs/http-server": "^5.10.1",
135
+ "@adonisjs/http-server": "^5.11.0",
135
136
  "@adonisjs/validator": "^12.3.2",
136
137
  "@poppinss/cliui": "^3.0.2",
137
138
  "@poppinss/manager": "^5.0.2",
138
139
  "@poppinss/utils": "^4.0.4",
139
140
  "fs-extra": "^10.1.0",
140
141
  "macroable": "^7.0.1",
141
- "memfs": "^3.4.4",
142
+ "memfs": "^3.4.7",
142
143
  "serve-static": "^1.15.0",
143
144
  "stringify-attributes": "^2.0.0"
144
145
  },