New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@adonisjs/http-server

Package Overview
Dependencies
Maintainers
2
Versions
137
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 5.10.0 to 5.10.1

4

build/adonis-typings/context.d.ts

@@ -34,3 +34,5 @@ /**

profiler: ProfilerRowContract;
route?: RouteNode;
route?: RouteNode & {
params: string[];
};
routeKey: string;

@@ -37,0 +39,0 @@ params: Record<string, any>;

@@ -71,3 +71,5 @@ /**

*/
route?: RouteNode;
route?: RouteNode & {
params: string[];
};
/**

@@ -74,0 +76,0 @@ * Required by macroable

@@ -10,2 +10,5 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });

@@ -17,2 +20,3 @@ exports.HttpContext = void 0;

const macroable_1 = require("macroable");
const matchit_1 = __importDefault(require("@poppinss/matchit"));
const utils_1 = require("@poppinss/utils");

@@ -154,2 +158,6 @@ const http_1 = require("http");

meta: {},
params: matchit_1.default
.parse(routePattern, {})
.filter((token) => [1, 3].includes(token.type))
.map((token) => token.val),
};

@@ -159,3 +167,3 @@ /*

*/
ctx.routeKey = `${request.method()}-${ctx.route.pattern}`;
ctx.routeKey = `${request.method() || 'GET'}-${ctx.route.pattern}`;
/*

@@ -162,0 +170,0 @@ * Attaching params to the ctx

{
"name": "@adonisjs/http-server",
"version": "5.10.0",
"version": "5.10.1",
"description": "AdonisJS HTTP server with support packed with Routing and Cookies",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc