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

react-snowfall

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-snowfall - npm Package Compare versions

Comparing version 1.1.0-alpha.1 to 1.1.0-alpha.2

4

lib/Snowflake.js

@@ -81,3 +81,5 @@ "use strict";

_this.params.x = (x + wind * framesPassed) % canvas.offsetWidth;
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; // Update the wind and speed towards the desired values
if (wind < 0 && _this.params.x < 0) _this.params.x = canvas.offsetWidth + 10;
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight;
if (speed < 0 && _this.params.y < 0) _this.params.y = canvas.offsetHeight + 10; // Update the wind and speed towards the desired values

@@ -84,0 +86,0 @@ _this.params.speed = (0, _utils.lerp)(speed, nextSpeed, 0.01);

{
"name": "react-snowfall",
"version": "1.1.0-alpha.1",
"version": "1.1.0-alpha.2",
"description": "A react component that creates a snowfall effect",

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

@@ -17,10 +17,5 @@ {

"esModuleInterop": true,
"lib": [
"dom",
"es2015"
]
"lib": ["dom", "es2015"]
},
"include": [
"src"
]
}
"include": ["src"]
}

Sorry, the diff of this file is not supported yet

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