Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
@types/postcss-mixins
Advanced tools
npm install --save @types/postcss-mixins
This package contains type definitions for postcss-mixins (https://github.com/postcss/postcss-mixins).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/postcss-mixins.
// Type definitions for postcss-mixins 9.0
// Project: https://github.com/postcss/postcss-mixins
// Definitions by: Adam Thompson-Sharpe <https://github.com/MysteryBlokHed>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
import { Container, PluginCreator } from "postcss";
declare namespace postcssMixins {
interface Options {
/**
* Define mixins in code instead of with CSS.
*
* For functions: the first parameter is the mixin rule,
* and all others are parameters passed to the mixin.
*/
mixins?: Record<string, Mixin> | undefined;
/**
* Autoload all mixins from one or more dirs.
* Mixin name will be taken from file name.
*/
mixinsDir?: string | string[] | undefined;
/**
* Similar to mixinsDir, except you can provide fast-glob syntax
* to target or not to target specific files.
*/
mixinsFiles?: string | string[] | undefined;
/**
* Remove unknown mixins instead of throwing an error.
* Off by default.
*/
silent?: boolean | undefined;
}
/**
* A mixin, either a function or an object
*/
type Mixin = MixinFn | MixinObj;
type MixinFn = (mixin: Container, ...args: string[]) => MixinObj | void;
// The Exclude here is meant to make sure that you can't assign invalid functions to MixinObj,
// which is possible with Record<string, any>
// tslint:disable-next-line:ban-types
type MixinObj = Record<string, Exclude<Object, Function>>;
}
declare var postcssMixins: PluginCreator<postcssMixins.Options>;
export = postcssMixins;
These definitions were written by Adam Thompson-Sharpe.
FAQs
TypeScript definitions for postcss-mixins
The npm package @types/postcss-mixins receives a total of 12,482 weekly downloads. As such, @types/postcss-mixins popularity was classified as popular.
We found that @types/postcss-mixins demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.