New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

dom-confetti

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dom-confetti - npm Package Compare versions

Comparing version 0.1.0 to 0.2.0-beta.1

3

index.d.ts

@@ -6,2 +6,5 @@ interface ConfettiConfig {

height?: number;
duration?: number;
dragFriction?: number;
stagger?: number;
startVelocity?: number;

@@ -8,0 +11,0 @@ elementCount?: number;

6

lib/main.js

@@ -109,3 +109,3 @@ "use strict";

duration: 3000,
delay: 0,
stagger: 0,
dragFriction: 0.1,

@@ -129,3 +129,3 @@ random: Math.random

duration = _Object$assign.duration,
delay = _Object$assign.delay,
stagger = _Object$assign.stagger,
random = _Object$assign.random;

@@ -141,3 +141,3 @@

return animate(root, fettis, dragFriction, decay, duration, delay);
return animate(root, fettis, dragFriction, decay, duration, stagger);
}
{
"name": "dom-confetti",
"version": "0.1.0",
"version": "0.2.0-beta.1",
"description": "confetti with dom elements",

@@ -5,0 +5,0 @@ "main": "lib/main.js",

@@ -36,2 +36,3 @@ # dom-confetti

- `duration` - Duration in milliseconds, defaults to 3000
- `stagger` - Delay for each fetti in milliseconds, defaults to 0.
- `random` - Randomization function, defaults to Math.random

@@ -38,0 +39,0 @@ - `colors` - An array of color codes, defaults to `['#a864fd', '#29cdff', '#78ff44', '#ff718d' '#fdff6a']`

@@ -98,3 +98,3 @@ const defaultColors = ["#a864fd", "#29cdff", "#78ff44", "#ff718d", "#fdff6a"];

duration: 3000,
delay: 0,
stagger: 0,
dragFriction: 0.1,

@@ -116,3 +116,3 @@ random: Math.random

duration,
delay,
stagger,
random

@@ -126,3 +126,3 @@ } = Object.assign({}, defaults, config);

return animate(root, fettis, dragFriction, decay, duration, delay);
return animate(root, fettis, dragFriction, decay, duration, stagger);
}
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