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

koa-json-body

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-json-body - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

5

index.js

@@ -9,2 +9,4 @@ 'use strict';

return function *(next) {
this.request.body = {};
try {

@@ -14,3 +16,4 @@ if (this.is('application/json')) {

}
} catch(e) {}
} catch(e) {
}

@@ -17,0 +20,0 @@ yield next;

2

package.json
{
"name": "koa-json-body",
"version": "0.0.2",
"version": "0.0.3",
"description": "koa middleware to parse json request bodies",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -6,3 +6,3 @@ koa-json-body

This will not parse anythig but valid JSON request bodies. If there is a JSON error, the middleware will currently skip the request.
This will not parse anythig but valid JSON request bodies. If there is a JSON error, the middleware will set `ctx.request.body` to `{}` and continue.

@@ -9,0 +9,0 @@ Installation

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