Comparing version 2.5.1 to 2.5.2
@@ -0,1 +1,6 @@ | ||
2.5.2 / 2023-02-21 | ||
================== | ||
* Fix error message for non-stream argument | ||
2.5.1 / 2022-02-28 | ||
@@ -2,0 +7,0 @@ ================== |
@@ -72,2 +72,9 @@ /*! | ||
// light validation | ||
if (stream === undefined) { | ||
throw new TypeError('argument stream is required') | ||
} else if (typeof stream !== 'object' || stream === null || typeof stream.on !== 'function') { | ||
throw new TypeError('argument stream must be a stream') | ||
} | ||
if (options === true || typeof options === 'string') { | ||
@@ -74,0 +81,0 @@ // short cut for encoding |
{ | ||
"name": "raw-body", | ||
"description": "Get and validate the raw body of a readable stream.", | ||
"version": "2.5.1", | ||
"version": "2.5.2", | ||
"author": "Jonathan Ong <me@jongleberry.com> (http://jongleberry.com)", | ||
@@ -20,10 +20,10 @@ "contributors": [ | ||
"bluebird": "3.7.2", | ||
"eslint": "7.32.0", | ||
"eslint-config-standard": "14.1.1", | ||
"eslint-plugin-import": "2.25.4", | ||
"eslint-plugin-markdown": "2.2.1", | ||
"eslint": "8.34.0", | ||
"eslint-config-standard": "15.0.1", | ||
"eslint-plugin-import": "2.27.5", | ||
"eslint-plugin-markdown": "3.0.0", | ||
"eslint-plugin-node": "11.1.0", | ||
"eslint-plugin-promise": "5.2.0", | ||
"eslint-plugin-promise": "6.1.1", | ||
"eslint-plugin-standard": "4.1.0", | ||
"mocha": "9.2.1", | ||
"mocha": "10.2.0", | ||
"nyc": "15.1.0", | ||
@@ -30,0 +30,0 @@ "readable-stream": "2.3.7", |
@@ -222,3 +222,3 @@ # raw-body | ||
[downloads-url]: https://npmjs.org/package/raw-body | ||
[github-actions-ci-image]: https://img.shields.io/github/workflow/status/stream-utils/raw-body/ci/master?label=ci | ||
[github-actions-ci-image]: https://img.shields.io/github/actions/workflow/status/stream-utils/raw-body/ci.yml?branch=master&label=ci | ||
[github-actions-ci-url]: https://github.com/jshttp/stream-utils/raw-body?query=workflow%3Aci |
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
25752
355