Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

middy-middleware-json-error-handler

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middy-middleware-json-error-handler - npm Package Compare versions

Comparing version 1.0.3 to 2.0.0

12

CHANGELOG.md

@@ -0,1 +1,13 @@

# [2.0.0](https://github.com/dbartholomae/middy-middleware-json-error-handler/compare/1.0.3...2.0.0) (2020-05-02)
### Features
* update to middy 1.0.0 ([b536c03](https://github.com/dbartholomae/middy-middleware-json-error-handler/commit/b536c0310c2119f9d67bb19d03982353efc59d07))
### BREAKING CHANGES
* As of this version this middleware only supports middy@1.0.0 and upwards. See https://github.com/middyjs/middy/blob/master/UPGRADE.md for middy upgrade instructions.
## [1.0.3](https://github.com/dbartholomae/middy-middleware-json-error-handler/compare/1.0.2...1.0.3) (2020-05-01)

@@ -2,0 +14,0 @@

6

lib/JSONErrorHandlerMiddleware.d.ts

@@ -1,4 +0,4 @@

import { MiddlewareFunction, MiddlewareObject } from 'middy';
import middy from '@middy/core';
/** The actual middleware */
export declare class JSONErrorHandlerMiddleware implements MiddlewareObject<any, any, any> {
export declare class JSONErrorHandlerMiddleware implements middy.MiddlewareObject<any, any, any> {
static create(): JSONErrorHandlerMiddleware;

@@ -9,5 +9,5 @@ /** The logger used in the module */

constructor();
onError: MiddlewareFunction<any, any>;
onError: middy.MiddlewareFunction<any, any>;
}
declare const _default: typeof JSONErrorHandlerMiddleware.create;
export default _default;
{
"name": "middy-middleware-json-error-handler",
"version": "1.0.3",
"version": "2.0.0",
"description": "A middy JSON error handler middleware.",

@@ -35,3 +35,3 @@ "homepage": "",

"peerDependencies": {
"middy": ">=0.22.0"
"@middy/core": ">=1.0.0"
},

@@ -60,2 +60,3 @@ "directories": {

"@commitlint/config-conventional": "^8.1.0",
"@middy/core": ">=1.0.0",
"@semantic-release/changelog": "^5.0.0",

@@ -66,2 +67,4 @@ "@semantic-release/commit-analyzer": "^8.0.0",

"@semantic-release/release-notes-generator": "^9.0.0",
"@types/aws-lambda": "^8.10.51",
"@types/http-errors": "^1.6.3",
"@types/jest": "^25.1.0",

@@ -78,3 +81,2 @@ "@types/supertest": "^2.0.7",

"lint-staged": "^10.0.2",
"middy": "^0.36.0",
"pkg-ok": "^2.3.1",

@@ -81,0 +83,0 @@ "prettier-standard": "^16.0.0",

@@ -20,3 +20,3 @@ # middy-middleware-json-error-handler

```typescript
import middy from 'middy'
import middy from '@middy/core'
import JSONErrorHandlerMiddleware from 'middy-middleware-json-error-handler'

@@ -23,0 +23,0 @@ import createHttpError from 'http-errors'

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