@h3ravel/core 1.20.0 → 1.21.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/dist/index.cjs
CHANGED
|
@@ -23,25 +23,20 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
23
23
|
//#endregion
|
|
24
24
|
require("reflect-metadata");
|
|
25
25
|
let __h3ravel_shared = require("@h3ravel/shared");
|
|
26
|
-
__h3ravel_shared = __toESM(__h3ravel_shared);
|
|
27
26
|
let __h3ravel_support = require("@h3ravel/support");
|
|
28
|
-
__h3ravel_support = __toESM(__h3ravel_support);
|
|
29
27
|
let fast_glob = require("fast-glob");
|
|
30
28
|
fast_glob = __toESM(fast_glob);
|
|
31
29
|
let node_path = require("node:path");
|
|
32
30
|
node_path = __toESM(node_path);
|
|
33
31
|
let detect_port = require("detect-port");
|
|
34
|
-
detect_port = __toESM(detect_port);
|
|
35
32
|
let dotenv = require("dotenv");
|
|
36
33
|
dotenv = __toESM(dotenv);
|
|
37
34
|
let dotenv_expand = require("dotenv-expand");
|
|
38
35
|
dotenv_expand = __toESM(dotenv_expand);
|
|
39
36
|
let node_fs_promises = require("node:fs/promises");
|
|
40
|
-
node_fs_promises = __toESM(node_fs_promises);
|
|
41
37
|
let semver = require("semver");
|
|
42
38
|
semver = __toESM(semver);
|
|
43
39
|
let __h3ravel_http = require("@h3ravel/http");
|
|
44
|
-
__h3ravel_http = __toESM(__h3ravel_http);
|
|
45
40
|
|
|
46
41
|
//#region src/Container.ts
|
|
47
42
|
var Container = class {
|
|
@@ -694,7 +689,7 @@ const h3ravel = async (providers = [], basePath = process.cwd(), config = {
|
|
|
694
689
|
app.context = async (event) => {
|
|
695
690
|
if (event._h3ravelContext) return event._h3ravelContext;
|
|
696
691
|
__h3ravel_http.Request.enableHttpMethodParameterOverride();
|
|
697
|
-
const ctx =
|
|
692
|
+
const ctx = __h3ravel_http.HttpContext.init({
|
|
698
693
|
app,
|
|
699
694
|
request: await __h3ravel_http.Request.create(event, app),
|
|
700
695
|
response: new __h3ravel_http.Response(event, app)
|
package/dist/index.d.cts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference path="./app.globals.d.ts" />
|
|
2
2
|
import { Bindings, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IServiceProvider, PathLoader, UseKey } from "@h3ravel/shared";
|
|
3
3
|
import { H3, H3Event } from "h3";
|
|
4
|
+
import { HttpContext as HttpContext$1 } from "@h3ravel/http";
|
|
4
5
|
|
|
5
6
|
//#region src/Contracts/ServiceProviderConstructor.d.ts
|
|
6
7
|
type ServiceProviderConstructor = (new (app: Application) => ServiceProvider) & IServiceProvider;
|
|
@@ -317,7 +318,7 @@ config?: EntryConfig,
|
|
|
317
318
|
/**
|
|
318
319
|
* final middleware function to call once the server is fired up
|
|
319
320
|
*/
|
|
320
|
-
middleware?: (ctx: HttpContext) => Promise<unknown>) => Promise<Application>;
|
|
321
|
+
middleware?: (ctx: HttpContext$1) => Promise<unknown>) => Promise<Application>;
|
|
321
322
|
//#endregion
|
|
322
323
|
//#region src/Http/Kernel.d.ts
|
|
323
324
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/// <reference path="./app.globals.d.ts" />
|
|
2
2
|
import "reflect-metadata";
|
|
3
3
|
import { Bindings, HttpContext, IApplication, IContainer, IController, IMiddleware, IPathName, IServiceProvider, PathLoader, UseKey } from "@h3ravel/shared";
|
|
4
|
+
import { HttpContext as HttpContext$1 } from "@h3ravel/http";
|
|
4
5
|
import { H3, H3Event } from "h3";
|
|
5
6
|
|
|
6
7
|
//#region src/Contracts/ServiceProviderConstructor.d.ts
|
|
@@ -318,7 +319,7 @@ config?: EntryConfig,
|
|
|
318
319
|
/**
|
|
319
320
|
* final middleware function to call once the server is fired up
|
|
320
321
|
*/
|
|
321
|
-
middleware?: (ctx: HttpContext) => Promise<unknown>) => Promise<Application>;
|
|
322
|
+
middleware?: (ctx: HttpContext$1) => Promise<unknown>) => Promise<Application>;
|
|
322
323
|
//#endregion
|
|
323
324
|
//#region src/Http/Kernel.d.ts
|
|
324
325
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import "reflect-metadata";
|
|
2
|
-
import { FileSystem,
|
|
2
|
+
import { FileSystem, Logger, PathLoader } from "@h3ravel/shared";
|
|
3
3
|
import { InvalidArgumentException, Str, dd, dump, str } from "@h3ravel/support";
|
|
4
4
|
import fg from "fast-glob";
|
|
5
5
|
import path from "node:path";
|
|
@@ -8,7 +8,7 @@ import dotenv from "dotenv";
|
|
|
8
8
|
import dotenvExpand from "dotenv-expand";
|
|
9
9
|
import { readFile } from "node:fs/promises";
|
|
10
10
|
import semver from "semver";
|
|
11
|
-
import { LogRequests, Request, Response } from "@h3ravel/http";
|
|
11
|
+
import { HttpContext as HttpContext$1, LogRequests, Request, Response } from "@h3ravel/http";
|
|
12
12
|
|
|
13
13
|
//#region src/Container.ts
|
|
14
14
|
var Container = class {
|
|
@@ -661,7 +661,7 @@ const h3ravel = async (providers = [], basePath = process.cwd(), config = {
|
|
|
661
661
|
app.context = async (event) => {
|
|
662
662
|
if (event._h3ravelContext) return event._h3ravelContext;
|
|
663
663
|
Request.enableHttpMethodParameterOverride();
|
|
664
|
-
const ctx = HttpContext.init({
|
|
664
|
+
const ctx = HttpContext$1.init({
|
|
665
665
|
app,
|
|
666
666
|
request: await Request.create(event, app),
|
|
667
667
|
response: new Response(event, app)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.21.1",
|
|
4
4
|
"description": "Core application container, lifecycle management and service providers for H3ravel.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -54,8 +54,8 @@
|
|
|
54
54
|
"semver": "^7.7.2",
|
|
55
55
|
"srvx": "^0.8.7",
|
|
56
56
|
"tslib": "^2.8.1",
|
|
57
|
-
"@h3ravel/
|
|
58
|
-
"@h3ravel/
|
|
57
|
+
"@h3ravel/shared": "^0.27.1",
|
|
58
|
+
"@h3ravel/support": "^0.15.1"
|
|
59
59
|
},
|
|
60
60
|
"devDependencies": {
|
|
61
61
|
"@types/semver": "^7.7.1",
|