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

purgecss

Package Overview
Dependencies
Maintainers
2
Versions
64
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

purgecss - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

11

lib/purgecss.d.ts

@@ -1,4 +0,5 @@

// Type definitions for Purgecss 0.14.0
// Type definitions for Purgecss 1.0
// Project: Purgecss
// Definitions by: Ffloriel https://github.com/Ffloriel
// JounQin https://github.com/JounQin

@@ -14,3 +15,3 @@ export = Purgecss

checkOptions(options: Purgecss.Options)
checkOptions(options: Purgecss.Options): void

@@ -38,10 +39,10 @@ purge(): Array<Purgecss.FileResult>

isIgnoreAnnotation(node: Object, type: IgnoreType): boolean
isIgnoreAnnotation(node: Object, type: Purgecss.IgnoreType): boolean
isRuleEmpty(node: Object): boolean
shouldKeepSelector(
selectorsInContent: Set<string>,
selectorsInRule: Array<string>
)
) :boolean
}

@@ -48,0 +49,0 @@

@@ -738,2 +738,5 @@ import fs from 'fs';

}
if (node.type === 'comment') {
if (_this.isIgnoreAnnotation(node, 'start')) _this.ignore = true;else if (_this.isIgnoreAnnotation(node, 'end')) _this.ignore = false;
}
});

@@ -754,3 +757,2 @@ }

var annotation = node.prev();
if (this.isIgnoreAnnotation(annotation, 'start')) this.ignore = true;else if (this.isIgnoreAnnotation(annotation, 'end')) this.ignore = false;
if (this.isIgnoreAnnotation(annotation, 'next') || this.ignore === true) return;

@@ -757,0 +759,0 @@

@@ -742,2 +742,5 @@ 'use strict';

}
if (node.type === 'comment') {
if (_this.isIgnoreAnnotation(node, 'start')) _this.ignore = true;else if (_this.isIgnoreAnnotation(node, 'end')) _this.ignore = false;
}
});

@@ -758,3 +761,2 @@ }

var annotation = node.prev();
if (this.isIgnoreAnnotation(annotation, 'start')) this.ignore = true;else if (this.isIgnoreAnnotation(annotation, 'end')) this.ignore = false;
if (this.isIgnoreAnnotation(annotation, 'next') || this.ignore === true) return;

@@ -761,0 +763,0 @@

{
"name": "purgecss",
"version": "1.0.0",
"version": "1.0.1",
"description": "Remove unused css selectors.",

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