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.2 to 1.1.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [1.1.0](https://github.com/cahilfoley/react-snowfall/compare/v1.0.2...v1.1.0) (2021-02-23)
### Features
* **SnowflakeConfig:** allow additional snowflake properties to be overridden via the Snowfall props ([5d7b3f5](https://github.com/cahilfoley/react-snowfall/commit/5d7b3f53bc64f7724c77afcaba2c1f224611bc0a))
### [1.0.2](https://github.com/cahilfoley/react-snowfall/compare/v1.0.1...v1.0.2) (2019-06-09)

@@ -7,0 +14,0 @@

4

lib/Snowflake.js

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

_this.params.x = (x + wind * framesPassed) % canvas.offsetWidth;
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
_this.params.y = (y + speed * framesPassed) % canvas.offsetHeight; // Update the wind and speed towards the desired values

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

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

@@ -62,2 +62,2 @@ "main": "./lib/Snowfall.js",

}
}
}

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