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

line

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

line - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

3

lib/line.js

@@ -96,2 +96,5 @@ // Generated by CoffeeScript 1.3.3

args = Array.prototype.slice.call(arguments);
if (args.length === 1 && typeof args[0] === 'boolean') {
args.unshift(null);
}
if (args[0]) {

@@ -98,0 +101,0 @@ return _this._bubble('error', args);

2

package.json
{
"name": "line",
"version": "0.1.3",
"version": "0.1.4",
"description": "Control flow like a boss",

@@ -5,0 +5,0 @@ "keywords": ["ender", "flow", "control", "async"],

@@ -123,2 +123,34 @@ // Generated by CoffeeScript 1.3.3

},
'true/false callbacks': {
topic: function() {
var falseFn, results, success, trueFn;
results = [];
success = this.success;
trueFn = function(cb) {
return process.nextTick(function() {
return cb(true);
});
};
falseFn = function(cb) {
return process.nextTick(function() {
return cb(false);
});
};
new line.Line(null, function() {
return trueFn(this.wait(function(result) {
return results.push(result);
}));
}, function() {
return falseFn(this.wait(function(result) {
return results.push(result);
}));
}, function() {
return success(results);
});
},
'should not trigger errors': function(results) {
equal(results[0], true);
return equal(results[1], false);
}
},
'more nested lines': {

@@ -125,0 +157,0 @@ topic: function() {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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