@curveball/bodyparser
Advanced tools
Comparing version 0.4.6 to 0.4.7
Changelog | ||
========= | ||
0.4.7 (2021-02-18) | ||
------------------ | ||
* Update all dependencies. | ||
* Release on Github Packages. | ||
0.4.6 (2020-02-05) | ||
@@ -5,0 +12,0 @@ ------------------ |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const http_errors_1 = require("@curveball/http-errors"); | ||
const querystring_1 = __importDefault(require("querystring")); | ||
const qs = require("querystring"); | ||
function bodyParser() { | ||
@@ -45,4 +42,4 @@ return async (ctx, next) => { | ||
async function parseUrlEncoded(ctx) { | ||
ctx.request.body = querystring_1.default.parse(await ctx.request.rawBody('utf-8')); | ||
ctx.request.body = qs.parse(await ctx.request.rawBody('utf-8')); | ||
} | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@curveball/bodyparser", | ||
"version": "0.4.6", | ||
"version": "0.4.7", | ||
"description": "A curveball middleware for parsing JSON and Text bodies.", | ||
@@ -26,5 +26,8 @@ "main": "dist/index.js", | ||
"typescript", | ||
"push", | ||
"http2", | ||
"curveball" | ||
"curveball", | ||
"json", | ||
"urlencoded", | ||
"form-data", | ||
"middleware" | ||
], | ||
@@ -38,14 +41,16 @@ "author": "Evert Pot (https://evertpot.com/)", | ||
"devDependencies": { | ||
"@curveball/core": "^0.10.0", | ||
"@types/chai": "^4.2.7", | ||
"@types/mocha": "^5.2.7", | ||
"@types/node": "^10.17.14", | ||
"@types/sinon": "^7.5.1", | ||
"chai": "^4.2.0", | ||
"mocha": "^7.0.1", | ||
"nyc": "^15.0.0", | ||
"sinon": "^8.1.1", | ||
"ts-node": "^8.6.2", | ||
"tslint": "^5.20.1", | ||
"typescript": "^3.7.5" | ||
"@curveball/core": "^0.16.2", | ||
"@types/chai": "^4.2.15", | ||
"@types/mocha": "^8.2.1", | ||
"@types/node": "^10.17.53", | ||
"@types/sinon": "^9.0.10", | ||
"@typescript-eslint/eslint-plugin": "^4.15.1", | ||
"@typescript-eslint/parser": "^4.15.1", | ||
"chai": "^4.3.0", | ||
"eslint": "^7.20.0", | ||
"mocha": "^8.3.0", | ||
"nyc": "^15.1.0", | ||
"sinon": "^9.2.4", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.5" | ||
}, | ||
@@ -60,4 +65,13 @@ "types": "dist/", | ||
"peerDependencies": { | ||
"@curveball/core": ">=0.9 <1" | ||
"@curveball/core": ">=0.16.2 <1" | ||
}, | ||
"mocha": { | ||
"require": "ts-node/register", | ||
"recursive": true, | ||
"extension": [ | ||
"ts", | ||
"js", | ||
"tsx" | ||
] | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
7858
14
45