get-source
Advanced tools
Comparing version 1.0.31 to 1.0.32
@@ -57,5 +57,7 @@ "use strict"; | ||
.resolve (O.assign ({}, loc, { | ||
line: originalLoc.line, | ||
column: originalLoc.column, | ||
name: originalLoc.name })) : loc | ||
line: originalLoc.line, | ||
column: originalLoc.column + 1, | ||
name: originalLoc.name | ||
})) | ||
: loc | ||
} | ||
@@ -62,0 +64,0 @@ } |
{ | ||
"name": "get-source", | ||
"version": "1.0.31", | ||
"version": "1.0.32", | ||
"description": "Platform-agnostic source code inspection, with sourcemaps support", | ||
@@ -5,0 +5,0 @@ "main": "get-source", |
@@ -79,3 +79,3 @@ | ||
loc.line.should.equal (4) | ||
loc.column.should.equal (1) | ||
loc.column.should.equal (2) | ||
loc.sourceFile.path.should.contain ('test/files/original.js') | ||
@@ -82,0 +82,0 @@ loc.sourceLine.should.equal ('\treturn \'hello world\' }') |
@@ -61,3 +61,3 @@ "use strict"; | ||
resolved.line.should.equal (4) | ||
resolved.column.should.equal (1) | ||
resolved.column.should.equal (2) | ||
resolved.sourceFile.should.equal (getSource ('./test/files/original.js')) | ||
@@ -83,3 +83,3 @@ resolved.sourceLine.should.equal ('\treturn \'hello world\' }') | ||
resolved.line.should.equal (4) | ||
resolved.column.should.equal (1) | ||
resolved.column.should.equal (2) | ||
resolved.sourceFile.path.should.equal (path.resolve ('./test/files') + '/## embedded ##') // I've changed the filename manually, by editing .map file | ||
@@ -99,3 +99,3 @@ resolved.sourceLine.should.equal ('\treturn \'hello world\' }') | ||
resolved.line.should.equal (4) | ||
resolved.column.should.equal (1) | ||
resolved.column.should.equal (2) | ||
resolved.sourceLine.should.equal ('\treturn \'hello world\' }') | ||
@@ -118,3 +118,3 @@ }) | ||
resolved.line.should.equal (4) | ||
resolved.column.should.equal (1) | ||
resolved.column.should.equal (2) | ||
resolved.sourceFile.path.should.equal (path.resolve ('./test/files/original.js')) | ||
@@ -121,0 +121,0 @@ resolved.sourceLine.should.equal ('\treturn \'hello world\' }') |
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
26162
361