Comparing version 4.0.2 to 4.0.3
13
kgo.js
@@ -7,2 +7,10 @@ var run = require('./run'), | ||
function getStack(error){ | ||
// Firefox/safari/IE dont have a normal stacks..? | ||
// Meh, no stack for them, no one develops in them anyway. | ||
var stackMatch = (error.stack || '').match(/(\s+?at[^]*$)/); | ||
return stackMatch ? stackMatch[1] : ''; | ||
} | ||
function newKgo(){ | ||
@@ -80,6 +88,3 @@ var returnlessId = 0, | ||
// Firefox/safari dont have a normal stacks..? | ||
// Meh, no stack for them, no one develops in them anyway. | ||
var stackMatch = new Error().stack.match(/(\s+?at[^]*$)/), | ||
stack = stackMatch ? stackMatch[1] : ''; | ||
var stack = getStack(new Error()); | ||
@@ -86,0 +91,0 @@ names.map(function(name){ |
{ | ||
"name": "kgo", | ||
"version": "4.0.2", | ||
"version": "4.0.3", | ||
"description": "Flow control the super easy way", | ||
@@ -5,0 +5,0 @@ "main": "kgo.js", |
@@ -561,3 +561,3 @@ var test = require('tape'), | ||
(['*bar', '!foo'], function(){ | ||
t.equal(arguments.length, 2, 'correct number of arguments'); | ||
t.equal(arguments.length, 1, 'correct number of arguments'); | ||
}); | ||
@@ -575,4 +575,4 @@ }); | ||
(['*', '!foo'], function(){ | ||
t.equal(arguments.length, 2, 'correct number of arguments'); | ||
t.equal(arguments.length, 1, 'correct number of arguments'); | ||
}); | ||
}); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27326
744