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

rc-progress

Package Overview
Dependencies
Maintainers
3
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-progress - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

lib/mixin.js

22

lib/Circle.js

@@ -13,23 +13,15 @@ 'use strict';

var _props2 = require('./props');
var _mixin = require('./mixin');
var _mixin2 = _interopRequireDefault(_mixin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint-disable react/prop-types */
exports["default"] = _react2["default"].createClass({
displayName: 'Circle',
propTypes: _props2.propTypes,
getDefaultProps: function getDefaultProps() {
return _props2.defaultProps;
},
componentDidUpdate: function componentDidUpdate() {
var now = Date.now();
this.refs.path.style.transitionDuration = '0.6s, 0.6s';
if (this.prevTimeStamp && now - this.prevTimeStamp < 600) {
this.refs.path.style.transitionDuration = '0s, 0s';
}
this.prevTimeStamp = Date.now();
},
mixins: [_mixin2["default"]],
render: function render() {

@@ -55,3 +47,3 @@ var _props = this.props;

strokeDashoffset: (100 - percent) / 100 * len + 'px',
transition: 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s ease'
transition: 'stroke-dashoffset 0.3s ease 0s, stroke 0.3s ease'
};

@@ -58,0 +50,0 @@

@@ -13,23 +13,15 @@ 'use strict';

var _props2 = require('./props');
var _mixin = require('./mixin');
var _mixin2 = _interopRequireDefault(_mixin);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; }
function _objectWithoutProperties(obj, keys) { var target = {}; for (var i in obj) { if (keys.indexOf(i) >= 0) continue; if (!Object.prototype.hasOwnProperty.call(obj, i)) continue; target[i] = obj[i]; } return target; } /* eslint-disable react/prop-types */
exports["default"] = _react2["default"].createClass({
displayName: 'Line',
propTypes: _props2.propTypes,
getDefaultProps: function getDefaultProps() {
return _props2.defaultProps;
},
componentDidUpdate: function componentDidUpdate() {
var now = Date.now();
this.refs.path.style.transitionDuration = '0.6s, 0.6s';
if (this.prevTimeStamp && now - this.prevTimeStamp < 600) {
this.refs.path.style.transitionDuration = '0s, 0s';
}
this.prevTimeStamp = Date.now();
},
mixins: [_mixin2["default"]],
render: function render() {

@@ -52,3 +44,3 @@ var _props = this.props;

strokeDashoffset: 100 - percent + 'px',
transition: 'stroke-dashoffset 0.6s ease 0s, stroke 0.6s linear'
transition: 'stroke-dashoffset 0.3s ease 0s, stroke 0.3s linear'
};

@@ -55,0 +47,0 @@

{
"name": "rc-progress",
"version": "2.0.2",
"version": "2.0.3",
"description": "progress ui component for react",

@@ -5,0 +5,0 @@ "keywords": [

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