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/react-maskedinput
Advanced tools
TypeScript definitions for react-maskedinput
npm install --save @types/react-maskedinput
This package contains type definitions for react-maskedinput (https://github.com/insin/react-maskedinput).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-maskedinput.
import * as React from "react";
declare namespace MaskedInput {
interface FormatCharacter {
validate(char: string): string;
transform?(char: string): string;
}
interface CharsFormatters {
[char: string]: FormatCharacter;
}
interface MaskedInputProps extends
Omit<
React.InputHTMLAttributes<HTMLInputElement>,
| "maxLength"
| "onKeyDown"
| "onKeyPress"
| "onPaste"
>
{
/**
* The masking pattern to be applied to the `<input>`.
* See the {@link https://github.com/insin/inputmask-core#pattern|inputmask-core} docs for
* supported formatting characters.
*/
mask: string;
/**
* Customised format character definitions for use in the pattern.
* See the {@link https://github.com/insin/inputmask-core#formatcharacters|inputmask-core}
* docs for details of the structure of this object.
*/
formatCharacters?: CharsFormatters | undefined;
/**
* Customised placeholder character used to fill in editable parts of the pattern.
* See the {@link https://github.com/insin/inputmask-core#placeholderchar--string|inputmask-core}
* docs for details.
*/
placeholderChar?: string | undefined;
}
}
declare class MaskedInput extends React.Component<MaskedInput.MaskedInputProps> {}
export = MaskedInput;
These definitions were written by Karol Janyst, and Carlos Bonetti.
FAQs
TypeScript definitions for react-maskedinput
We found that @types/react-maskedinput demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.