@everymundo/linenumber
Advanced tools
Comparing version 1.0.0 to 1.0.1
@@ -7,3 +7,4 @@ function linenumber() { | ||
secndI = (stack + '\n').indexOf('\n', firstI + 1), | ||
firstMatch = stack.substring(firstI, secndI).match(/\s+\(?(\/([^:]+):\d+)/); | ||
line = stack.substring(firstI, secndI), | ||
firstMatch = line.match(/\s+\(?((?:\/|\w:)([^:]+):\d+)/); | ||
@@ -10,0 +11,0 @@ return firstMatch[1].split(':').pop(); |
{ | ||
"name": "@everymundo/linenumber", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "This is a debugging and testing helper tool that returns the line number in which the function was invoked", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
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
2911
20