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

koa-body

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-body - npm Package Compare versions

Comparing version 2.4.0 to 2.5.0

index.d.ts

10

package.json
{
"name": "koa-body",
"version": "2.4.0",
"version": "2.5.0",
"description": "A koa body parser middleware. Support multipart, urlencoded and json request bodies.",

@@ -31,11 +31,7 @@ "main": "index.js",

"files": [
".gitignore",
".npmignore",
".travis.yml",
"LICENSE",
"Makefile",
"README.md",
"example.js",
"index.js",
"test.js"
"index.d.ts",
"package.json"
],

@@ -42,0 +38,0 @@ "dependencies": {

@@ -70,5 +70,5 @@ koa-body [![Build Status](https://travis-ci.org/dlau/koa-body.svg?branch=koa2)](https://travis-ci.org/dlau/koa-body) [![Dependencies Status](https://david-dm.org/dlau/koa-body/status.svg)](https://david-dm.org/dlau/koa-body)

const router = require('koa-router')();
const koaBody = require('koa-body')();
const koaBody = require('koa-body');
router.post('/users', koaBody,
router.post('/users', koaBody(),
(ctx) => {

@@ -75,0 +75,0 @@ console.log(ctx.request.body);

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