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

appolo-agent

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

appolo-agent - npm Package Compare versions

Comparing version 6.0.3 to 6.0.4

2

lib/errorHandler.js

@@ -11,3 +11,3 @@ "use strict";

let msg = ErrorHandler.getErrorMessage(err, res.statusCode);
res.send(msg);
res.json(msg);
}

@@ -14,0 +14,0 @@ static getStatusCode(err) {

@@ -16,3 +16,3 @@ import {IResponse} from "./response";

res.send(msg);
res.json(msg);
}

@@ -33,5 +33,5 @@

private static getErrorMessage(e: Error | HttpError, statusCode: number): any {
private static getErrorMessage(e: Error | HttpError, statusCode: number): { message: string, statusCode: number, code?: number, error?: string } {
let dto: any = {
let dto: { message: string, statusCode: number, code?: number, error?: string } = {
statusCode: statusCode,

@@ -38,0 +38,0 @@ message: e.toString()

@@ -7,3 +7,8 @@ {

"server",
"appolo"
"appolo",
"middleware",
"response",
"router",
"api",
"app"
],

@@ -23,3 +28,3 @@ "author": {

"main": "./index.js",
"version": "6.0.3",
"version": "6.0.4",
"license": "MIT",

@@ -62,5 +67,3 @@ "repository": {

"fastify": "^1.3.0",
"grunt": "1.0.2",
"grunt-cli": "^1.2.0",
"grunt-mocha-test": "0.13.3",
"express": "^4.16.3",
"mocha": "^5.1.1",

@@ -67,0 +70,0 @@ "nunjucks": "^3.1.2",

Sorry, the diff of this file is not supported yet

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