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

react-smooth

Package Overview
Dependencies
Maintainers
3
Versions
53
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-smooth - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

es6/PureRender.js

5

CHANGELOG.md

@@ -0,1 +1,6 @@

### 0.1.2 / 2016-04-12
===
- deps: update react to 15.0.0
- feat: use owe PureRender util
### 0.1.1 / 2016-04-05

@@ -2,0 +7,0 @@ ===

12

es6/Animate.js

@@ -7,5 +7,5 @@ 'use strict';

var _isEqual = require('lodash/isEqual');
var _isEqual2 = require('lodash/isEqual');
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isEqual3 = _interopRequireDefault(_isEqual2);

@@ -26,5 +26,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _pureRenderDecorator = require('pure-render-decorator');
var _PureRender = require('./PureRender');
var _pureRenderDecorator2 = _interopRequireDefault(_pureRenderDecorator);
var _PureRender2 = _interopRequireDefault(_PureRender);

@@ -53,3 +53,3 @@ var _easing = require('./easing');

var Animate = (0, _pureRenderDecorator2.default)(_class = (_temp = _class2 = function (_Component) {
var Animate = (0, _PureRender2.default)(_class = (_temp = _class2 = function (_Component) {
_inherits(Animate, _Component);

@@ -133,3 +133,3 @@

if ((0, _isEqual2.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive) {
if ((0, _isEqual3.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive) {
return;

@@ -136,0 +136,0 @@ }

@@ -7,5 +7,5 @@ 'use strict';

var _filter = require('lodash/filter');
var _filter2 = require('lodash/filter');
var _filter2 = _interopRequireDefault(_filter);
var _filter3 = _interopRequireDefault(_filter2);

@@ -103,3 +103,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var shouldStopAnimation = function shouldStopAnimation() {
return !(0, _filter2.default)(stepperStyle, needContinue).length;
return !(0, _filter3.default)(stepperStyle, needContinue).length;
};

@@ -106,0 +106,0 @@

@@ -8,5 +8,5 @@ 'use strict';

var _intersection = require('lodash/intersection');
var _intersection2 = require('lodash/intersection');
var _intersection2 = _interopRequireDefault(_intersection);
var _intersection3 = _interopRequireDefault(_intersection2);

@@ -24,3 +24,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var getIntersectionKeys = exports.getIntersectionKeys = function getIntersectionKeys(preObj, nextObj) {
return (0, _intersection2.default)(Object.keys(preObj), Object.keys(nextObj));
return (0, _intersection3.default)(Object.keys(preObj), Object.keys(nextObj));
};

@@ -27,0 +27,0 @@

@@ -7,5 +7,5 @@ 'use strict';

var _isEqual = require('lodash/isEqual');
var _isEqual2 = require('lodash/isEqual');
var _isEqual2 = _interopRequireDefault(_isEqual);
var _isEqual3 = _interopRequireDefault(_isEqual2);

@@ -26,5 +26,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var _pureRenderDecorator = require('pure-render-decorator');
var _PureRender = require('./PureRender');
var _pureRenderDecorator2 = _interopRequireDefault(_pureRenderDecorator);
var _PureRender2 = _interopRequireDefault(_PureRender);

@@ -53,3 +53,3 @@ var _easing = require('./easing');

var Animate = (0, _pureRenderDecorator2.default)(_class = (_temp = _class2 = function (_Component) {
var Animate = (0, _PureRender2.default)(_class = (_temp = _class2 = function (_Component) {
_inherits(Animate, _Component);

@@ -133,3 +133,3 @@

if ((0, _isEqual2.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive) {
if ((0, _isEqual3.default)(this.props.to, nextProps.to) && this.props.canBegin && this.props.isActive) {
return;

@@ -136,0 +136,0 @@ }

@@ -7,5 +7,5 @@ 'use strict';

var _filter = require('lodash/filter');
var _filter2 = require('lodash/filter');
var _filter2 = _interopRequireDefault(_filter);
var _filter3 = _interopRequireDefault(_filter2);

@@ -103,3 +103,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var shouldStopAnimation = function shouldStopAnimation() {
return !(0, _filter2.default)(stepperStyle, needContinue).length;
return !(0, _filter3.default)(stepperStyle, needContinue).length;
};

@@ -106,0 +106,0 @@

@@ -8,5 +8,5 @@ 'use strict';

var _intersection = require('lodash/intersection');
var _intersection2 = require('lodash/intersection');
var _intersection2 = _interopRequireDefault(_intersection);
var _intersection3 = _interopRequireDefault(_intersection2);

@@ -24,3 +24,3 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

var getIntersectionKeys = exports.getIntersectionKeys = function getIntersectionKeys(preObj, nextObj) {
return (0, _intersection2.default)(Object.keys(preObj), Object.keys(nextObj));
return (0, _intersection3.default)(Object.keys(preObj), Object.keys(nextObj));
};

@@ -27,0 +27,0 @@

{
"name": "react-smooth",
"version": "0.1.1",
"version": "0.1.2",
"description": "react animation library",

@@ -42,19 +42,18 @@ "main": "lib/index",

"peerDependencies": {
"react": "^0.14.0",
"react-dom": "^0.14.0"
"react": "^0.14.0 || ^15.0.0",
"react-dom": "^0.14.0 || ^15.0.0",
"react-addons-transition-group": "^0.14.0 || ^15.0.0"
},
"dependencies": {
"lodash": "^4.0.0",
"pure-render-decorator": "0.2.0",
"raf": "^3.2.0",
"react-addons-transition-group": "^0.14.0"
"raf": "^3.2.0"
},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-core": "^6.7.2",
"babel-eslint": "^5.0.0",
"babel-cli": "^6.7.5",
"babel-core": "^6.7.6",
"babel-eslint": "^6.0.2",
"babel-loader": "^6.2.4",
"babel-plugin-lodash": "2.2.2",
"babel-plugin-transform-decorators-legacy": "^1.3.4",
"babel-plugin-transform-export-extensions": "^6.5.0",
"babel-plugin-lodash": "2.1.0",
"babel-polyfill": "^6.7.2",

@@ -67,5 +66,6 @@ "babel-preset-es2015": "^6.6.0",

"chai-spies": "^0.7.1",
"eslint": "^2.4.0",
"eslint-config-airbnb": "^6.1.0",
"eslint-plugin-react": "^4.2.2",
"eslint": "^2.7.0",
"eslint-config-airbnb": "^7.0.0",
"eslint-plugin-jsx-a11y": "^0.6.2",
"eslint-plugin-react": "^4.3.0",
"karma": "^0.13.22",

@@ -78,6 +78,7 @@ "karma-chrome-launcher": "^0.2.2",

"mocha": "^2.4.5",
"react": "^0.14.0",
"react-addons-test-utils": "^0.14.0",
"react-dom": "^0.14.0",
"webpack": "^1.12.14",
"react": "^15.0.0",
"react-addons-test-utils": "^15.0.0",
"react-addons-transition-group": "^15.0.0",
"react-dom": "^15.0.0",
"webpack": "^1.12.15",
"webpack-dev-server": "^1.14.1"

@@ -84,0 +85,0 @@ },

import React, { Component, PropTypes, cloneElement, Children } from 'react';
import createAnimateManager from './AnimateManager';
import pureRender from 'pure-render-decorator';
import pureRender from './PureRender';
import _ from 'lodash';

@@ -229,3 +229,3 @@ import { configEasing } from './easing';

const manager = this.manager;
this.unSubscribe = manager.subscribe(this.handleStyleChange);

@@ -232,0 +232,0 @@

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