🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

webpack-sources

Package Overview
Dependencies
Maintainers
5
Versions
54
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-sources - npm Package Compare versions

Comparing version

to
1.4.3

12

lib/PrefixSource.js

@@ -56,11 +56,13 @@ /*

node.walk(function(chunk, mapping) {
var parts = chunk.split("\n");
var parts = chunk.split(/(\n)/);
for(var i = 0; i < parts.length; i += 2) {
var nl = i + 1 < parts.length;
var part = parts[i] + (nl ? "\n" : "");
if(part && needPrefix) {
output.push(prefix);
if(part) {
if(needPrefix) {
output.push(prefix);
}
output.push(new SourceNode(mapping.line, mapping.column, mapping.source, part, mapping.name));
needPrefix = nl;
}
output.push(new SourceNode(mapping.line, mapping.column, mapping.source, chunk, mapping.name));
needPrefix = nl;
}

@@ -67,0 +69,0 @@ });

{
"name": "webpack-sources",
"version": "1.4.2",
"version": "1.4.3",
"description": "Source code handling classes for webpack",

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