🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

js-confetti

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-confetti - npm Package Compare versions

Comparing version

to
0.10.2

5

package.json
{
"name": "js-confetti",
"version": "0.10.1",
"version": "0.10.2",
"license": "MIT",

@@ -23,3 +23,4 @@ "description": "JS Confetti library with zero dependencies, works without any config, TS typings included, adapts to user screen",

"build-site": "NODE_ENV=production webpack --config webpack.config.site.ts",
"lint": "eslint src --ext .ts"
"lint": "eslint . --ignore-pattern node_modules/ --ext .ts --ext .tsx",
"lint-fix": "eslint . --ignore-pattern node_modules/ --ext .ts --ext .tsx --fix"
},

@@ -26,0 +27,0 @@ "devDependencies": {

6

typings/index.d.ts

@@ -6,2 +6,6 @@ // Type definitions for js-confetti

interface IJSConfettiConfig {
canvas?: HTMLCanvasElement,
}
interface IAddConfettiConfig {

@@ -16,5 +20,5 @@ confettiRadius?: number,

declare class JSConfetti {
constructor();
constructor(jsConfettiConfig?: IJSConfettiConfig);
addConfetti(confettiConfig?: IAddConfettiConfig): Promise<void>;
}