Socket
Socket
Sign inDemoInstall

react-awesome-button

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-awesome-button - npm Package Compare versions

Comparing version 0.1.2 to 0.1.5

src/__snapshots__/react-awesome-button.test.js.snap

45

package.json
{
"name": "react-awesome-button",
"version": "0.1.2",
"description": "Production ready generic 3D react button component with progress loading bar.",
"version": "0.1.5",
"description": "Performant, extendable, highly customisable, production ready React Component that renders an animated basic set of UI buttons",
"main": "dist/index.js",
"author": "Rafael Caferati",
"license": "MIT",
"homepage": "https://github.com/rcaferati/react-awesome-button",
"repository": {
"type": "git",
"url": "https://github.com/rcaferati/react-awesome-button"
},
"bugs": {
"url": "https://github.com/rcaferati/react-awesome-button/issues"
},
"scripts": {

@@ -13,10 +23,7 @@ "start": "webpack-dev-server -d --config webpack.demo.config.js",

},
"dependencies": {
"prop-types": "^15.5.8",
"react": "^15.5.4"
},
"devDependencies": {
"extract-text-webpack-plugin": "^2.1.0",
"prismjs": "^1.6.0",
"prop-types": "^15.5.8",
"react": "^15.5.4",
"react-dom": "^15.5.4",
"react-router": "^4.1.1",
"react-router-dom": "^4.1.1",
"autoprefixer": "^7.0.1",

@@ -27,2 +34,3 @@ "babel": "^6.23.0",

"babel-eslint": "^7.2.3",
"babel-jest": "^20.0.0",
"babel-loader": "^7.0.0",

@@ -39,4 +47,11 @@ "babel-preset-es2015": "^6.24.1",

"eslint-plugin-react": "^6.10.3",
"extract-text-webpack-plugin": "^2.1.0",
"jest": "^20.0.0",
"node-sass": "^4.5.2",
"postcss-loader": "^2.0.3",
"prismjs": "^1.6.0",
"react-dom": "^15.5.4",
"react-router": "^4.1.1",
"react-router-dom": "^4.1.1",
"react-test-renderer": "^15.5.4",
"sass-loader": "^6.0.3",

@@ -47,6 +62,2 @@ "style-loader": "^0.17.0",

},
"repository": {
"type": "git",
"url": "https://github.com/rcaferati/react-awesome-button"
},
"keywords": [

@@ -61,9 +72,3 @@ "react",

"react-awesome-button"
],
"author": "Rafael Caferati",
"license": "MIT",
"bugs": {
"url": "https://github.com/rcaferati/react-awesome-button/issues"
},
"homepage": "https://github.com/rcaferati/react-awesome-button"
]
}

@@ -13,11 +13,14 @@ import React from 'react';

function setCssEndEvent(element, type, callback) {
const setCssEndEvent = (element, type, callback) => {
if (!element) {
return false;
}
const capitalized = type.charAt(0).toUpperCase() + type.slice(1);
if (element.style[`Webkit${capitalized}`] !== undefined) {
element.addEventListener(`webkit${capitalized}End`, callback);
return element.addEventListener(`webkit${capitalized}End`, callback);
} else if (element.style.OTransition !== undefined) {
element.addEventListener(`o${type}End`, callback);
return element.addEventListener(`o${type}End`, callback);
}
element.addEventListener(`${type}End`, callback);
}
return element.addEventListener(`${type}End`, callback);
};

@@ -24,0 +27,0 @@ const Anchor = props => (<a {... props} />);

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