Update to new name

master
Sven Slootweg 3 years ago
parent 0d9b3feee4
commit 2f085faf45

@ -9,7 +9,7 @@ module.exports = function pipe(streams) {
throw new Error("Must specify at least one stream when defining a pipeline");
} else {
let firstStream = existentStreams[0];
let requiresSource = (firstStream.read.length > 0 && firstStream.__ppstreams_hasSource !== true);
let requiresSource = (firstStream.read.length > 0 && firstStream._promistreamHasSource !== true);
/* NOTE: We never clean up the cache, because it's very unlikely that this cache will ever grow big. In the vast majority of cases, it's going to contain at most one item. So instead, we let the garbage collector worry about getting rid of it once the pipeline itself becomes obsolete. */
let boundPipelineCache = new Map();
@ -49,7 +49,8 @@ module.exports = function pipe(streams) {
return {
// NOTE: This is set to convey to other `pipe` calls (as well as any other composability tools) that this is explicitly a composed stream that does not require a source, even if the `read` signature suggests otherwise. FIXME: Figure out how and whether to spec this, or whether there is a better way to deal with this.
__ppstreams_hasSource: !requiresSource,
_promistreamHasSource: !requiresSource,
_promistreamVersion: 0,
description: `piped stream [${existentStreams.map((stream) => stream.description).join(" => ")}]`,
read: function (source) {
if(!verifyFullPipeline(source)) {

@ -1,8 +1,8 @@
{
"name": "@ppstreams/pipe",
"name": "@promistream/pipe",
"version": "0.1.1",
"main": "index.js",
"repository": "http://git.cryto.net/ppstreams/pipe.git",
"repository": "http://git.cryto.net/promistream/pipe.git",
"author": "Sven Slootweg <admin@cryto.net>",
"license": "WTFPL OR CC0-1.0"
}

Loading…
Cancel
Save