🚨 Latest Research:Tanstack npm Packages Compromised in Ongoing Mini Shai-Hulud Supply-Chain Attack.Learn More
Socket
Book a DemoSign in
Socket

@adonisjs/http-server

Package Overview
Dependencies
Maintainers
3
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adonisjs/http-server - npm Package Compare versions

Comparing version
8.1.1
to
8.1.2
build/define_config-BRmlbWlB.js

Sorry, the diff of this file is too big to display

+3
-3
import "../utils-BjSHKI3s.js";
import { _ as Qs, c as HttpRequest, i as HttpResponse, n as Server, r as HttpContext, s as Router, t as defineConfig } from "../define_config-CfKSwwjk.js";
import { _ as Qs, c as HttpRequest, i as HttpResponse, n as Server, r as HttpContext, s as Router, t as defineConfig } from "../define_config-BRmlbWlB.js";
import { t as createURL } from "../helpers-C_2HouOe.js";

@@ -8,3 +8,3 @@ import { parseRoute } from "../src/helpers.js";

import { Socket } from "node:net";
import proxyaddr from "proxy-addr";
import proxyAddr from "proxy-addr";
import { safeStringify } from "@poppinss/utils/json";

@@ -64,3 +64,3 @@ import { AppFactory } from "@adonisjs/application/factories";

allowMethodSpoofing: false,
trustProxy: proxyaddr.compile("loopback"),
trustProxy: proxyAddr.compile("loopback"),
subdomainOffset: 2,

@@ -67,0 +67,0 @@ generateRequestId: false,

import { a as RouteGroup, c as Route, m as canWriteResponseBody, o as RouteResource, p as tracing_channels_exports, s as BriskRoute, t as parseRange } from "./utils-BjSHKI3s.js";
import { _ as Qs, a as CookieSerializer, c as HttpRequest, d as Redirect, f as E_CANNOT_LOOKUP_ROUTE, g as errors_exports, h as E_ROUTE_NOT_FOUND, i as HttpResponse, l as CookieParser, m as E_HTTP_REQUEST_ABORTED, n as Server, o as ResponseStatus, p as E_HTTP_EXCEPTION, r as HttpContext, s as Router, t as defineConfig, u as CookieClient } from "./define_config-CfKSwwjk.js";
import { _ as Qs, a as CookieSerializer, c as HttpRequest, d as Redirect, f as E_CANNOT_LOOKUP_ROUTE, g as errors_exports, h as E_ROUTE_NOT_FOUND, i as HttpResponse, l as CookieParser, m as E_HTTP_REQUEST_ABORTED, n as Server, o as ResponseStatus, p as E_HTTP_EXCEPTION, r as HttpContext, s as Router, t as defineConfig, u as CookieClient } from "./define_config-BRmlbWlB.js";
import "./helpers-C_2HouOe.js";

@@ -4,0 +4,0 @@ import "./types-AUwURgIL.js";

@@ -139,3 +139,3 @@ import type { Logger } from '@adonisjs/logger';

*/
handle(req: IncomingMessage, res: ServerResponse): Promise<any>;
handle(req: IncomingMessage, res: ServerResponse): Promise<any> | undefined;
}

@@ -0,1 +1,2 @@

import type { IncomingMessage, ServerResponse } from 'node:http';
import type { Constructor } from '@poppinss/utils/types';

@@ -118,2 +119,11 @@ import type { ErrorHandler, FinalHandler } from '@poppinss/middleware/types';

timeout?: number;
/**
* A callback invoked when the request URI contains malformed
* percent-encoded sequences (e.g. `%C0%80`). The callback
* receives the raw Node.js request and response objects and
* is responsible for sending a response.
*
* Defaults to a plain-text `400 Bad Request` response.
*/
onBadUrl: (req: IncomingMessage, res: ServerResponse) => void;
};
{
"name": "@adonisjs/http-server",
"version": "8.1.1",
"version": "8.1.2",
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",

@@ -5,0 +5,0 @@ "main": "build/index.js",

Sorry, the diff of this file is too big to display