update, text, response
This commit is contained in:
2
node_modules/pump/.github/FUNDING.yml
generated
vendored
Normal file
2
node_modules/pump/.github/FUNDING.yml
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
github: mafintosh
|
||||
tidelift: "npm/pump"
|
||||
9
node_modules/pump/README.md
generated
vendored
9
node_modules/pump/README.md
generated
vendored
@@ -53,6 +53,9 @@ Similarly to `stream.pipe()`, `pump()` returns the last stream passed in, so you
|
||||
return pump(s1, s2) // returns s2
|
||||
```
|
||||
|
||||
Note that `pump` attaches error handlers to the streams to do internal error handling, so if `s2` emits an
|
||||
error in the above scenario, it will not trigger a `proccess.on('uncaughtException')` if you do not listen for it.
|
||||
|
||||
If you want to return a stream that combines *both* s1 and s2 to a single stream use
|
||||
[pumpify](https://github.com/mafintosh/pumpify) instead.
|
||||
|
||||
@@ -63,3 +66,9 @@ MIT
|
||||
## Related
|
||||
|
||||
`pump` is part of the [mississippi stream utility collection](https://github.com/maxogden/mississippi) which includes more useful stream modules similar to this one.
|
||||
|
||||
## For enterprise
|
||||
|
||||
Available as part of the Tidelift Subscription.
|
||||
|
||||
The maintainers of pump and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-pump?utm_source=npm-pump&utm_medium=referral&utm_campaign=enterprise)
|
||||
|
||||
5
node_modules/pump/SECURITY.md
generated
vendored
Normal file
5
node_modules/pump/SECURITY.md
generated
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
## Security contact information
|
||||
|
||||
To report a security vulnerability, please use the
|
||||
[Tidelift security contact](https://tidelift.com/security).
|
||||
Tidelift will coordinate the fix and disclosure.
|
||||
8
node_modules/pump/index.js
generated
vendored
8
node_modules/pump/index.js
generated
vendored
@@ -1,9 +1,13 @@
|
||||
var once = require('once')
|
||||
var eos = require('end-of-stream')
|
||||
var fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes
|
||||
var fs
|
||||
|
||||
try {
|
||||
fs = require('fs') // we only need fs to get the ReadStream and WriteStream prototypes
|
||||
} catch (e) {}
|
||||
|
||||
var noop = function () {}
|
||||
var ancient = /^v?\.0/.test(process.version)
|
||||
var ancient = typeof process === 'undefined' ? false : /^v?\.0/.test(process.version)
|
||||
|
||||
var isFn = function (fn) {
|
||||
return typeof fn === 'function'
|
||||
|
||||
2
node_modules/pump/package.json
generated
vendored
2
node_modules/pump/package.json
generated
vendored
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "pump",
|
||||
"version": "3.0.0",
|
||||
"version": "3.0.3",
|
||||
"repository": "git://github.com/mafintosh/pump.git",
|
||||
"license": "MIT",
|
||||
"description": "pipe streams together and close all of them if one of them closes",
|
||||
|
||||
Reference in New Issue
Block a user