New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-progress-button-for-images-uploader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-progress-button-for-images-uploader - npm Package Compare versions

Comparing version 5.1.1 to 5.1.2

56

lib/index.js

@@ -118,30 +118,2 @@ 'use strict';

_createClass(ProgressButton, [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(nextProps, state) {
if (nextProps.state === state.prevState) {
return;
}
var prevState = state.prevState;
switch (nextProps.state) {
case STATE.SUCCESS:
this.success();
return;
case STATE.ERROR:
this.error();
return;
case STATE.LOADING:
this.loading();
return;
case STATE.DISABLED:
this.disable();
return;
case STATE.NOTHING:
this.notLoading();
return;
default:
return;
}
}
}, {
key: 'componentWillUnmount',

@@ -204,2 +176,30 @@ value: function componentWillUnmount() {

}
}], [{
key: 'getDerivedStateFromProps',
value: function getDerivedStateFromProps(nextProps, state) {
if (nextProps.state === state.prevState) {
return;
}
var prevState = state.prevState;
switch (nextProps.state) {
case STATE.SUCCESS:
this.success();
return;
case STATE.ERROR:
this.error();
return;
case STATE.LOADING:
this.loading();
return;
case STATE.DISABLED:
this.disable();
return;
case STATE.NOTHING:
this.notLoading();
return;
default:
return;
}
}
}]);

@@ -206,0 +206,0 @@

{
"name": "react-progress-button-for-images-uploader",
"version": "5.1.1",
"version": "5.1.2",
"description": "Simple react.js component for a inline progress indicator",

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

@@ -40,3 +40,3 @@ import React, { Component } from 'react'

getDerivedStateFromProps(nextProps, state) {
static getDerivedStateFromProps(nextProps, state) {
if (nextProps.state === state.prevState) { return }

@@ -43,0 +43,0 @@ const { prevState } = state

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