Socket
Socket
Sign inDemoInstall

stylehacks

Package Overview
Dependencies
Maintainers
7
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylehacks - npm Package Compare versions

Comparing version 7.0.2 to 7.0.3

8

package.json
{
"name": "stylehacks",
"version": "7.0.2",
"version": "7.0.3",
"description": "Detect/remove browser hacks from CSS files.",

@@ -31,4 +31,4 @@ "main": "src/index.js",

"dependencies": {
"browserslist": "^4.23.1",
"postcss-selector-parser": "^6.1.0"
"browserslist": "^4.23.3",
"postcss-selector-parser": "^6.1.1"
},

@@ -42,3 +42,3 @@ "bugs": {

"devDependencies": {
"postcss": "^8.4.38"
"postcss": "^8.4.40"
},

@@ -45,0 +45,0 @@ "peerDependencies": {

@@ -1,3 +0,3 @@

declare function _exports(selector: import('postcss-selector-parser').Selector, index: number, value: string): boolean | undefined | '';
declare function _exports(selector: import("postcss-selector-parser").Selector, index: number, value: string): boolean | undefined | "";
export = _exports;
//# sourceMappingURL=exists.d.ts.map

@@ -12,10 +12,7 @@ export = pluginCreator;

*/
declare function pluginCreator(opts?: Options): import('postcss').Plugin;
declare function pluginCreator(opts?: Options): import("postcss").Plugin;
declare namespace pluginCreator {
export { detect, postcss, AutoprefixerOptions, BrowserslistOptions, Options };
}
type Options = {
lint?: boolean;
} & AutoprefixerOptions & BrowserslistOptions;
declare function detect(node: import('postcss').Node): boolean;
declare function detect(node: import("postcss").Node): boolean;
declare var postcss: true;

@@ -25,4 +22,7 @@ type AutoprefixerOptions = {

};
type BrowserslistOptions = Pick<browserslist.Options, 'stats' | 'path' | 'env'>;
type BrowserslistOptions = Pick<browserslist.Options, "stats" | "path" | "env">;
type Options = {
lint?: boolean;
} & AutoprefixerOptions & BrowserslistOptions;
import browserslist = require("browserslist");
//# sourceMappingURL=index.d.ts.map

@@ -1,3 +0,3 @@

declare function _exports(node: import('postcss').Rule): boolean;
declare function _exports(node: import("postcss").Rule): boolean;
export = _exports;
//# sourceMappingURL=isMixin.d.ts.map

@@ -8,3 +8,3 @@ export = BasePlugin;

*/
constructor(targets: string[], nodeTypes: string[], result?: import('postcss').Result | undefined);
constructor(targets: string[], nodeTypes: string[], result?: import("postcss").Result | undefined);
/** @type {NodeWithInfo[]} */

@@ -20,3 +20,3 @@ nodes: NodeWithInfo[];

*/
push(node: import('postcss').Node, metadata: {
push(node: import("postcss").Node, metadata: {
identifier: string;

@@ -29,3 +29,3 @@ hack: string;

*/
any(node: import('postcss').Node): boolean;
any(node: import("postcss").Node): boolean;
/**

@@ -35,3 +35,3 @@ * @param {import('postcss').Node} node

*/
detectAndResolve(node: import('postcss').Node): void;
detectAndResolve(node: import("postcss").Node): void;
/**

@@ -41,5 +41,5 @@ * @param {import('postcss').Node} node

*/
detectAndWarn(node: import('postcss').Node): void;
detectAndWarn(node: import("postcss").Node): void;
/** @param {import('postcss').Node} node */
detect(node: import('postcss').Node): void;
detect(node: import("postcss").Node): void;
/** @return {void} */

@@ -52,3 +52,9 @@ resolve(): void;

}
type NodeWithInfo = import('postcss').Node & {
type Plugin = {
targets: Set<string>;
nodeTypes: Set<string>;
detectAndResolve: (node: import("postcss").Node) => void;
detectAndWarn: (node: import("postcss").Node) => void;
};
type NodeWithInfo = import("postcss").Node & {
_stylehacks: {

@@ -61,8 +67,2 @@ message: string;

};
type Plugin = {
targets: Set<string>;
nodeTypes: Set<string>;
detectAndResolve: (node: import('postcss').Node) => void;
detectAndWarn: (node: import('postcss').Node) => void;
};
//# sourceMappingURL=plugin.d.ts.map
export = BodyEmpty;
declare class BodyEmpty extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,3 +9,3 @@ * @param {import('postcss').Rule} rule

*/
detect(rule: import('postcss').Rule): void;
detect(rule: import("postcss").Rule): void;
/**

@@ -15,3 +15,3 @@ * @param {import('postcss').Rule} rule

*/
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
analyse(rule: import("postcss").Rule): parser.SyncProcessor<void>;
}

@@ -18,0 +18,0 @@ import BasePlugin = require("../plugin");

export = HtmlCombinatorCommentBody;
declare class HtmlCombinatorCommentBody extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,7 +9,7 @@ * @param {import('postcss').Rule} rule

*/
detect(rule: import('postcss').Rule): void;
detect(rule: import("postcss").Rule): void;
/** @param {import('postcss').Rule} rule
* @return {parser.SyncProcessor<void>}
*/
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
analyse(rule: import("postcss").Rule): parser.SyncProcessor<void>;
}

@@ -16,0 +16,0 @@ import BasePlugin = require("../plugin");

export = HtmlFirstChild;
declare class HtmlFirstChild extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,3 +9,3 @@ * @param {import('postcss').Rule} rule

*/
detect(rule: import('postcss').Rule): void;
detect(rule: import("postcss").Rule): void;
/**

@@ -15,3 +15,3 @@ * @param {import('postcss').Rule} rule

*/
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
analyse(rule: import("postcss").Rule): parser.SyncProcessor<void>;
}

@@ -18,0 +18,0 @@ import BasePlugin = require("../plugin");

export = Important;
declare class Important extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').Declaration} decl

*/
detect(decl: import('postcss').Declaration): void;
detect(decl: import("postcss").Declaration): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=important.d.ts.map
declare const _exports: ({
new (result?: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined): important;
new (result?: import("postcss").Result | undefined): important;
} | {
new (result?: import("postcss").Result<import("postcss").Document | import("postcss").Root> | undefined): trailingSlashComma;
new (result?: import("postcss").Result | undefined): trailingSlashComma;
})[];

@@ -6,0 +6,0 @@ export = _exports;

export = LeadingStar;
declare class LeadingStar extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').Declaration | import('postcss').AtRule} node

*/
detect(node: import('postcss').Declaration | import('postcss').AtRule): void;
detect(node: import("postcss").Declaration | import("postcss").AtRule): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=leadingStar.d.ts.map
export = LeadingUnderscore;
declare class LeadingUnderscore extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').Declaration} decl

*/
detect(decl: import('postcss').Declaration): void;
detect(decl: import("postcss").Declaration): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=leadingUnderscore.d.ts.map
export = MediaSlash0;
declare class MediaSlash0 extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').AtRule} rule

*/
detect(rule: import('postcss').AtRule): void;
detect(rule: import("postcss").AtRule): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=mediaSlash0.d.ts.map
export = MediaSlash0Slash9;
declare class MediaSlash0Slash9 extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').AtRule} rule

*/
detect(rule: import('postcss').AtRule): void;
detect(rule: import("postcss").AtRule): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=mediaSlash0Slash9.d.ts.map
export = MediaSlash9;
declare class MediaSlash9 extends BasePlugin {
/** @param {import('postcss').Result} result */
constructor(result: import('postcss').Result);
constructor(result: import("postcss").Result);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').AtRule} rule

*/
detect(rule: import('postcss').AtRule): void;
detect(rule: import("postcss").AtRule): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=mediaSlash9.d.ts.map
export = Slash9;
declare class Slash9 extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').Declaration} decl

*/
detect(decl: import('postcss').Declaration): void;
detect(decl: import("postcss").Declaration): void;
}
import BasePlugin = require("../plugin.js");
//# sourceMappingURL=slash9.d.ts.map
export = StarHtml;
declare class StarHtml extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,3 +9,3 @@ * @param {import('postcss').Rule} rule

*/
detect(rule: import('postcss').Rule): void;
detect(rule: import("postcss").Rule): void;
/**

@@ -15,3 +15,3 @@ * @param {import('postcss').Rule} rule

*/
analyse(rule: import('postcss').Rule): parser.SyncProcessor<void>;
analyse(rule: import("postcss").Rule): parser.SyncProcessor<void>;
}

@@ -18,0 +18,0 @@ import BasePlugin = require("../plugin");

export = TrailingSlashComma;
declare class TrailingSlashComma extends BasePlugin {
/** @param {import('postcss').Result=} result */
constructor(result?: import('postcss').Result | undefined);
constructor(result?: import("postcss").Result | undefined);
/**

@@ -9,5 +9,5 @@ * @param {import('postcss').Rule} rule

*/
detect(rule: import('postcss').Rule): void;
detect(rule: import("postcss").Rule): void;
}
import BasePlugin = require("../plugin");
//# sourceMappingURL=trailingSlashComma.d.ts.map

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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