🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

raw-body

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

raw-body - npm Package Compare versions

Comparing version

to
2.3.3

11

HISTORY.md

@@ -0,1 +1,12 @@

2.3.3 / 2018-05-08
==================
* deps: http-errors@1.6.3
- deps: depd@~1.1.2
- deps: setprototypeof@1.1.0
- deps: statuses@'>= 1.3.1 < 2'
* deps: iconv-lite@0.4.23
- Fix loading encoding with year appended
- Fix deprecation warnings on Node.js 10+
2.3.2 / 2017-09-09

@@ -2,0 +13,0 @@ ==================

24

package.json
{
"name": "raw-body",
"description": "Get and validate the raw body of a readable stream.",
"version": "2.3.2",
"version": "2.3.3",
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)",

@@ -14,19 +14,19 @@ "contributors": [

"bytes": "3.0.0",
"http-errors": "1.6.2",
"iconv-lite": "0.4.19",
"http-errors": "1.6.3",
"iconv-lite": "0.4.23",
"unpipe": "1.0.0"
},
"devDependencies": {
"bluebird": "3.5.0",
"eslint": "3.19.0",
"eslint-config-standard": "10.2.1",
"eslint-plugin-import": "2.7.0",
"bluebird": "3.5.1",
"eslint": "4.19.1",
"eslint-config-standard": "11.0.0",
"eslint-plugin-import": "2.11.0",
"eslint-plugin-markdown": "1.0.0-beta.6",
"eslint-plugin-node": "5.1.1",
"eslint-plugin-promise": "3.5.0",
"eslint-plugin-standard": "3.0.1",
"eslint-plugin-node": "6.0.1",
"eslint-plugin-promise": "3.7.0",
"eslint-plugin-standard": "3.1.0",
"istanbul": "0.4.5",
"mocha": "2.5.3",
"readable-stream": "2.3.3",
"safe-buffer": "5.1.1"
"readable-stream": "2.3.6",
"safe-buffer": "5.1.2"
},

@@ -33,0 +33,0 @@ "engines": {

@@ -26,3 +26,3 @@ # raw-body

This module includes a [TypeScript](https://www.typescriptlang.org/)
declarition file to enable auto complete in compatible editors and type
declaration file to enable auto complete in compatible editors and type
information for TypeScript projects. This module depends on the Node.js

@@ -173,10 +173,10 @@ types, so install `@types/node`:

getRawBody(req)
.then(function (buf) {
res.statusCode = 200
res.end(buf.length + ' bytes submitted')
})
.catch(function (err) {
res.statusCode = 500
res.end(err.message)
})
.then(function (buf) {
res.statusCode = 200
res.end(buf.length + ' bytes submitted')
})
.catch(function (err) {
res.statusCode = 500
res.end(err.message)
})
})

@@ -183,0 +183,0 @@