peek-stream
Advanced tools
Comparing version 1.1.2 to 1.1.3
var duplexify = require('duplexify') | ||
var through = require('through2') | ||
var bufferFrom = require('buffer-from') | ||
@@ -25,3 +26,3 @@ var noop = function() {} | ||
if (isObject(data)) return ready(data, null, cb) | ||
if (!Buffer.isBuffer(data)) data = new Buffer(data) | ||
if (!Buffer.isBuffer(data)) data = bufferFrom(data) | ||
@@ -77,2 +78,2 @@ if (newline) { | ||
module.exports = peek | ||
module.exports = peek |
{ | ||
"name": "peek-stream", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "Transform stream that lets you peek the first line before deciding how to parse it", | ||
"main": "index.js", | ||
"dependencies": { | ||
"buffer-from": "^1.0.0", | ||
"duplexify": "^3.5.0", | ||
@@ -8,0 +9,0 @@ "through2": "^2.0.3" |
8156
165
3
7
+ Addedbuffer-from@^1.0.0
+ Addedbuffer-from@1.1.2(transitive)