Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

final-form-calculate

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

final-form-calculate - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

2

dist/final-form-calculate.es.js

@@ -122,2 +122,2 @@ //

export default createDecorator;
export { createDecorator as default };
{
"name": "final-form-calculate",
"version": "1.0.1",
"description":
"Decorator for calculating field values based on other field values in 🏁 Final Form",
"version": "1.0.2",
"description": "Decorator for calculating field values based on other field values in 🏁 Final Form",
"main": "dist/final-form-calculate.cjs.js",
"jsnext:main": "dist/final-form-calculate.es.js",
"module": "dist/final-form-calculate.es.js",
"files": ["dist"],
"files": [
"dist"
],
"scripts": {

@@ -15,4 +16,3 @@ "start": "nps",

},
"author":
"Erik Rasmussen <rasmussenerik@gmail.com> (http://github.com/erikras)",
"author": "Erik Rasmussen <rasmussenerik@gmail.com> (http://github.com/erikras)",
"license": "MIT",

@@ -29,3 +29,3 @@ "repository": {

"babel-eslint": "^8.0.3",
"babel-jest": "^21.2.0",
"babel-jest": "^22.0.4",
"babel-plugin-external-helpers": "^6.22.0",

@@ -48,3 +48,3 @@ "babel-plugin-transform-flow-strip-types": "^6.22.0",

"husky": "^0.14.3",
"jest": "^21.2.1",
"jest": "^22.0.5",
"lint-staged": "^6.0.0",

@@ -55,3 +55,3 @@ "nps": "^5.7.1",

"prettier-eslint-cli": "^4.4.2",
"rollup": "^0.52.0",
"rollup": "^0.53.4",
"rollup-plugin-babel": "^3.0.2",

@@ -65,6 +65,9 @@ "rollup-plugin-commonjs": "^8.2.6",

"peerDependencies": {
"final-form": "^1.3.0"
"final-form": ">=1.3.0"
},
"lint-staged": {
"*.{js,json,md,css}": ["prettier --write", "git add"]
"*.{js,json,md,css}": [
"prettier --write",
"git add"
]
},

@@ -71,0 +74,0 @@ "bundlesize": [

@@ -64,2 +64,29 @@ # 🏁 Final Form Calculate

## Table of Contents
<!-- START doctoc generated TOC please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE -->
* [Example](#example)
* [Calculated Fields Example](#calculated-fields-example)
* [API](#api)
* [`createDecorator: (...calculations: Calculation[]) => Decorator`](#createdecorator-calculations-calculation--decorator)
* [Types](#types)
* [`Calculation: { field: FieldPattern, updates: Updates }`](#calculation--field-fieldpattern-updates-updates-)
* [`FieldName: string`](#fieldname-string)
* [`FieldPattern: FieldName | RegExp`](#fieldpattern-fieldname--regexp)
* [`Updates: { [FieldName]: (value: any, allValues: Object) => any }`](#updates--fieldname-value-any-allvalues-object--any-)
<!-- END doctoc generated TOC please keep comment here to allow auto update -->
## Example
### [Calculated Fields Example](https://codesandbox.io/s/oq52p6v96y)
Example using
[🏁 React Final Form](https://github.com/final-form/react-final-form#-react-final-form).
## API

@@ -66,0 +93,0 @@

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