@adonisjs/http-server
Advanced tools
Sorry, the diff of this file is too big to display
| 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, |
+1
-1
| 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; | ||
| }; |
+1
-1
| { | ||
| "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
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
310671
0.24%8697
0.28%