@h3ravel/http 11.3.5 → 11.4.0
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.
|
@@ -30,4 +30,4 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
30
30
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
31
31
|
|
|
32
32
|
//#endregion
|
|
33
|
-
export {
|
|
33
|
+
export { __toESM as i, __esm as n, __require as r, __commonJS as t };
|
package/dist/index.cjs
CHANGED
|
@@ -35,8 +35,6 @@ let node_buffer = require("node:buffer");
|
|
|
35
35
|
node_buffer = require_chunk.__toESM(node_buffer);
|
|
36
36
|
let h3 = require("h3");
|
|
37
37
|
h3 = require_chunk.__toESM(h3);
|
|
38
|
-
let __h3ravel_core = require("@h3ravel/core");
|
|
39
|
-
__h3ravel_core = require_chunk.__toESM(__h3ravel_core);
|
|
40
38
|
let __h3ravel_support = require("@h3ravel/support");
|
|
41
39
|
__h3ravel_support = require_chunk.__toESM(__h3ravel_support);
|
|
42
40
|
|
|
@@ -18247,21 +18245,23 @@ var FireCommand = class extends __h3ravel_musket.Command {
|
|
|
18247
18245
|
const port = this.option("port");
|
|
18248
18246
|
const host = this.option("host");
|
|
18249
18247
|
const tries = this.option("tries");
|
|
18248
|
+
const verbose = Number(this.option("verbose", 0));
|
|
18250
18249
|
const ENV_VARS = {
|
|
18251
|
-
EXTENDED_DEBUG:
|
|
18250
|
+
EXTENDED_DEBUG: verbose > 0 ? "true" : "false",
|
|
18252
18251
|
CLI_BUILD: "false",
|
|
18253
18252
|
NODE_ENV: "development",
|
|
18254
18253
|
DIST_DIR: outDir,
|
|
18255
18254
|
HOSTNAME: host,
|
|
18256
18255
|
RETRIES: tries,
|
|
18257
18256
|
PORT: port,
|
|
18257
|
+
VERBOSE: verbose,
|
|
18258
18258
|
LOG_LEVEL: [
|
|
18259
18259
|
"silent",
|
|
18260
18260
|
"silent",
|
|
18261
18261
|
"info",
|
|
18262
18262
|
"warn",
|
|
18263
18263
|
"error"
|
|
18264
|
-
][
|
|
18264
|
+
][verbose]
|
|
18265
18265
|
};
|
|
18266
18266
|
await execa(pm, [
|
|
18267
18267
|
"tsdown",
|
|
@@ -18304,9 +18304,10 @@ var LogRequests = class extends Middleware {
|
|
|
18304
18304
|
*
|
|
18305
18305
|
* Auto-Registered
|
|
18306
18306
|
*/
|
|
18307
|
-
var HttpServiceProvider = class
|
|
18307
|
+
var HttpServiceProvider = class {
|
|
18308
18308
|
static priority = 998;
|
|
18309
|
-
register() {
|
|
18309
|
+
register(app) {
|
|
18310
|
+
this.app = app;
|
|
18310
18311
|
/** Bind HTTP APP to the service container */
|
|
18311
18312
|
this.app.singleton("http.app", () => {
|
|
18312
18313
|
return new h3.H3();
|
|
@@ -18314,7 +18315,7 @@ var HttpServiceProvider = class extends __h3ravel_core.ServiceProvider {
|
|
|
18314
18315
|
/** Bind the HTTP server to the service container */
|
|
18315
18316
|
this.app.singleton("http.serve", () => h3.serve);
|
|
18316
18317
|
/** Register Musket Commands */
|
|
18317
|
-
this.
|
|
18318
|
+
this.registeredCommands = [FireCommand];
|
|
18318
18319
|
}
|
|
18319
18320
|
boot() {}
|
|
18320
18321
|
};
|
package/dist/index.d.cts
CHANGED
|
@@ -45,9 +45,12 @@ declare class LogRequests extends Middleware {
|
|
|
45
45
|
*
|
|
46
46
|
* Auto-Registered
|
|
47
47
|
*/
|
|
48
|
-
declare class HttpServiceProvider
|
|
48
|
+
declare class HttpServiceProvider {
|
|
49
49
|
static priority: number;
|
|
50
|
-
register(
|
|
50
|
+
register(this: {
|
|
51
|
+
app: Application;
|
|
52
|
+
registeredCommands: ServiceProvider['registeredCommands'];
|
|
53
|
+
}, app: Application): void;
|
|
51
54
|
boot(): void;
|
|
52
55
|
}
|
|
53
56
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -45,9 +45,12 @@ declare class LogRequests extends Middleware {
|
|
|
45
45
|
*
|
|
46
46
|
* Auto-Registered
|
|
47
47
|
*/
|
|
48
|
-
declare class HttpServiceProvider
|
|
48
|
+
declare class HttpServiceProvider {
|
|
49
49
|
static priority: number;
|
|
50
|
-
register(
|
|
50
|
+
register(this: {
|
|
51
|
+
app: Application;
|
|
52
|
+
registeredCommands: ServiceProvider['registeredCommands'];
|
|
53
|
+
}, app: Application): void;
|
|
51
54
|
boot(): void;
|
|
52
55
|
}
|
|
53
56
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { i as __toESM, r as __require, t as __commonJS } from "./chunk-BLWcukCW.js";
|
|
2
2
|
import { Command } from "@h3ravel/musket";
|
|
3
3
|
import { HttpContext, Logger } from "@h3ravel/shared";
|
|
4
4
|
import { fileURLToPath } from "node:url";
|
|
@@ -17,7 +17,6 @@ import { finished } from "node:stream/promises";
|
|
|
17
17
|
import { Duplex, PassThrough, Readable, Transform, Writable, getDefaultHighWaterMark } from "node:stream";
|
|
18
18
|
import { Buffer as Buffer$1 } from "node:buffer";
|
|
19
19
|
import { H3, getQuery, getRouterParams, html, readBody, redirect, serve } from "h3";
|
|
20
|
-
import { ServiceProvider } from "@h3ravel/core";
|
|
21
20
|
import { safeDot } from "@h3ravel/support";
|
|
22
21
|
|
|
23
22
|
//#region ../../node_modules/.pnpm/is-plain-obj@4.1.0/node_modules/is-plain-obj/index.js
|
|
@@ -18168,7 +18167,7 @@ var require_preferred_pm = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
18168
18167
|
name: "bun",
|
|
18169
18168
|
version: "*"
|
|
18170
18169
|
};
|
|
18171
|
-
const { findUp: findUp$1 } = await import("./find-up-simple-
|
|
18170
|
+
const { findUp: findUp$1 } = await import("./find-up-simple-Cb60ihyu.js");
|
|
18172
18171
|
if (await findUp$1("pnpm-lock.yaml", { cwd: pkgPath })) return {
|
|
18173
18172
|
name: "pnpm",
|
|
18174
18173
|
version: ">=3"
|
|
@@ -18227,21 +18226,23 @@ var FireCommand = class extends Command {
|
|
|
18227
18226
|
const port = this.option("port");
|
|
18228
18227
|
const host = this.option("host");
|
|
18229
18228
|
const tries = this.option("tries");
|
|
18229
|
+
const verbose = Number(this.option("verbose", 0));
|
|
18230
18230
|
const ENV_VARS = {
|
|
18231
|
-
EXTENDED_DEBUG:
|
|
18231
|
+
EXTENDED_DEBUG: verbose > 0 ? "true" : "false",
|
|
18232
18232
|
CLI_BUILD: "false",
|
|
18233
18233
|
NODE_ENV: "development",
|
|
18234
18234
|
DIST_DIR: outDir,
|
|
18235
18235
|
HOSTNAME: host,
|
|
18236
18236
|
RETRIES: tries,
|
|
18237
18237
|
PORT: port,
|
|
18238
|
+
VERBOSE: verbose,
|
|
18238
18239
|
LOG_LEVEL: [
|
|
18239
18240
|
"silent",
|
|
18240
18241
|
"silent",
|
|
18241
18242
|
"info",
|
|
18242
18243
|
"warn",
|
|
18243
18244
|
"error"
|
|
18244
|
-
][
|
|
18245
|
+
][verbose]
|
|
18245
18246
|
};
|
|
18246
18247
|
await execa(pm, [
|
|
18247
18248
|
"tsdown",
|
|
@@ -18284,9 +18285,10 @@ var LogRequests = class extends Middleware {
|
|
|
18284
18285
|
*
|
|
18285
18286
|
* Auto-Registered
|
|
18286
18287
|
*/
|
|
18287
|
-
var HttpServiceProvider = class
|
|
18288
|
+
var HttpServiceProvider = class {
|
|
18288
18289
|
static priority = 998;
|
|
18289
|
-
register() {
|
|
18290
|
+
register(app) {
|
|
18291
|
+
this.app = app;
|
|
18290
18292
|
/** Bind HTTP APP to the service container */
|
|
18291
18293
|
this.app.singleton("http.app", () => {
|
|
18292
18294
|
return new H3();
|
|
@@ -18294,7 +18296,7 @@ var HttpServiceProvider = class extends ServiceProvider {
|
|
|
18294
18296
|
/** Bind the HTTP server to the service container */
|
|
18295
18297
|
this.app.singleton("http.serve", () => serve);
|
|
18296
18298
|
/** Register Musket Commands */
|
|
18297
|
-
this.
|
|
18299
|
+
this.registeredCommands = [FireCommand];
|
|
18298
18300
|
}
|
|
18299
18301
|
boot() {}
|
|
18300
18302
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@h3ravel/http",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.4.0",
|
|
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.
|
|
44
|
+
"@h3ravel/musket": "^0.2.4",
|
|
45
45
|
"h3": "^2.0.0-beta.4",
|
|
46
46
|
"srvx": "^0.8.2",
|
|
47
|
-
"@h3ravel/
|
|
48
|
-
"@h3ravel/
|
|
47
|
+
"@h3ravel/support": "^0.14.2",
|
|
48
|
+
"@h3ravel/shared": "^0.22.3"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
|
-
"@h3ravel/core": "^1.
|
|
51
|
+
"@h3ravel/core": "^1.18.0"
|
|
52
52
|
},
|
|
53
53
|
"devDependencies": {
|
|
54
54
|
"typescript": "^5.4.0"
|