get-source
Advanced tools
Comparing version 2.0.2 to 2.0.3
@@ -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 |
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
33048
473