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

react-loader

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-loader - npm Package Compare versions

Comparing version 2.3.0 to 2.4.0

9

lib/react-loader.js

@@ -26,2 +26,3 @@ (function (root, factory) {

loadedClassName: React.PropTypes.string,
opacity: React.PropTypes.number,
options: React.PropTypes.object,

@@ -89,3 +90,9 @@ parentClassName: React.PropTypes.string,

spin: function () {
if (this.isMounted() && !this.state.loaded) {
var canUseDOM = !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
);
if (canUseDOM && this.isMounted() && !this.state.loaded) {
var spinner = new Spinner(this.state.options);

@@ -92,0 +99,0 @@ var target = ReactDOM.findDOMNode(this.refs.loader);

@@ -26,2 +26,3 @@ (function (root, factory) {

loadedClassName: React.PropTypes.string,
opacity: React.PropTypes.number,
options: React.PropTypes.object,

@@ -89,3 +90,9 @@ parentClassName: React.PropTypes.string,

spin: function () {
if (this.isMounted() && !this.state.loaded) {
var canUseDOM = !!(
typeof window !== 'undefined' &&
window.document &&
window.document.createElement
);
if (canUseDOM && this.isMounted() && !this.state.loaded) {
var spinner = new Spinner(this.state.options);

@@ -92,0 +99,0 @@ var target = ReactDOM.findDOMNode(this.refs.loader);

2

package.json
{
"name": "react-loader",
"description": "React component that displays a spinner via spin.js until your component is loaded",
"version": "2.3.0",
"version": "2.4.0",
"main": "lib/react-loader.js",

@@ -6,0 +6,0 @@ "scripts": {

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