react-spinners
Advanced tools
Comparing version 0.13.0-beta.3 to 0.13.0-beta.4
@@ -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,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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
499905
270
9050