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 2.0.2 to 2.0.3

11

get-source.js

@@ -114,6 +114,8 @@ "use strict";

try { return SyncPromise.valueFrom (file) }
catch (e) { return {
path, text: '', error: e,
resolve (loc) { return assign ({}, loc, { error: e, sourceLine: '', sourceFile: '' }) }
} }
catch (e) {
return {
path, text: '', error: e,
resolve (loc) { return assign ({}, loc, { error: e, sourceLine: '', sourceFile: '' }) }
}
}
}

@@ -136,3 +138,2 @@ return file

resolve (xhr.responseText)
} else {

@@ -139,0 +140,0 @@ resolve (module.require ('fs').readFileSync (path, { encoding: 'utf8' }))

{
"name": "get-source",
"version": "2.0.2",
"version": "2.0.3",
"description": "Platform-agnostic source code inspection, with sourcemaps support",

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

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

Pretty much the same as synchronous, except `getSource.async`. It returns awaitable promises:
Pretty much the same as synchronous, except it's `getSource.async`. It returns awaitable promises:

@@ -66,0 +66,0 @@ ```javascript

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