Socket
Socket
Sign inDemoInstall

css-loader

Package Overview
Dependencies
95
Maintainers
7
Versions
151
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.1.0 to 5.1.1

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [5.1.1](https://github.com/webpack-contrib/css-loader/compare/v5.1.0...v5.1.1) (2021-03-01)
### Bug Fixes
* crash on modified AST from `postcss-loader` ([#1268](https://github.com/webpack-contrib/css-loader/issues/1268)) ([d2a1a84](https://github.com/webpack-contrib/css-loader/commit/d2a1a84afc63fdfb2a4ce6668ed9f2d7f1ba56ca))
## [5.1.0](https://github.com/webpack-contrib/css-loader/compare/v5.0.2...v5.1.0) (2021-02-25)

@@ -7,0 +14,0 @@

2

dist/plugins/postcss-import-parser.js

@@ -20,3 +20,3 @@ "use strict";

if (node.raws.afterName && node.raws.afterName.trim().length > 0) {
if (node.raws && node.raws.afterName && node.raws.afterName.trim().length > 0) {
const lastCommentIndex = node.raws.afterName.lastIndexOf("/*");

@@ -23,0 +23,0 @@ const matched = node.raws.afterName.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp);

@@ -73,6 +73,6 @@ "use strict";

const parsed = (0, _postcssValueParser.default)(typeof node.raws.value === "undefined" ? node[key] : node.raws.value.raw);
const parsed = (0, _postcssValueParser.default)(node.raws && node.raws.value && node.raws.value.raw ? node.raws.value.raw : node[key]);
let inBetween;
if (typeof node.raws.between !== "undefined") {
if (node.raws && node.raws.between) {
const lastCommentIndex = node.raws.between.lastIndexOf("/*");

@@ -79,0 +79,0 @@ const matched = node.raws.between.slice(lastCommentIndex).match(_utils.webpackIgnoreCommentRegexp);

{
"name": "css-loader",
"version": "5.1.0",
"version": "5.1.1",
"description": "css loader module for webpack",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc