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-native-confetti
Advanced tools
TypeScript definitions for react-native-confetti
npm install --save @types/react-native-confetti
This package contains type definitions for react-native-confetti (https://github.com/cdvntr/react-native-confetti).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-native-confetti.
import { Component } from "react";
export interface ConfettiProps {
/**
* The number of confetti to render.
* @default 100
*/
confettiCount?: number;
/**
* The duration of the animation in milliseconds.
* @default 30
*/
timeout?: number;
/**
* Render confetti continuously until stopConfetti() is called.
*
* This ignores confettiCount.
*
* @default false
*/
untilStopped?: boolean;
/**
* The duration until a confetti reaches bottom.
*/
duration?: number;
/**
* Array of color strings to choose from.
* @default ["rgb(242.2, 102, 68.8)","rgb(255, 198.9, 91.8)","rgb(122.4, 198.9, 163.2)","rgb(76.5, 193.8, 216.7)","rgb(147.9, 99.4, 140.2)"]
*/
colors?: string[];
/**
* Multiplier for size of confetti (width and heigh).
* @default 1
*/
size?: number;
/**
* Multiplier for radius of confetti (border radius).
* @default 1
*/
bsize?: number;
}
export default class Confetti extends Component<ConfettiProps> {
/**
* Start the confetti animation.
*
* The optional callback will be called when the entire animation is complete.
*/
startConfetti(callback?: () => void): void;
/**
* Stop the confetti animation.
*/
stopConfetti(): void;
/**
* Remove confetti by its key.
*
* This function is used internally.
*/
removeConfetti(key: number): void;
}
These definitions were written by Maurice el-Banna.
FAQs
TypeScript definitions for react-native-confetti
We found that @types/react-native-confetti 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.