New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@curveball/bodyparser

Package Overview
Dependencies
Maintainers
3
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@curveball/bodyparser - npm Package Compare versions

Comparing version 0.4.6 to 0.4.7

7

changelog.md
Changelog
=========
0.4.7 (2021-02-18)
------------------
* Update all dependencies.
* Release on Github Packages.
0.4.6 (2020-02-05)

@@ -5,0 +12,0 @@ ------------------

7

dist/index.js
"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

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