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

koa-body-parser

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-body-parser - npm Package Compare versions

Comparing version 0.1.1 to 0.2.0

25

index.js

@@ -70,6 +70,25 @@ var getRawBody = require('raw-body')

var stream = decoder
? this.req.pipe(decoder)
: this.req
var req = this.req
var stream = req
if (decoder) {
var close = function () {
decoder.close()
cleanup()
}
var cleanup = function () {
req = stream = decoder = null
req.removeListener('end', cleanup)
req.removeListener('error', cleanup)
req.removeListener('close', cleanup)
}
req.once('close', close)
req.once('error', close)
req.once('end', cleanup)
stream = req.pipe(decoder)
}
return yield getRawBody(stream, {

@@ -76,0 +95,0 @@ limit: lim || limit,

4

package.json
{
"name": "koa-body-parser",
"description": "Request body parser for koa",
"version": "0.1.1",
"version": "0.2.0",
"author": {

@@ -21,3 +21,3 @@ "name": "Jonathan Ong",

"dependencies": {
"raw-body": "~0.2.0"
"raw-body": "~1.0.1"
},

@@ -24,0 +24,0 @@ "peerDependencies": {

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