Comparing version 2.0.0 to 2.0.1
12
index.js
@@ -24,3 +24,10 @@ var abbott = require('abbott'); | ||
function getCallLine(stack){ | ||
return stack.split('\n')[3].match(/at (.*)/)[1]; | ||
var index = 0, | ||
lines = stack.split('\n'); | ||
while(lines[++index] && lines[index].match(/righto\/index\.js/)){} | ||
var match = lines[index] && lines[index].match(/at (.*)/); | ||
return match ? match[1] : ' - No trace - '; | ||
} | ||
@@ -62,3 +69,4 @@ | ||
){ | ||
console.warn('Possible unsupported take/ignore syntax detected:\n' + getCallLine(this._stack)); | ||
console.warn('\u001b[33mPossible unsupported take/ignore syntax detected:\u001b[39m\n' + getCallLine(this._stack)); | ||
} | ||
@@ -65,0 +73,0 @@ |
{ | ||
"name": "righto", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "directories": { |
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
51973
1363