Compare commits

..

No commits in common. 'a315773ad89be90e8a52ac3a480721ebf54b8d12' and '44d27c86ff48071430307aa0a2103e8b1f36d267' have entirely different histories.

@ -1,7 +1,7 @@
# @promistream/aborted
# @ppstreams/aborted-marker
__Note:__ This documentation is incomplete.
A simple custom error type for marking the end of a [Promistream](https://promistream.cryto.net/). You'd usually only need this module when you're implementing a custom source stream.
A simple custom error type for marking the end of a [ppstreams](https://ppstreams.cryto.net/) stream. You'd usually only need this module when you're implementing a custom source stream.
If you just want a stream that produces a value every time one is requested, and that doesn't need to clean up any external resources like file handles or network connections, use the [simple-source](https://www.npmjs.com/package/@promistream/simple-source) module instead.
If you just want a stream that produces a value every time one is requested, and that doesn't need to clean up any external resources like file handles or network connections, use the [simple-source](https://www.npmjs.com/package/@ppstreams/simple-source) module instead.

@ -2,8 +2,6 @@
const Aborted = require("./");
// TODO: Turn this into a meaningful example
let marker = new Aborted();
console.log(marker); // Logs the new Aborted (Error) instance

@ -3,12 +3,13 @@
const createError = require("error-chain").create;
const defaultValue = require("default-value");
// FIXME: Update everything that uses end-of-stream-marker or aborted-marker to the new split-module API
module.exports = createError("Aborted", {
populate: (message) => {
return { message: defaultValue(message, "The stream was aborted") };
},
context: {
_promistreamIsAbortedMarker: true,
_promistreamVersion: 1
__ppstreams_isAbortedMarker: true,
__ppstreams_specVersion: 1
}
});

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

Loading…
Cancel
Save