From 4e87195739f2a5d9a05451b48773c8afdc680765 Mon Sep 17 00:00:00 2001 From: akiyamn Date: Sun, 24 Sep 2023 23:22:21 +1000 Subject: Initial commit (by create-cloudflare CLI) --- .../polyfills/readable-stream/passthrough.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 node_modules/rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough.js (limited to 'node_modules/rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough.js') diff --git a/node_modules/rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough.js b/node_modules/rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough.js new file mode 100644 index 0000000..3436228 --- /dev/null +++ b/node_modules/rollup-plugin-node-polyfills/polyfills/readable-stream/passthrough.js @@ -0,0 +1,15 @@ + +import {Transform} from './transform'; + +import {inherits} from 'util'; +inherits(PassThrough, Transform); +export default PassThrough; +export 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); +}; -- cgit v1.2.3