source-list-map
Advanced tools
Comparing version 0.1.3 to 0.1.4
@@ -34,3 +34,5 @@ /* | ||
function processMapping(mapping, line, ignore) { | ||
base64VLQ.decode(mapping.rest, mapping); | ||
if(mapping.rest && mapping.rest[0] !== ",") { | ||
base64VLQ.decode(mapping.rest, mapping); | ||
} | ||
if(!mapping.rest) | ||
@@ -47,6 +49,14 @@ return false; | ||
base64VLQ.decode(mapping.rest, mapping); | ||
var linePosition = mapping.value + currentLine; | ||
currentLine = linePosition; | ||
if(mapping.rest && mapping.rest[0] !== ",") { | ||
base64VLQ.decode(mapping.rest, mapping); | ||
var linePosition = mapping.value + currentLine; | ||
currentLine = linePosition; | ||
} else { | ||
var linePosition = currentLine; | ||
} | ||
if(mapping.rest && mapping.rest[0] === ",") { | ||
mapping.rest = mapping.rest.substr(1); | ||
} | ||
if(!ignore) { | ||
@@ -53,0 +63,0 @@ addSource(line, sources ? sources[sourceIdx] : null, sourcesContent ? sourcesContent[sourceIdx] : null, linePosition) |
{ | ||
"name": "source-list-map", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "Fast line to line SourceMap generator.", | ||
@@ -5,0 +5,0 @@ "author": "Tobias Koppers @sokra", |
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
22929
41
447