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 1.0.33 to 1.0.34

17

get-source.js

@@ -105,8 +105,15 @@ "use strict";

// Node v4 does not support destructuring...
// const [,url] = this.text.match (/\u0023 sourceMappingURL=(.+)\n?/) || [undefined, undefined] // escape #, otherwise it will match this exact line.. %)
const match = this.text.match (/\u0023 sourceMappingURL=(.+)\n?/) || [undefined, undefined] // escape #, otherwise it will match this exact line.. %)
, url = match[1]
/* Extract the last sourceMap occurence (TODO: support multiple sourcemaps) */
const re = /\u0023 sourceMappingURL=(.+)\n?/g
let lastMatch = undefined
while (true) {
const match = re.exec (this.text)
if (match) lastMatch = match
else break
}
const url = lastMatch && lastMatch[1]
if (url) {

@@ -113,0 +120,0 @@

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

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