Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

simpleasync

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simpleasync - npm Package Compare versions

Comparing version 0.0.4 to 0.0.5

6

lib/simpleasync.js

@@ -120,2 +120,8 @@

if (!dl) {
data = [];
setImmediate(doStep);
return;
}
for (var n in data)

@@ -122,0 +128,0 @@ fn.map(data[n], makecbmap(n));

2

package.json
{ "name": "simpleasync"
, "description": "Simple flow library to chain and run functions with asynchronous calls"
, "keywords": [ "node", "asynchronous", "library" ]
, "version": "0.0.4"
, "version": "0.0.5"
, "author": "Angel 'Java' Lopez <webmaster@ajlopez.com> (http://www.ajlopez.com)"

@@ -6,0 +6,0 @@ , "repository": { "type": "git", "url": "git://github.com/ajlopez/SimpleAsync.git" }

@@ -191,2 +191,3 @@ # SimpleAsync

- 0.0.4: Published, fail function
- 0.0.5: Published, fix async map with empty array

@@ -193,0 +194,0 @@ ## License

@@ -51,1 +51,22 @@

}
exports['map empty array with async fn and then'] = function (test) {
test.async();
var total = 0;
var seq = async()
.map(function (item, next) {
next(null, item * item);
})
.then(function (data) {
test.ok(data);
test.ok(Array.isArray(data));
test.equal(data.length, 0);
test.done();
});
test.ok(seq);
test.strictEqual(seq.run([]), seq);
}
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