diff --git a/index.js b/index.js index 3d3a29a..72ff0b5 100644 --- a/index.js +++ b/index.js @@ -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)) { diff --git a/package.json b/package.json index c9fc98f..ce2fc1f 100644 --- a/package.json +++ b/package.json @@ -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 ", "license": "WTFPL OR CC0-1.0" }