Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
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 0.1.2 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')
})
})
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc