Comparing version 1.4.2 to 1.4.3
@@ -1,2 +0,2 @@ | ||
const readAsBuffer = (s, maxsize = 1e7) => | ||
const readAsBuffer = (s, _maxsize) => | ||
new Promise((resolve, reject) => { | ||
@@ -8,2 +8,3 @@ if (Buffer.isBuffer(s) || Array.isArray(s) || typeof s === 'string') { | ||
const bufs = []; | ||
const maxsize = _maxsize || 1e7; | ||
let size = 0; | ||
@@ -10,0 +11,0 @@ s.on('data', d => { |
{ | ||
"name": "as-buffer", | ||
"version": "1.4.2", | ||
"version": "1.4.3", | ||
"description": "stream or anything to buffer as a Promise", | ||
"main": "index.js", | ||
"files": ["index.js"], | ||
"files": [ | ||
"index.js" | ||
], | ||
"scripts": { | ||
@@ -21,6 +23,10 @@ "test": "nyc node test", | ||
"homepage": "https://github.com/caub/as-buffer#readme", | ||
"engines": { | ||
"node": ">=4.8.6" | ||
}, | ||
"devDependencies": { | ||
"codecov": "^3.0.0", | ||
"nyc": "^11.3.0" | ||
} | ||
}, | ||
"dependencies": {} | ||
} |
2396
28