make-event-props
Advanced tools
Comparing version 1.2.0 to 1.3.0
{ | ||
"name": "make-event-props", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"description": "Returns an object with on-event callback props curried with provided args.", | ||
"main": "dist/entry.js", | ||
"es6": "src/entry.js", | ||
"main": "dist/umd/index.js", | ||
"module": "dist/esm/index.js", | ||
"source": "src/index.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
"build": "babel src -d dist --ignore **/__tests__", | ||
"prepublishOnly": "yarn run build", | ||
"test": "yarn run test-eslint && yarn run test-jest", | ||
"test-eslint": "eslint src/ --ext .jsx,.js", | ||
"test-jest": "jest", | ||
"test-jest-coverage": "jest --coverage" | ||
"build": "yarn build-esm && yarn build-umd", | ||
"build-esm": "BABEL_ENV=production-esm babel src -d dist/esm --ignore \"**/*.spec.js\"", | ||
"build-umd": "BABEL_ENV=production-umd babel src -d dist/umd --ignore \"**/*.spec.js\"", | ||
"clean": "rimraf dist", | ||
"jest": "jest", | ||
"jest-coverage": "jest --coverage", | ||
"lint": "eslint src/ --ext .jsx,.js", | ||
"prepack": "yarn clean && yarn build", | ||
"test": "yarn lint && yarn jest" | ||
}, | ||
@@ -26,12 +31,13 @@ "keywords": [ | ||
"devDependencies": { | ||
"@babel/cli": "^7.0.0", | ||
"@babel/core": "^7.0.0", | ||
"@babel/preset-env": "^7.0.0", | ||
"babel-core": "7.0.0-bridge.0", | ||
"babel-jest": "^23.6.0", | ||
"eslint": "^5.5.0", | ||
"eslint-config-airbnb-base": "^13.1.0", | ||
"eslint-plugin-import": "^2.14.0", | ||
"jest": "^23.6.0" | ||
"@babel/cli": "^7.15.0", | ||
"@babel/core": "^7.15.0", | ||
"@babel/preset-env": "^7.15.0", | ||
"eslint": "~7.19.0", | ||
"eslint-config-wojtekmaj": "^0.5.0", | ||
"jest": "^27.0.0", | ||
"rimraf": "^3.0.0" | ||
}, | ||
"resolutions": { | ||
"semver@7.0.0": "^7.0.0" | ||
}, | ||
"files": [ | ||
@@ -46,3 +52,4 @@ "LICENSE", | ||
"url": "https://github.com/wojtekmaj/make-event-props.git" | ||
} | ||
} | ||
}, | ||
"funding": "https://github.com/wojtekmaj/make-event-props?sponsor=1" | ||
} |
@@ -0,1 +1,5 @@ | ||
[![npm](https://img.shields.io/npm/v/make-event-props.svg)](https://www.npmjs.com/package/make-event-props) ![downloads](https://img.shields.io/npm/dt/make-event-props.svg) [![CI](https://github.com/wojtekmaj/make-event-props/workflows/CI/badge.svg)](https://github.com/wojtekmaj/make-event-props/actions) ![dependencies](https://img.shields.io/david/wojtekmaj/make-event-props.svg | ||
) ![dev dependencies](https://img.shields.io/david/dev/wojtekmaj/make-event-props.svg | ||
) [![tested with jest](https://img.shields.io/badge/tested_with-jest-99424f.svg)](https://github.com/facebook/jest) | ||
# Make-Event-Props | ||
@@ -12,3 +16,3 @@ A function that, given props, returns an object of event callback props optionally curried with additional arguments. | ||
get eventProps() { | ||
return makeEventProps(this.props, () => this.state.pdf); | ||
return makeEventProps(this.props, (eventName) => additionalArgs); | ||
} | ||
@@ -39,5 +43,5 @@ ``` | ||
<a href="mailto:kontakt@wojtekmaj.pl">kontakt@wojtekmaj.pl</a><br /> | ||
<a href="http://wojtekmaj.pl">http://wojtekmaj.pl</a> | ||
<a href="https://wojtekmaj.pl">https://wojtekmaj.pl</a> | ||
</td> | ||
</tr> | ||
</table> |
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
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
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
15129
7
7
202
46
1