convert-source-map
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -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() | ||
}) |
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
30300
544