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

get-source

Package Overview
Dependencies
Maintainers
1
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.0 to 1.0.1

2

package.json
{
"name": "get-source",
"version": "1.0.0",
"version": "1.0.1",
"description": "Platform-agnostic source code inspection, with sourcemaps support",

@@ -5,0 +5,0 @@ "main": "get-source",

@@ -30,3 +30,3 @@ # get-source

Will read `./scripts/index.min.js` synchronously (either via XHR, or by filesystem API, depending on the environment). Result will contain the following fields:
Will read the file synchronously (either via XHR or by filesystem API, depending on the environment). Result will contain the following fields:

@@ -51,4 +51,4 @@ ```javascript

column: <original column number>,
sourceFile: <original source file object>
sourceLine: <original source line text, trimmed>
sourceFile: <original source file object>,
sourceLine: <original source line text>
}

@@ -61,4 +61,2 @@ ```

In case of a nonexistent file:
```javascript

@@ -75,2 +73,2 @@ nonsense = getSource ('/some/nonexistent/file')

resolved.sourceLine // empty string (so it's safe to access without checking)
```
```
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