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

react-spinners

Package Overview
Dependencies
Maintainers
1
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.13.0-beta.3 to 0.13.0-beta.4

cjs/helpers/animation.server.test.d.ts

4

CHANGELOG.md

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

## 0.13.0-beta.4
- **bugfix**: Fix `document is not defined` when rendering server side
## 0.13.0-beta.3

@@ -7,0 +11,0 @@

5

cjs/helpers/animation.js

@@ -5,6 +5,9 @@ "use strict";

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {
return animationName;
}
var styleEl = document.createElement("style");
document.head.appendChild(styleEl);
var styleSheet = styleEl.sheet;
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");

@@ -11,0 +14,0 @@ if (styleSheet) {

export var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {
return animationName;
}
var styleEl = document.createElement("style");
document.head.appendChild(styleEl);
var styleSheet = styleEl.sheet;
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");

@@ -7,0 +10,0 @@ if (styleSheet) {

@@ -5,6 +5,9 @@ "use strict";

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {
return animationName;
}
var styleEl = document.createElement("style");
document.head.appendChild(styleEl);
var styleSheet = styleEl.sheet;
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");

@@ -11,0 +14,0 @@ if (styleSheet) {

{
"name": "react-spinners",
"version": "0.13.0-beta.3",
"version": "0.13.0-beta.4",
"description": "A collection of react loading spinners",

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

@@ -22,4 +22,2 @@ {

"noImplicitReturns": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"skipLibCheck": true

@@ -26,0 +24,0 @@ },

@@ -14,6 +14,9 @@ (function (factory) {

var createAnimation = function (loaderName, frames, suffix) {
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
if (typeof window == "undefined" || !window.document) {
return animationName;
}
var styleEl = document.createElement("style");
document.head.appendChild(styleEl);
var styleSheet = styleEl.sheet;
var animationName = "react-spinners-".concat(loaderName, "-").concat(suffix);
var keyFrames = "\n @keyframes ".concat(animationName, " {\n ").concat(frames, "\n }\n ");

@@ -20,0 +23,0 @@ if (styleSheet) {

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