aboutsummaryrefslogtreecommitdiffstats
path: root/vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js
diff options
context:
space:
mode:
Diffstat (limited to 'vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js')
-rw-r--r--vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js26
1 files changed, 26 insertions, 0 deletions
diff --git a/vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js b/vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js
new file mode 100644
index 00000000..d06f71f1
--- /dev/null
+++ b/vnfmarket/src/main/webapp/vnfmarket/node_modules/readable-stream/lib/_stream_passthrough.js
@@ -0,0 +1,26 @@
+// a passthrough stream.
+// basically just the most minimal sort of Transform stream.
+// Every written chunk gets output as-is.
+
+'use strict';
+
+module.exports = PassThrough;
+
+var Transform = require('./_stream_transform');
+
+/*<replacement>*/
+var util = require('core-util-is');
+util.inherits = require('inherits');
+/*</replacement>*/
+
+util.inherits(PassThrough, Transform);
+
+function PassThrough(options) {
+ if (!(this instanceof PassThrough)) return new PassThrough(options);
+
+ Transform.call(this, options);
+}
+
+PassThrough.prototype._transform = function (chunk, encoding, cb) {
+ cb(null, chunk);
+}; \ No newline at end of file