change: Drop Node 10 support.

This commit is contained in:
Ruben Verborgh
2020-11-27 00:26:15 +01:00
committed by Joachim Van Herwegen
parent 16d447f221
commit 03ffaaed43
4 changed files with 4 additions and 10 deletions

View File

@@ -37,9 +37,7 @@ export class RdfToQuadConverter extends TypedRepresentationConverter {
baseIRI,
});
// Wrap the stream such that errors are transformed
// (Node 10 requires both writableObjectMode and readableObjectMode)
const pass = new PassThrough({ writableObjectMode: true, readableObjectMode: true });
const pass = new PassThrough({ objectMode: true });
const data = pipeSafely(rawQuads, pass, (error): Error => new UnsupportedHttpError(error.message));
return {