Comparing version 1.0.0 to 1.0.1
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
90147
1898
0