Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

convert-source-map

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

convert-source-map - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

9

index.js

@@ -23,3 +23,3 @@ 'use strict';

mapFileCommentRx.lastIndex = 0;
// for some odd reason //# .. captures in 1 and /* .. */ in 2

@@ -50,3 +50,3 @@ var filename = r[1] || r[2];

var line;
// find first line which contains a source map starting at end of content
// find first line which contains a source map starting at end of content
for (var i = lines.length - 1; i > 0; i--) {

@@ -118,3 +118,6 @@ line = lines[i]

exports.fromSource = function (content, largeSource) {
if (largeSource) return convertFromLargeSource(content);
if (largeSource) {
var res = convertFromLargeSource(content);
return res ? res : null;
}

@@ -121,0 +124,0 @@ var m = content.match(commentRx);

{
"name": "convert-source-map",
"version": "1.1.1",
"version": "1.1.2",
"description": "Converts a source-map from/to different formats and allows adding/changing properties.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -196,1 +196,13 @@ 'use strict';

})
test('return null fromSource when largeSource is true', function(t) {
var mod = convert.fromSource('', true)
, expected = null;
t.equal(
mod
, expected
, 'return value should be null'
)
t.end()
})
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