@h3ravel/http 11.4.1 → 11.4.3

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
@@ -18306,8 +18306,11 @@ var LogRequests = class extends Middleware {
18306
18306
  */
18307
18307
  var HttpServiceProvider = class {
18308
18308
  static priority = 998;
18309
- register(app) {
18309
+ registeredCommands;
18310
+ constructor(app) {
18310
18311
  this.app = app;
18312
+ }
18313
+ register() {
18311
18314
  /** Bind HTTP APP to the service container */
18312
18315
  this.app.singleton("http.app", () => {
18313
18316
  return new h3.H3();
package/dist/index.d.cts CHANGED
@@ -1,9 +1,9 @@
1
1
  /// <reference path="./app.globals.d.ts" />
2
2
  import { Command } from "@h3ravel/musket";
3
3
  import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
4
- import { Application, ServiceProvider } from "@h3ravel/core";
5
4
  import { EventHandlerRequest, H3Event } from "h3";
6
5
  import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
6
+ import { Application } from "@h3ravel/core";
7
7
 
8
8
  //#region src/Commands/FireCommand.d.ts
9
9
  declare class FireCommand extends Command {
@@ -46,11 +46,11 @@ declare class LogRequests extends Middleware {
46
46
  * Auto-Registered
47
47
  */
48
48
  declare class HttpServiceProvider {
49
+ private app;
49
50
  static priority: number;
50
- register(this: {
51
- app: Application;
52
- registeredCommands: ServiceProvider['registeredCommands'];
53
- }, app: Application): void;
51
+ registeredCommands?: (new (app: any, kernel: any) => any)[];
52
+ constructor(app: any);
53
+ register(): void;
54
54
  boot(): void;
55
55
  }
56
56
  //#endregion
package/dist/index.d.ts CHANGED
@@ -2,8 +2,8 @@
2
2
  import { Command } from "@h3ravel/musket";
3
3
  import { DotNestedKeys, DotNestedValue, HttpContext, HttpContext as HttpContext$1, IMiddleware, IRequest, IResponse } from "@h3ravel/shared";
4
4
  import { EventHandlerRequest, H3Event } from "h3";
5
- import { Application, ServiceProvider } from "@h3ravel/core";
6
5
  import { ResponseHeaderMap, TypedHeaders } from "fetchdts";
6
+ import { Application } from "@h3ravel/core";
7
7
 
8
8
  //#region src/Commands/FireCommand.d.ts
9
9
  declare class FireCommand extends Command {
@@ -46,11 +46,11 @@ declare class LogRequests extends Middleware {
46
46
  * Auto-Registered
47
47
  */
48
48
  declare class HttpServiceProvider {
49
+ private app;
49
50
  static priority: number;
50
- register(this: {
51
- app: Application;
52
- registeredCommands: ServiceProvider['registeredCommands'];
53
- }, app: Application): void;
51
+ registeredCommands?: (new (app: any, kernel: any) => any)[];
52
+ constructor(app: any);
53
+ register(): void;
54
54
  boot(): void;
55
55
  }
56
56
  //#endregion
package/dist/index.js CHANGED
@@ -18287,8 +18287,11 @@ var LogRequests = class extends Middleware {
18287
18287
  */
18288
18288
  var HttpServiceProvider = class {
18289
18289
  static priority = 998;
18290
- register(app) {
18290
+ registeredCommands;
18291
+ constructor(app) {
18291
18292
  this.app = app;
18293
+ }
18294
+ register() {
18292
18295
  /** Bind HTTP APP to the service container */
18293
18296
  this.app.singleton("http.app", () => {
18294
18297
  return new H3();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@h3ravel/http",
3
- "version": "11.4.1",
3
+ "version": "11.4.3",
4
4
  "description": "HTTP kernel, middleware pipeline, request/response classes for H3ravel.",
5
5
  "h3ravel": {
6
6
  "providers": [
@@ -41,14 +41,14 @@
41
41
  "laravel"
42
42
  ],
43
43
  "dependencies": {
44
- "@h3ravel/musket": "^0.2.4",
44
+ "@h3ravel/musket": "^0.3.0",
45
45
  "h3": "^2.0.0-beta.4",
46
46
  "srvx": "^0.8.2",
47
- "@h3ravel/shared": "^0.22.3",
48
- "@h3ravel/support": "^0.14.2"
47
+ "@h3ravel/shared": "^0.24.0",
48
+ "@h3ravel/support": "^0.14.3"
49
49
  },
50
50
  "peerDependencies": {
51
- "@h3ravel/core": "^1.18.1"
51
+ "@h3ravel/core": "^1.19.2"
52
52
  },
53
53
  "devDependencies": {
54
54
  "typescript": "^5.4.0"