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 to 2.0.1

41

lib/applySourceMap.js

@@ -130,22 +130,29 @@ /*

// Construct a left to right node from the found middle to right mapping
const source = m2rBestFit.source;
l2rOutput.push(
new SourceNode(
m2rBestFit.originalLine,
m2rBestFit.originalColumn,
source,
chunk,
allowMiddleName ? middleMapping.name : m2rBestFit.name
)
);
let source = m2rBestFit.source;
// Workaround for bug in source-map
// null sources are incorrectly normalized to "."
if (source && source !== ".") {
l2rOutput.push(
new SourceNode(
m2rBestFit.originalLine,
m2rBestFit.originalColumn,
source,
chunk,
allowMiddleName ? middleMapping.name : m2rBestFit.name
)
);
// Set the source contents once
if (!("$" + source in rightSourceContentsSet)) {
rightSourceContentsSet["$" + source] = true;
const sourceContent = sourceMapConsumer.sourceContentFor(source);
if (sourceContent) {
l2rResult.setSourceContent(source, sourceContent);
// Set the source contents once
if (!("$" + source in rightSourceContentsSet)) {
rightSourceContentsSet["$" + source] = true;
const sourceContent = sourceMapConsumer.sourceContentFor(
source,
true
);
if (sourceContent) {
l2rResult.setSourceContent(source, sourceContent);
}
}
return;
}
return;
}

@@ -152,0 +159,0 @@ }

{
"name": "webpack-sources",
"version": "2.0.0",
"version": "2.0.1",
"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