react-smooth
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -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 @@ === |
@@ -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 @@ |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Uses eval
Supply chain riskPackage uses dynamic code execution (e.g., eval()), which is a dangerous practice. This can prevent the code from running in certain environments and increases the risk that the code may contain exploits or malicious behavior.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
328351
5
41
7992
31
2
3
+ Added@babel/runtime@7.26.0(transitive)
+ Addedchain-function@1.0.1(transitive)
+ Addedcreate-react-class@15.7.0(transitive)
+ Addeddom-helpers@3.4.0(transitive)
+ Addedencoding@0.1.13(transitive)
+ Addedfbjs@0.8.18(transitive)
+ Addediconv-lite@0.6.3(transitive)
+ Addedis-stream@1.1.0(transitive)
+ Addedisomorphic-fetch@2.2.1(transitive)
+ Addednode-fetch@1.7.3(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedprop-types@15.8.1(transitive)
+ Addedreact@15.7.0(transitive)
+ Addedreact-addons-transition-group@15.6.2(transitive)
+ Addedreact-dom@15.7.0(transitive)
+ Addedreact-is@16.13.1(transitive)
+ Addedreact-transition-group@1.2.1(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
+ Addedsetimmediate@1.0.5(transitive)
+ Addedwarning@3.0.0(transitive)
+ Addedwhatwg-fetch@3.6.20(transitive)
- Removedpure-render-decorator@0.2.0
- Removedacorn@5.7.4(transitive)
- Removedamdefine@1.0.1(transitive)
- Removedast-types@0.9.6(transitive)
- Removedbalanced-match@1.0.2(transitive)
- Removedbase62@1.2.8(transitive)
- Removedbrace-expansion@1.1.11(transitive)
- Removedcommander@2.20.3(transitive)
- Removedcommoner@0.10.8(transitive)
- Removedconcat-map@0.0.1(transitive)
- Removeddefined@1.0.1(transitive)
- Removeddetective@4.7.1(transitive)
- Removedenvify@3.4.1(transitive)
- Removedesprima@3.1.3(transitive)
- Removedesprima-fb@15001.1.0-dev-harmony-fb(transitive)
- Removedfbjs@0.6.1(transitive)
- Removedglob@5.0.15(transitive)
- Removedgraceful-fs@4.2.11(transitive)
- Removediconv-lite@0.4.24(transitive)
- Removedinflight@1.0.6(transitive)
- Removedinherits@2.0.4(transitive)
- Removedjstransform@11.0.3(transitive)
- Removedminimatch@3.1.2(transitive)
- Removedminimist@1.2.8(transitive)
- Removedmkdirp@0.5.6(transitive)
- Removedobject-assign@2.1.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedpath-is-absolute@1.0.1(transitive)
- Removedprivate@0.1.8(transitive)
- Removedpure-render-decorator@0.2.0(transitive)
- Removedq@1.5.1(transitive)
- Removedreact@0.14.10(transitive)
- Removedreact-addons-shallow-compare@0.14.8(transitive)
- Removedreact-addons-transition-group@0.14.8(transitive)
- Removedreact-dom@0.14.10(transitive)
- Removedrecast@0.11.23(transitive)
- Removedsource-map@0.4.40.5.7(transitive)
- Removedthrough@2.3.8(transitive)
- Removedwhatwg-fetch@0.9.0(transitive)
- Removedwrappy@1.0.2(transitive)