react-with-animation
Advanced tools
Comparing version 1.0.12 to 1.0.13
import PropTypes from 'prop-types'; | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
@@ -18,3 +18,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; }; | ||
function withAnimation(WrappedComponent) { | ||
class ComponentWithAnimation extends Component { | ||
class ComponentWithAnimation extends React.Component { | ||
constructor() { | ||
@@ -21,0 +21,0 @@ super(); |
{ | ||
"name": "react-with-animation", | ||
"version": "1.0.12", | ||
"version": "1.0.13", | ||
"description": "A higher-order-component (HOC) to manage short-lived CSS animations in react", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"build": "rollup -c" | ||
"build": "rollup -c", | ||
"prepublish": "npm run build" | ||
}, | ||
@@ -9,0 +10,0 @@ "repository": { |
@@ -6,4 +6,4 @@ import babel from 'rollup-plugin-babel'; | ||
input: 'src/withAnimation.js', | ||
external: ['ms'], | ||
targets: [{ dest: pkg.main, format: 'es' }], | ||
external: ['react', 'prop-types'], | ||
output: [{ file: pkg.main, format: 'es' }], | ||
plugins: [ | ||
@@ -10,0 +10,0 @@ babel({ |
import PropTypes from 'prop-types'; | ||
import React, { Component } from 'react'; | ||
import React from 'react'; | ||
@@ -16,3 +16,3 @@ const propTypes = { | ||
export default function withAnimation(WrappedComponent) { | ||
class ComponentWithAnimation extends Component { | ||
class ComponentWithAnimation extends React.Component { | ||
constructor() { | ||
@@ -19,0 +19,0 @@ super(); |
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
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
7417