Comparing version 4.1.1 to 4.1.2
import * as Koa from "koa"; | ||
import { Files } from 'formidable'; | ||
declare module "koa" { | ||
declare module koa { | ||
interface Request extends Koa.BaseRequest { | ||
@@ -6,0 +6,0 @@ body?: any; |
{ | ||
"name": "koa-body", | ||
"version": "4.1.1", | ||
"version": "4.1.2", | ||
"description": "A Koa body parser middleware. Supports multipart, urlencoded and JSON request bodies.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -113,2 +113,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) [![KoaJs Slack](https://img.shields.io/badge/Koa.Js-Slack%20Channel-Slack.svg?longCache=true)](https://communityinviter.com/apps/koa-js/koajs) | ||
## File Support | ||
Uploaded files are accessible via `ctx.request.files`. | ||
## A note about unparsed request bodies | ||
@@ -115,0 +118,0 @@ Some applications require crytopgraphic verification of request bodies, for example webhooks from slack or stripe. The unparsed body can be accessed if `includeUnparsed` is `true` in koa-body's options. When enabled, import the symbol for accessing the request body from `unparsed = require('koa-body/unparsed.js')`, or define your own accessor using `unparsed = Symbol.for('unparsedBody')`. Then the unparsed body is available using `ctx.request.body[unparsed]`. |
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
22476
139