Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Do not use deprecated util.pump, it's going away. #142

@ChALkeR

Description

@ChALkeR

util.pump was deprecated since nodejs v0.10, and there is an ongoing discussion on removing that in the next major version: nodejs/node#2531.

The line in question: lib/cmd/common/local.js#L557:

util.pump(fileStream, response);

should be probably replaced with

fileStream.pipe(response);

I am not making a pull request because I am not a user of this package and have not tested it.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions