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

webpack-sources

Package Overview
Dependencies
Maintainers
5
Versions
50
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 2.0.0-beta.2 to 2.0.0-beta.3

28

lib/PrefixSource.js

@@ -45,19 +45,21 @@ /*

node.walk(function(chunk, mapping) {
const parts = chunk.split("\n");
const parts = chunk.split(/(\n)/);
for (let i = 0; i < parts.length; i += 2) {
const nl = i + 1 < parts.length;
const 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;
}

@@ -64,0 +66,0 @@ });

{
"name": "webpack-sources",
"version": "2.0.0-beta.2",
"version": "2.0.0-beta.3",
"description": "Source code handling classes for webpack",

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

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