Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

get-source

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

get-source - npm Package Compare versions

Comparing version 1.0.31 to 1.0.32

8

get-source.js

@@ -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\' }')

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc