Comparing version 2.2.0 to 2.2.1
@@ -51,3 +51,3 @@ "use strict"; | ||
const { pre = [], post = [] } = middleware || {}; | ||
const parsingMiddleware = accept ? [body_parser_1.handleParseError, body_parser_1.parseBody] : []; | ||
const parsingMiddleware = accept ? [body_parser_1.handleParseError, (0, body_parser_1.parseBody)()] : []; | ||
const middlewareChain = [ | ||
@@ -54,0 +54,0 @@ ...parsingMiddleware, |
@@ -42,3 +42,3 @@ import Koa, { Next } from "koa"; | ||
const { pre = [], post = [] } = middleware || {}; | ||
const parsingMiddleware = accept ? [handleParseError, parseBody] : []; | ||
const parsingMiddleware = accept ? [handleParseError, parseBody()] : []; | ||
const middlewareChain = [ | ||
@@ -45,0 +45,0 @@ ...parsingMiddleware, |
{ | ||
"name": "18h", | ||
"description": "A Next.js style dynamic API router for Koa-based APIs.", | ||
"version": "2.2.0", | ||
"version": "2.2.1", | ||
"repository": { | ||
@@ -6,0 +6,0 @@ "url": "https://github.com/ridafkih/18h" |
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
30392