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

postcss-loader

Package Overview
Dependencies
Maintainers
4
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-loader - npm Package Compare versions

Comparing version 7.3.1 to 7.3.2

48

dist/utils.js

@@ -411,35 +411,39 @@ "use strict";

}
function warningFactory(obj) {
function warningFactory(warning) {
let message = "";
if (typeof obj.line !== "undefined") {
message += `(${obj.line}:${obj.column}) `;
if (typeof warning.line !== "undefined") {
message += `(${warning.line}:${warning.column}) `;
}
if (typeof obj.plugin !== "undefined") {
message += `from "${obj.plugin}" plugin: `;
if (typeof warning.plugin !== "undefined") {
message += `from "${warning.plugin}" plugin: `;
}
message += obj.text;
if (obj.node) {
message += `\n\nCode:\n ${obj.node.toString()}\n`;
message += warning.text;
if (warning.node) {
message += `\n\nCode:\n ${warning.node.toString()}\n`;
}
const warning = new Error(message);
warning.stack = null;
return warning;
const obj = new Error(message, {
cause: warning
});
obj.stack = null;
return obj;
}
function syntaxErrorFactory(obj) {
function syntaxErrorFactory(error) {
let message = "\nSyntaxError\n\n";
if (typeof obj.line !== "undefined") {
message += `(${obj.line}:${obj.column}) `;
if (typeof error.line !== "undefined") {
message += `(${error.line}:${error.column}) `;
}
if (typeof obj.plugin !== "undefined") {
message += `from "${obj.plugin}" plugin: `;
if (typeof error.plugin !== "undefined") {
message += `from "${error.plugin}" plugin: `;
}
message += obj.file ? `${obj.file} ` : "<css input> ";
message += `${obj.reason}`;
const code = obj.showSourceCode();
message += error.file ? `${error.file} ` : "<css input> ";
message += `${error.reason}`;
const code = error.showSourceCode();
if (code) {
message += `\n\n${code}\n`;
}
const error = new Error(message);
error.stack = null;
return error;
const obj = new Error(message, {
cause: error
});
obj.stack = null;
return obj;
}
{
"name": "postcss-loader",
"version": "7.3.1",
"version": "7.3.2",
"description": "PostCSS loader for webpack",

@@ -5,0 +5,0 @@ "license": "MIT",

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