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 3.0.2 to 3.0.3

6

build/src/Exceptions/HttpException.d.ts

@@ -11,3 +11,2 @@ /**

import { Exception } from '@poppinss/utils';
import { HttpContextContract } from '@ioc:Adonis/Core/HttpContext';
/**

@@ -22,7 +21,2 @@ * Custom exception to abort requests as one liners

static invoke(body: any, status: number, code?: string): HttpException;
/**
* Handle itself by making the response. This only works when using the
* base exception handler shipped by AdonisJs
*/
handle(error: HttpException, ctx: HttpContextContract): void;
}

@@ -34,10 +34,3 @@ "use strict";

}
/**
* Handle itself by making the response. This only works when using the
* base exception handler shipped by AdonisJs
*/
handle(error, ctx) {
ctx.response.status(error.status).send(error.body);
}
}
exports.HttpException = HttpException;

11

build/src/Response/index.js

@@ -32,2 +32,11 @@ "use strict";

const exceptions_json_1 = require("../../exceptions.json");
class AbortException extends HttpException_1.HttpException {
/**
* Handle itself by making the response. This only works when using the
* base exception handler shipped by AdonisJs
*/
handle(error, ctx) {
ctx.response.status(error.status).send(error.body);
}
}
/**

@@ -669,3 +678,3 @@ * The response is a wrapper over [ServerResponse](https://nodejs.org/api/http.html#http_class_http_serverresponse)

abort(body, status) {
throw HttpException_1.HttpException.invoke(body, status || 400);
throw AbortException.invoke(body, status || 400);
}

@@ -672,0 +681,0 @@ /**

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

@@ -48,3 +48,3 @@ "main": "build/providers/HttpServerProvider.js",

"@types/ms": "^0.7.31",
"@types/node": "^14.0.27",
"@types/node": "^14.6.1",
"@types/pluralize": "0.0.29",

@@ -54,24 +54,24 @@ "@types/proxy-addr": "^2.0.0",

"@types/supertest": "^2.0.10",
"autocannon": "^5.1.0",
"commitizen": "^4.1.2",
"cz-conventional-changelog": "^3.2.0",
"autocannon": "^6.1.0",
"commitizen": "^4.2.1",
"cz-conventional-changelog": "^3.3.0",
"del-cli": "^3.0.1",
"doctoc": "^1.4.0",
"eslint": "^7.6.0",
"eslint": "^7.7.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-adonis": "^1.0.14",
"eslint-plugin-prettier": "^3.1.4",
"fastify": "^3.1.1",
"fastify": "^3.3.0",
"github-label-sync": "^2.0.0",
"http-status-codes": "^1.4.0",
"http-status-codes": "^2.1.2",
"husky": "^4.2.5",
"japa": "^3.1.1",
"mrm": "^2.3.3",
"np": "^6.3.2",
"npm-audit-html": "^1.4.1",
"mrm": "^2.3.5",
"np": "^6.4.0",
"npm-audit-html": "^1.4.3",
"pem": "^1.14.4",
"prettier": "^2.0.5",
"prettier": "^2.1.1",
"reflect-metadata": "^0.1.13",
"supertest": "^4.0.2",
"ts-node": "^8.10.2",
"ts-node": "^9.0.0",
"typescript": "^3.9.7"

@@ -108,3 +108,3 @@ },

"dependencies": {
"@poppinss/utils": "^2.5.2",
"@poppinss/utils": "^2.5.5",
"accepts": "^1.3.7",

@@ -111,0 +111,0 @@ "co-compose": "^6.0.1",

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