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

create-formik-fields-comparator

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-formik-fields-comparator - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

2

build/main/index.d.ts

@@ -1,1 +0,1 @@

export * from './lib/create-formik-fields-comparator';
export { default } from './lib/create-formik-fields-comparator';
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./lib/create-formik-fields-comparator"));
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSwyREFBc0QifQ==
var create_formik_fields_comparator_1 = require("./lib/create-formik-fields-comparator");
exports.default = create_formik_fields_comparator_1.default;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSx5RkFBZ0U7QUFBdkQsb0RBQUEsT0FBTyxDQUFBIn0=

@@ -5,7 +5,6 @@ "use strict";

const compare = (type) => (field) => current[type][field] !== next[type][field];
return (fields.some(compare('values')) ||
fields.some(compare('errors')) ||
fields.some(compare('touched')));
const test = (type) => fields.some(compare(type));
return test('values') || test('errors') || test('touched');
};
exports.default = createFormikFieldsComparator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWZvcm1pay1maWVsZHMtY29tcGFyYXRvci5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FjLEVBQ2QsSUFBVyxFQUNGLEVBQUU7SUFDWCxNQUFNLE9BQU8sR0FBRyxDQUFDLElBQXdCLEVBQUUsRUFBRSxDQUFDLENBQUMsS0FBYSxFQUFFLEVBQUUsQ0FDOUQsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLEtBQUssQ0FBQyxLQUFLLElBQUksQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLENBQUMsQ0FBQztJQUU3QyxNQUFNLElBQUksR0FBRyxDQUFDLElBQXdCLEVBQUUsRUFBRSxDQUFDLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUM7SUFFdEUsT0FBTyxJQUFJLENBQUMsUUFBUSxDQUFDLElBQUksSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLElBQUksQ0FBQyxTQUFTLENBQUMsQ0FBQztBQUM3RCxDQUFDLENBQUM7QUFFRixrQkFBZSw0QkFBNEIsQ0FBQyJ9

@@ -1,1 +0,1 @@

export * from './lib/create-formik-fields-comparator';
export { default } from './lib/create-formik-fields-comparator';

@@ -1,2 +0,2 @@

export * from './lib/create-formik-fields-comparator';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx1Q0FBdUMsQ0FBQyJ9
export { default } from './lib/create-formik-fields-comparator';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLE9BQU8sRUFBRSxNQUFNLHVDQUF1QyxDQUFDIn0=
const createFormikFieldsComparator = (fields) => (current, next) => {
const compare = (type) => (field) => current[type][field] !== next[type][field];
return (fields.some(compare('values')) ||
fields.some(compare('errors')) ||
fields.some(compare('touched')));
const test = (type) => fields.some(compare(type));
return test('values') || test('errors') || test('touched');
};
export default createFormikFieldsComparator;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWZvcm1pay1maWVsZHMtY29tcGFyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY3JlYXRlLWZvcm1pay1maWVsZHMtY29tcGFyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLDRCQUE0QixHQUFHLENBQUMsTUFBNkIsRUFBRSxFQUFFLENBQUMsQ0FDdEUsT0FBYyxFQUNkLElBQVcsRUFDRixFQUFFO0lBQ1gsTUFBTSxPQUFPLEdBQUcsQ0FBQyxJQUF3QixFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQWEsRUFBRSxFQUFFLENBQzlELE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLENBQUMsS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUM7SUFFN0MsT0FBTyxDQUNMLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzlCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFFBQVEsQ0FBQyxDQUFDO1FBQzlCLE1BQU0sQ0FBQyxJQUFJLENBQUMsT0FBTyxDQUFDLFNBQVMsQ0FBQyxDQUFDLENBQ2hDLENBQUM7QUFDSixDQUFDLENBQUM7QUFFRixlQUFlLDRCQUE0QixDQUFDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY3JlYXRlLWZvcm1pay1maWVsZHMtY29tcGFyYXRvci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy9saWIvY3JlYXRlLWZvcm1pay1maWVsZHMtY29tcGFyYXRvci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLDRCQUE0QixHQUFHLENBQUMsTUFBNkIsRUFBRSxFQUFFLENBQUMsQ0FDdEUsT0FBYyxFQUNkLElBQVcsRUFDRixFQUFFO0lBQ1gsTUFBTSxPQUFPLEdBQUcsQ0FBQyxJQUF3QixFQUFFLEVBQUUsQ0FBQyxDQUFDLEtBQWEsRUFBRSxFQUFFLENBQzlELE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxLQUFLLENBQUMsS0FBSyxJQUFJLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLENBQUM7SUFFN0MsTUFBTSxJQUFJLEdBQUcsQ0FBQyxJQUF3QixFQUFFLEVBQUUsQ0FBQyxNQUFNLENBQUMsSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsQ0FBQyxDQUFDO0lBRXRFLE9BQU8sSUFBSSxDQUFDLFFBQVEsQ0FBQyxJQUFJLElBQUksQ0FBQyxRQUFRLENBQUMsSUFBSSxJQUFJLENBQUMsU0FBUyxDQUFDLENBQUM7QUFDN0QsQ0FBQyxDQUFDO0FBRUYsZUFBZSw0QkFBNEIsQ0FBQyJ9

@@ -5,2 +5,12 @@ # Change Log

<a name="1.2.0"></a>
# [1.2.0](https://github.com/armand1m/create-formik-fields-comparator/compare/v1.1.0...v1.2.0) (2018-09-17)
### Features
* **releasing:** add semantic release to project ([29fef60](https://github.com/armand1m/create-formik-fields-comparator/commit/29fef60))
<a name="1.1.0"></a>

@@ -7,0 +17,0 @@ # 1.1.0 (2018-09-17)

{
"name": "create-formik-fields-comparator",
"version": "1.1.0",
"version": "1.2.0",
"description": "Simple utility to help avoiding unnecessary re-renders in Formik forms",

@@ -35,3 +35,5 @@ "main": "build/main/index.js",

"all": "run-s reset test cov:check doc:html",
"prepare-release": "run-s all version doc:publish"
"prepare-release": "run-s all version doc:publish",
"travis-deploy-once": "travis-deploy-once",
"semantic-release": "semantic-release"
},

@@ -71,3 +73,5 @@ "scripts-info": {

"typedoc": "^0.12.0",
"typescript": "^3.0.1"
"typescript": "^3.0.1",
"travis-deploy-once": "^5.0.7",
"semantic-release": "^15.9.15"
},

@@ -74,0 +78,0 @@ "ava": {

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