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

@simonbackx/simple-endpoints

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

@simonbackx/simple-endpoints - npm Package Compare versions

Comparing version 1.8.0 to 1.9.0

2

dist/src/ResponseMiddleware.d.ts

@@ -7,3 +7,3 @@ import { EncodedResponse } from "./EncodedResponse";

*/
handleResponse(request: Request, response: EncodedResponse): any;
handleResponse(request: Request, response: EncodedResponse, error?: Error): any;
}

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

response = new EncodedResponse_1.EncodedResponse((_a = e.statusCode) !== null && _a !== void 0 ? _a : 400, headers, JSON.stringify(new simple_errors_1.SimpleErrors(e)));
console.error(new simple_errors_1.SimpleErrors(e));
console.error(JSON.stringify(new simple_errors_1.SimpleErrors(e)));
}

@@ -103,3 +103,3 @@ else if (simple_errors_1.isSimpleErrors(e)) {

for (const middleware of this.responseMiddlewares) {
middleware.handleResponse(request, response);
middleware.handleResponse(request, response, e);
}

@@ -106,0 +106,0 @@ // Write to client

@@ -5,3 +5,3 @@ {

"types": "./dist/index.d.ts",
"version": "1.8.0",
"version": "1.9.0",
"scripts": {

@@ -8,0 +8,0 @@ "test": "jest --setupFiles dotenv/config",

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