New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gulp-purgecss

Package Overview
Dependencies
Maintainers
2
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gulp-purgecss - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

71

lib/gulp-purgecss.d.ts
import internal from "stream";
interface RawContent<T = string> {
extension: string;
raw: T;
extension: string;
raw: T;
}
interface RawCSS {
raw: string;
raw: string;
}
interface ExtractorResultDetailed {
attributes: {
names: string[];
values: string[];
};
classes: string[];
ids: string[];
tags: string[];
undetermined: string[];
attributes: {
names: string[];
values: string[];
};
classes: string[];
ids: string[];
tags: string[];
undetermined: string[];
}

@@ -22,34 +22,37 @@ type ExtractorResult = ExtractorResultDetailed | string[];

interface Extractors {
extensions: string[];
extractor: ExtractorFunction;
extensions: string[];
extractor: ExtractorFunction;
}
type StringRegExpArray = Array<RegExp | string>;
type ComplexSafelist = {
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
};
type UserDefinedSafelist = StringRegExpArray | ComplexSafelist;
interface UserDefinedOptions {
content: Array<string | RawContent>;
css: Array<string | RawCSS>;
defaultExtractor?: ExtractorFunction;
extractors?: Array<Extractors>;
fontFace?: boolean;
keyframes?: boolean;
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
content: Array<string | RawContent>;
css: Array<string | RawCSS>;
defaultExtractor?: ExtractorFunction;
extractors?: Array<Extractors>;
fontFace?: boolean;
keyframes?: boolean;
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
}
type PurgeCSSUserDefinedOptions = UserDefinedOptions;
interface UserDefinedOptions$0 extends Omit<PurgeCSSUserDefinedOptions, "css" | "content"> {
content: string[];
interface UserDefinedOptions$0
extends Omit<PurgeCSSUserDefinedOptions, "css" | "content"> {
content: string[];
}
declare function gulpPurgeCSS(options: UserDefinedOptions$0): internal.Transform;
declare function gulpPurgeCSS(
options: UserDefinedOptions$0
): internal.Transform;
export { gulpPurgeCSS as default };
import internal from "stream";
interface RawContent<T = string> {
extension: string;
raw: T;
extension: string;
raw: T;
}
interface RawCSS {
raw: string;
raw: string;
}
interface ExtractorResultDetailed {
attributes: {
names: string[];
values: string[];
};
classes: string[];
ids: string[];
tags: string[];
undetermined: string[];
attributes: {
names: string[];
values: string[];
};
classes: string[];
ids: string[];
tags: string[];
undetermined: string[];
}

@@ -22,34 +22,37 @@ type ExtractorResult = ExtractorResultDetailed | string[];

interface Extractors {
extensions: string[];
extractor: ExtractorFunction;
extensions: string[];
extractor: ExtractorFunction;
}
type StringRegExpArray = Array<RegExp | string>;
type ComplexSafelist = {
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
standard?: StringRegExpArray;
deep?: RegExp[];
greedy?: RegExp[];
variables?: StringRegExpArray;
keyframes?: StringRegExpArray;
};
type UserDefinedSafelist = StringRegExpArray | ComplexSafelist;
interface UserDefinedOptions {
content: Array<string | RawContent>;
css: Array<string | RawCSS>;
defaultExtractor?: ExtractorFunction;
extractors?: Array<Extractors>;
fontFace?: boolean;
keyframes?: boolean;
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
content: Array<string | RawContent>;
css: Array<string | RawCSS>;
defaultExtractor?: ExtractorFunction;
extractors?: Array<Extractors>;
fontFace?: boolean;
keyframes?: boolean;
output?: string;
rejected?: boolean;
stdin?: boolean;
stdout?: boolean;
variables?: boolean;
safelist?: UserDefinedSafelist;
blocklist?: StringRegExpArray;
}
type PurgeCSSUserDefinedOptions = UserDefinedOptions;
interface UserDefinedOptions$0 extends Omit<PurgeCSSUserDefinedOptions, "css" | "content"> {
content: string[];
interface UserDefinedOptions$0
extends Omit<PurgeCSSUserDefinedOptions, "css" | "content"> {
content: string[];
}
declare function gulpPurgeCSS(options: UserDefinedOptions$0): internal.Transform;
declare function gulpPurgeCSS(
options: UserDefinedOptions$0
): internal.Transform;
export { gulpPurgeCSS as default };
{
"name": "gulp-purgecss",
"version": "4.0.0",
"version": "4.0.1",
"description": "Gulp plugin for purgecss",

@@ -40,3 +40,3 @@ "author": "Ffloriel",

"plugin-error": "^1.0.1",
"purgecss": "^4.0.0",
"purgecss": "^4.0.1",
"through2": "^4.0.1"

@@ -52,3 +52,3 @@ },

},
"gitHead": "96703445aff78ac147b95b43f57aadaad6520fa2"
"gitHead": "61a9f5345fe4c5aa9ea3fd7a8706d9492260274c"
}
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