From abd94a7f5a50f43c797a11b53549ae48fff667c3 Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 10 Oct 2016 03:43:44 +0200 Subject: add node_modules to address #4364 --- node_modules/vinyl/lib/inspect-stream.js | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 node_modules/vinyl/lib/inspect-stream.js (limited to 'node_modules/vinyl/lib/inspect-stream.js') diff --git a/node_modules/vinyl/lib/inspect-stream.js b/node_modules/vinyl/lib/inspect-stream.js new file mode 100644 index 000000000..314009d1e --- /dev/null +++ b/node_modules/vinyl/lib/inspect-stream.js @@ -0,0 +1,19 @@ +'use strict'; + +var isStream = require('is-stream'); + +function inspectStream(stream) { + if (!isStream(stream)) { + return; + } + + var streamType = stream.constructor.name; + // Avoid StreamStream + if (streamType === 'Stream') { + streamType = ''; + } + + return '<' + streamType + 'Stream>'; +} + +module.exports = inspectStream; -- cgit v1.2.3