Comparing version 1.4.1 to 1.4.2
(function() { | ||
var Deprecation, SourceMapCache, convertLine; | ||
var Deprecation, SourceMapCache; | ||
convertLine = require('coffeestack').convertLine; | ||
SourceMapCache = {}; | ||
@@ -51,3 +49,3 @@ | ||
Deprecation.prototype.getLocationFromCallsite = function(callsite) { | ||
var column, converted, fileName, line; | ||
var column, fileName, line; | ||
if (callsite.location != null) { | ||
@@ -64,7 +62,2 @@ return callsite.location; | ||
column = callsite.getColumnNumber(); | ||
if (/\.coffee$/.test(fileName)) { | ||
if (converted = convertLine(fileName, line, column, SourceMapCache)) { | ||
line = converted.line, column = converted.column; | ||
} | ||
} | ||
return "" + fileName + ":" + line + ":" + column; | ||
@@ -71,0 +64,0 @@ } |
{ | ||
"name": "grim", | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Log usage of deprecated methods", | ||
@@ -24,3 +24,2 @@ "main": "./lib/grim", | ||
"dependencies": { | ||
"coffeestack": "^1", | ||
"emissary": "^1.2.0" | ||
@@ -27,0 +26,0 @@ }, |
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
1
11802
231
- Removedcoffeestack@^1
- Removedamdefine@1.0.1(transitive)
- Removedasync@1.5.2(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcoffee-script@1.8.0(transitive)
- Removedcoffeestack@1.2.0(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removedfs-plus@3.1.1(transitive)
- Removedfs.realpath@1.0.0(transitive)
- Removedglob@7.2.3(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.3.50.5.6(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedrimraf@2.7.1(transitive)
- Removedsource-map@0.1.43(transitive)
- Removedwrappy@1.0.2(transitive)