Updated the project.
This commit is contained in:
parent
5dfe9f128d
commit
7919556077
1550 changed files with 17063 additions and 40183 deletions
5
my-app/node_modules/raw-body/HISTORY.md
generated
vendored
Executable file → Normal file
5
my-app/node_modules/raw-body/HISTORY.md
generated
vendored
Executable file → Normal file
|
@ -1,3 +1,8 @@
|
|||
2.5.2 / 2023-02-21
|
||||
==================
|
||||
|
||||
* Fix error message for non-stream argument
|
||||
|
||||
2.5.1 / 2022-02-28
|
||||
==================
|
||||
|
||||
|
|
0
my-app/node_modules/raw-body/LICENSE
generated
vendored
Executable file → Normal file
0
my-app/node_modules/raw-body/LICENSE
generated
vendored
Executable file → Normal file
2
my-app/node_modules/raw-body/README.md
generated
vendored
Executable file → Normal file
2
my-app/node_modules/raw-body/README.md
generated
vendored
Executable file → Normal file
|
@ -219,5 +219,5 @@ server.listen(3000);
|
|||
[coveralls-url]: https://coveralls.io/r/stream-utils/raw-body?branch=master
|
||||
[downloads-image]: https://img.shields.io/npm/dm/raw-body.svg
|
||||
[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
|
||||
|
|
0
my-app/node_modules/raw-body/SECURITY.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/raw-body/SECURITY.md
generated
vendored
Executable file → Normal file
0
my-app/node_modules/raw-body/index.d.ts
generated
vendored
Executable file → Normal file
0
my-app/node_modules/raw-body/index.d.ts
generated
vendored
Executable file → Normal file
7
my-app/node_modules/raw-body/index.js
generated
vendored
Executable file → Normal file
7
my-app/node_modules/raw-body/index.js
generated
vendored
Executable file → Normal file
|
@ -69,6 +69,13 @@ function getRawBody (stream, options, callback) {
|
|||
var done = callback
|
||||
var opts = options || {}
|
||||
|
||||
// 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') {
|
||||
// short cut for encoding
|
||||
opts = {
|
||||
|
|
14
my-app/node_modules/raw-body/package.json
generated
vendored
Executable file → Normal file
14
my-app/node_modules/raw-body/package.json
generated
vendored
Executable file → Normal file
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"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)",
|
||||
"contributors": [
|
||||
"Douglas Christopher Wilson <doug@somethingdoug.com>",
|
||||
|
@ -17,14 +17,14 @@
|
|||
},
|
||||
"devDependencies": {
|
||||
"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",
|
||||
"readable-stream": "2.3.7",
|
||||
"safe-buffer": "5.2.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue