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

react-spinners

Package Overview
Dependencies
Maintainers
0
Versions
150
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-spinners - npm Package Compare versions

Comparing version 0.14.0 to 0.14.1

6

CHANGELOG.md

@@ -5,2 +5,6 @@ # Change Log

## 0.14.1
- revert [#602](https://github.com/davidhu2000/react-spinners/pull/602) due to issues with test and server side rendering
## 0.14.0

@@ -14,3 +18,3 @@

- **bugfix**: Remove Animation Fill Mode from CircieLoader to fix SSR mismatch style error. [#558](https://github.com/davidhu2000/react-spinners/pull/558)
- **bugfix**: Remove Animation Fill Mode from CircleLoader to fix SSR mismatch style error. [#558](https://github.com/davidhu2000/react-spinners/pull/558)

@@ -17,0 +21,0 @@ ## 0.13.7

13

cjs/helpers/animation.js

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

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix, "-").concat(animationSuffix(10));
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {

@@ -20,12 +20,1 @@ return animationName;

exports.createAnimation = createAnimation;
function animationSuffix(length) {
var result = "";
var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
var counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}

@@ -10,4 +10,4 @@ "use strict";

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});

@@ -7,4 +7,4 @@ "use strict";

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});
export var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix, "-").concat(animationSuffix(10));
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {

@@ -15,12 +15,1 @@ return animationName;

};
function animationSuffix(length) {
var result = "";
var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
var counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}

@@ -8,4 +8,4 @@ /**

var name = createAnimation("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});

@@ -5,4 +5,4 @@ import { createAnimation } from "./animation";

var name = createAnimation("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});

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

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix, "-").concat(animationSuffix(10));
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {

@@ -20,12 +20,1 @@ return animationName;

exports.createAnimation = createAnimation;
function animationSuffix(length) {
var result = "";
var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
var counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}

@@ -10,4 +10,4 @@ "use strict";

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});

@@ -7,4 +7,4 @@ "use strict";

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});
{
"name": "react-spinners",
"version": "0.14.0",
"version": "0.14.1",
"description": "A collection of react loading spinners",

@@ -5,0 +5,0 @@ "repository": {

@@ -14,3 +14,3 @@ (function (factory) {

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix, "-").concat(animationSuffix(10));
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {

@@ -29,13 +29,2 @@ return animationName;

exports.createAnimation = createAnimation;
function animationSuffix(length) {
var result = "";
var characters = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";
var charactersLength = characters.length;
var counter = 0;
while (counter < length) {
result += characters.charAt(Math.floor(Math.random() * charactersLength));
counter += 1;
}
return result;
}
});

@@ -19,5 +19,5 @@ /**

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});
});

@@ -16,5 +16,5 @@ (function (factory) {

var name = (0, animation_1.createAnimation)("TestLoader", "0% {left: -35%;right: 100%} 60% {left: 100%;right: -90%} 100% {left: 100%;right: -90%}", "my-suffix");
expect(name).toMatch(/^react-spinners-TestLoader-my-suffix/);
expect(name).toEqual("react-spinners-TestLoader-my-suffix");
});
});
});
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