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

koa-body-parser

Package Overview
Dependencies
Maintainers
2
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 1.1.0 to 1.1.1

test.js

4

index.js

@@ -22,6 +22,4 @@

var encoding = 'transfer-encoding' in this.req.headers;
var length = 'content-length' in this.req.headers &&
this.req.headers['content-length'] !== 0;
if ((encoding || length) && !this.req._readableState.ended) {
if ((encoding || this.request.length) && !this.req._readableState.ended) {
try {

@@ -28,0 +26,0 @@ this.request.body = yield parse(this.request, opts);

{
"name": "koa-body-parser",
"version": "1.1.0",
"version": "1.1.1",
"description": "Parse request body into ctx.request.body",

@@ -16,3 +16,3 @@ "main": "index.js",

"dependencies": {
"co-body": "0.0.1"
"co-body": "~1.0.0"
},

@@ -19,0 +19,0 @@ "devDependencies": {

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