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

postcss-discard-unused

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

postcss-discard-unused - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

5

CHANGELOG.md

@@ -0,1 +1,6 @@

# 1.0.2
* Fixes an integration issue where the module would crash on `undefined`
`rule.nodes`.
# 1.0.1

@@ -2,0 +7,0 @@

1

index.js

@@ -38,2 +38,3 @@ 'use strict';

css.eachAtRule('font-face', function (rule) {
if (!rule.nodes) { return; }
var fontFamilies = rule.nodes.filter(function (node) {

@@ -40,0 +41,0 @@ return node.prop === 'font-family';

2

package.json
{
"name": "postcss-discard-unused",
"version": "1.0.1",
"version": "1.0.2",
"description": "Discard unused counter styles, keyframes and fonts.",

@@ -5,0 +5,0 @@ "main": "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