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

react-dom-confetti

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-dom-confetti - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

8

lib/confetti.js

@@ -40,6 +40,6 @@ "use strict";

_createClass(Confetti, [{
key: "componentWillReceiveProps",
value: function componentWillReceiveProps(nextProps) {
if (nextProps.active && !this.props.active) {
(0, _domConfetti.confetti)(this.container, nextProps.config);
key: "componentDidUpdate",
value: function componentDidUpdate(prevProps) {
if (!prevProps.active && this.props.active) {
(0, _domConfetti.confetti)(this.container, this.props.config);
}

@@ -46,0 +46,0 @@ }

{
"name": "react-dom-confetti",
"version": "0.1.1",
"version": "0.1.2",
"description": "react component for dom-confetti",

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

@@ -14,5 +14,5 @@ import React, { Component } from "react";

componentWillReceiveProps(nextProps) {
if (nextProps.active && !this.props.active) {
confetti(this.container, nextProps.config);
componentDidUpdate(prevProps) {
if (!prevProps.active && this.props.active) {
confetti(this.container, this.props.config);
}

@@ -19,0 +19,0 @@ }

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