Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/get-stream/buffer-stream.js')
-rw-r--r--node_modules/get-stream/buffer-stream.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/node_modules/get-stream/buffer-stream.js b/node_modules/get-stream/buffer-stream.js
index 4121c8e56..ae45d3d9e 100644
--- a/node_modules/get-stream/buffer-stream.js
+++ b/node_modules/get-stream/buffer-stream.js
@@ -1,11 +1,11 @@
'use strict';
-const {PassThrough} = require('stream');
+const PassThrough = require('stream').PassThrough;
-module.exports = options => {
- options = Object.assign({}, options);
+module.exports = opts => {
+ opts = Object.assign({}, opts);
- const {array} = options;
- let {encoding} = options;
+ const array = opts.array;
+ let encoding = opts.encoding;
const buffer = encoding === 'buffer';
let objectMode = false;