Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-simple-animate

Package Overview
Dependencies
Maintainers
2
Versions
181
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-simple-animate - npm Package Compare versions

Comparing version 3.1.0 to 3.1.1

.rpt2_cache/rpt2_04c4ba7ceaba534dd54c16040373a9c3bd3cf02b/code/cache/11e37436ce8151a6727c408bab110ccaf9361905

11

dist/index.es.js

@@ -108,8 +108,7 @@ import * as React from 'react';

const animationLength = keyframes.length;
return `${keyframes.reduce((previous, keyframe, currentIndex) => {
if (keyframe) {
return `${previous} ${animationLength === 2 ? currentIndex * 100 : parseFloat((100 / (animationLength - 1)).toFixed(2)) * currentIndex}% {${keyframe}}`;
}
return `${previous} ${Object.keys(keyframe)[0]}% {${Object.values(keyframe)[0]}}`;
}, `@keyframes ${animationName} {`)}}`;
return `${keyframes.reduce((previous, keyframe, currentIndex) => typeof keyframe === 'string'
? `${previous} ${animationLength === 2
? currentIndex * 100
: parseFloat((100 / (animationLength - 1)).toFixed(2)) * currentIndex}% {${keyframe}}`
: `${previous} ${Object.keys(keyframe)[0]}% {${Object.values(keyframe)[0]}}`, `@keyframes ${animationName} {`)}}`;
}

@@ -116,0 +115,0 @@

@@ -111,8 +111,7 @@ 'use strict';

const animationLength = keyframes.length;
return `${keyframes.reduce((previous, keyframe, currentIndex) => {
if (keyframe) {
return `${previous} ${animationLength === 2 ? currentIndex * 100 : parseFloat((100 / (animationLength - 1)).toFixed(2)) * currentIndex}% {${keyframe}}`;
}
return `${previous} ${Object.keys(keyframe)[0]}% {${Object.values(keyframe)[0]}}`;
}, `@keyframes ${animationName} {`)}}`;
return `${keyframes.reduce((previous, keyframe, currentIndex) => typeof keyframe === 'string'
? `${previous} ${animationLength === 2
? currentIndex * 100
: parseFloat((100 / (animationLength - 1)).toFixed(2)) * currentIndex}% {${keyframe}}`
: `${previous} ${Object.keys(keyframe)[0]}% {${Object.values(keyframe)[0]}}`, `@keyframes ${animationName} {`)}}`;
}

@@ -119,0 +118,0 @@

{
"name": "react-simple-animate",
"version": "3.1.0",
"version": "3.1.1",
"description": "react simple animate",

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

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