bulmil-react
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -6,2 +6,10 @@ # Change Log | ||
## [0.1.2](https://github.com/gomah/bulmil/compare/bulmil-react@0.1.1...bulmil-react@0.1.2) (2020-03-17) | ||
**Note:** Version bump only for package bulmil-react | ||
## [0.1.1](https://github.com/gomah/bulmil/compare/bulmil-react@0.1.0...bulmil-react@0.1.1) (2020-02-27) | ||
@@ -8,0 +16,0 @@ |
@@ -31,3 +31,6 @@ var __rest = (this && this.__rest) || function (s, e) { | ||
const propsToPass = Object.keys(cProps).reduce((acc, name) => { | ||
if (name.indexOf('on') === 0 && name[2] === name[2].toUpperCase()) { | ||
const isEventProp = name.indexOf('on') === 0 && name[2] === name[2].toUpperCase(); | ||
const isDataProp = name.indexOf('data-') === 0; | ||
const isAriaProp = name.indexOf('aria-') === 0; | ||
if (isEventProp) { | ||
const eventName = name.substring(2).toLowerCase(); | ||
@@ -38,2 +41,5 @@ if (isCoveredByReact(eventName)) { | ||
} | ||
else if (isDataProp || isAriaProp) { | ||
acc[name] = cProps[name]; | ||
} | ||
return acc; | ||
@@ -40,0 +46,0 @@ }, {}); |
{ | ||
"name": "bulmil-react", | ||
"sideEffects": false, | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"author": "Gomah", | ||
@@ -27,3 +27,3 @@ "license": "MIT", | ||
"@types/jest": "25.1.3", | ||
"@types/node": "13.7.6", | ||
"@types/node": "13.9.1", | ||
"@types/react": "16.9.23", | ||
@@ -36,7 +36,7 @@ "@types/react-dom": "16.9.5", | ||
"react-dom": "^16.13.0", | ||
"typescript": "3.8.2", | ||
"vfile-message": "^2.0.2" | ||
"typescript": "3.8.3", | ||
"vfile-message": "^2.0.3" | ||
}, | ||
"dependencies": { | ||
"bulmil": "^0.1.1" | ||
"bulmil": "^0.1.2" | ||
}, | ||
@@ -47,3 +47,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "24c4e43a06843e107716d46a1bd24f3835aa3d22" | ||
"gitHead": "f782f45cf20c38cc34b0f93f8babc7864a80ba19" | ||
} |
Sorry, the diff of this file is not supported yet
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
47302
475
Updatedbulmil@^0.1.2