@h3ravel/router 1.12.0 → 1.12.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 +1 -1
- package/dist/index.js +3 -3
- package/package.json +5 -5
package/dist/index.cjs
CHANGED
|
@@ -251,7 +251,7 @@ var Router = class {
|
|
|
251
251
|
this.app.context ??= async (event$1) => {
|
|
252
252
|
if (event$1._h3ravelContext) return event$1._h3ravelContext;
|
|
253
253
|
__h3ravel_http.Request.enableHttpMethodParameterOverride();
|
|
254
|
-
const ctx =
|
|
254
|
+
const ctx = __h3ravel_http.HttpContext.init({
|
|
255
255
|
app: this.app,
|
|
256
256
|
request: await __h3ravel_http.Request.create(event$1, this.app),
|
|
257
257
|
response: new __h3ravel_http.Response(event$1, this.app)
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Logger } from "@h3ravel/shared";
|
|
2
2
|
import { Command } from "@h3ravel/musket";
|
|
3
3
|
import { readFile, readdir, stat } from "node:fs/promises";
|
|
4
4
|
import { Container, Kernel, ServiceProvider } from "@h3ravel/core";
|
|
@@ -7,7 +7,7 @@ import path, { join } from "node:path";
|
|
|
7
7
|
import { serveStatic } from "h3";
|
|
8
8
|
import { statSync } from "node:fs";
|
|
9
9
|
import "reflect-metadata";
|
|
10
|
-
import { Request, Response } from "@h3ravel/http";
|
|
10
|
+
import { HttpContext as HttpContext$1, Request, Response } from "@h3ravel/http";
|
|
11
11
|
import { Model } from "@h3ravel/database";
|
|
12
12
|
|
|
13
13
|
//#region src/Commands/RouteListCommand.ts
|
|
@@ -218,7 +218,7 @@ var Router = class {
|
|
|
218
218
|
this.app.context ??= async (event$1) => {
|
|
219
219
|
if (event$1._h3ravelContext) return event$1._h3ravelContext;
|
|
220
220
|
Request.enableHttpMethodParameterOverride();
|
|
221
|
-
const ctx = HttpContext.init({
|
|
221
|
+
const ctx = HttpContext$1.init({
|
|
222
222
|
app: this.app,
|
|
223
223
|
request: await Request.create(event$1, this.app),
|
|
224
224
|
response: new Response(event$1, this.app)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/router",
|
|
3
|
-
"version": "1.12.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "Route facade, decorators and controller system for H3ravel.",
|
|
5
5
|
"h3ravel": {
|
|
6
6
|
"providers": [
|
|
@@ -46,10 +46,10 @@
|
|
|
46
46
|
"h3": "2.0.1-rc.5",
|
|
47
47
|
"reflect-metadata": "^0.2.2",
|
|
48
48
|
"@h3ravel/core": "^1.20.0",
|
|
49
|
-
"@h3ravel/
|
|
50
|
-
"@h3ravel/http": "^11.
|
|
51
|
-
"@h3ravel/
|
|
52
|
-
"@h3ravel/
|
|
49
|
+
"@h3ravel/shared": "^0.26.0",
|
|
50
|
+
"@h3ravel/http": "^11.6.0",
|
|
51
|
+
"@h3ravel/support": "^0.14.4",
|
|
52
|
+
"@h3ravel/database": "^11.4.4"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"barrel": "barrelsby --directory src --delete --singleQuotes",
|