get-source
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -10,3 +10,4 @@ "use strict"; | ||
path = require ('./impl/path'), | ||
dataURIToBuffer = require ('data-uri-to-buffer') | ||
dataURIToBuffer = require ('data-uri-to-buffer'), | ||
nodeRequire = isBrowser ? null : module.require | ||
@@ -145,3 +146,3 @@ /* ------------------------------------------------------------------------ */ | ||
} else { | ||
resolve (module.require ('fs').readFileSync (path, { encoding: 'utf8' })) | ||
resolve (nodeRequire ('fs').readFileSync (path, { encoding: 'utf8' })) | ||
} | ||
@@ -158,3 +159,3 @@ }) | ||
return new Promise ((resolve, reject) => { | ||
module.require ('fs').readFile (path, { encoding: 'utf8' }, (e, x) => { | ||
nodeRequire ('fs').readFile (path, { encoding: 'utf8' }, (e, x) => { | ||
e ? reject (e) : resolve (x) | ||
@@ -161,0 +162,0 @@ }) |
{ | ||
"name": "get-source", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"description": "Fetch source-mapped sources. Peek by file, line, column. Node & browsers. Sync & async.", | ||
@@ -5,0 +5,0 @@ "main": "get-source", |
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
34864
522