You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

sculpt

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sculpt - npm Package Compare versions

Comparing version

to
0.1.3

data.log

4

lib/map.js

@@ -61,4 +61,6 @@ // Copyright 2014. A Medium Corporation

this.mapper(chunk, function (err, data) {
if (err) return callback(err)
this.push(data)
callback(err)
callback(null)
}.bind(this))

@@ -65,0 +67,0 @@ }

{
"name": "sculpt",
"version": "0.1.2",
"version": "0.1.3",
"description": "Generate Node 0.10-friendly transform streams to manipulate other streams.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -103,2 +103,19 @@ // Copyright 2014. A Medium Corporation

})
it('Should not throw on pushing data when async streams have an error', function (done) {
var stream = map(function (data, callback) {
callback(new Error('This stream never works'))
}).async().multi()
stream.on('error', function (err) {
assert.ok(err)
done()
})
stream.on('end', function () {
done(new Error('This stream should error before it ends'))
})
stream.end('I see a Mansard roof through the trees')
})
})