Comparing version 2.4.0 to 2.5.0
{ | ||
"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); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
16225
253
5