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.9 to 2.0.10

7

get-source.js

@@ -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",

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