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.2.0-beta.1 to 0.2.0-beta.2

7

lib/main.js

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

function animate(root, fettis, dragFriction, decay, duration, delay) {
function animate(root, fettis, dragFriction, decay, duration, stagger) {
var startTime = void 0;

@@ -81,3 +81,3 @@

var progress = startTime === time ? 0 : (time - startTime) / duration;
fettis.slice(0, Math.ceil(elapsed / delay)).forEach(function (fetti) {
fettis.slice(0, Math.ceil(elapsed / stagger)).forEach(function (fetti) {
updateFetti(fetti, progress, dragFriction, decay);

@@ -130,3 +130,4 @@ });

duration = _Object$assign.duration,
stagger = _Object$assign.stagger,
_Object$assign$stagge = _Object$assign.stagger,
stagger = _Object$assign$stagge === undefined ? config.delay : _Object$assign$stagge,
random = _Object$assign.random;

@@ -133,0 +134,0 @@

{
"name": "dom-confetti",
"version": "0.2.0-beta.1",
"version": "0.2.0-beta.2",
"description": "confetti with dom elements",

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

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

function animate(root, fettis, dragFriction, decay, duration, delay) {
function animate(root, fettis, dragFriction, decay, duration, stagger) {
let startTime;

@@ -70,3 +70,3 @@

const progress = startTime === time ? 0 : (time - startTime) / duration;
fettis.slice(0, Math.ceil(elapsed / delay)).forEach(fetti => {
fettis.slice(0, Math.ceil(elapsed / stagger)).forEach(fetti => {
updateFetti(fetti, progress, dragFriction, decay);

@@ -117,3 +117,3 @@ });

duration,
stagger,
stagger = config.delay, // Backwards compatibility
random

@@ -120,0 +120,0 @@ } = Object.assign({}, defaults, config);

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