UNPKG

graphql-upload-ts

Version:

Typescript minimalistic and developer friendly middleware and an Upload scalar to add support for GraphQL multipart requests (file uploads via queries and mutations) to various Node.js GraphQL servers.

14 lines 414 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ignoreStream = void 0; /** * Safely ignores a Node.js readable stream. */ function ignoreStream(stream) { // Prevent an unhandled error from crashing the process. stream.on('error', () => { }); // Waste the stream. stream.resume(); } exports.ignoreStream = ignoreStream; //# sourceMappingURL=ignoreStream.js.map