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

source-list-map

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

source-list-map - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

test/fixtures/from-to-tests/multiple-mappings-per-line.expected.map

18

lib/fromStringWithSourceMap.js

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

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