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

final-form-persist

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

final-form-persist - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

6

dist/index.d.ts

@@ -8,7 +8,7 @@ import { Decorator } from "final-form";

}
export interface FinalFormPersistDecorator {
persistDecorator: Decorator;
export interface FinalFormPersistDecorator<FormValues = object> {
persistDecorator: Decorator<FormValues>;
clear: () => void;
isPersisted: () => boolean;
}
export declare const createPersistDecorator: (options: FinalFormPersistOptions) => FinalFormPersistDecorator;
export declare const createPersistDecorator: <FormValues = object>(options: FinalFormPersistOptions) => FinalFormPersistDecorator<FormValues>;

@@ -411,3 +411,3 @@ /*! *****************************************************************************

var initialValues = form.getState().initialValues;
form.initialize(__assign({}, initialValues, JSON.parse(persistedValues)));
form.initialize(__assign(__assign({}, initialValues), JSON.parse(persistedValues)));
var unsubscribe = form.subscribe(lodash_debounce(function (_a) {

@@ -417,7 +417,9 @@ var values = _a.values, pristine = _a.pristine;

if (whitelist.length > 0) {
valuesKeys = Object.keys(values).filter(function (value) { return whitelist.includes(value); });
valuesKeys = Object.keys(values).filter(function (value) {
return whitelist.includes(value);
});
}
var valuesObject = valuesKeys.reduce(function (acc, key) {
var _a;
return __assign({}, acc, (_a = {}, _a[key] = values[key], _a));
return __assign(__assign({}, acc), (_a = {}, _a[key] = values[key], _a));
}, {});

@@ -442,3 +444,3 @@ if (!pristine) {

clear: clear,
isPersisted: isPersisted
isPersisted: isPersisted,
};

@@ -445,0 +447,0 @@ };

@@ -415,3 +415,3 @@ 'use strict';

var initialValues = form.getState().initialValues;
form.initialize(__assign({}, initialValues, JSON.parse(persistedValues)));
form.initialize(__assign(__assign({}, initialValues), JSON.parse(persistedValues)));
var unsubscribe = form.subscribe(lodash_debounce(function (_a) {

@@ -421,7 +421,9 @@ var values = _a.values, pristine = _a.pristine;

if (whitelist.length > 0) {
valuesKeys = Object.keys(values).filter(function (value) { return whitelist.includes(value); });
valuesKeys = Object.keys(values).filter(function (value) {
return whitelist.includes(value);
});
}
var valuesObject = valuesKeys.reduce(function (acc, key) {
var _a;
return __assign({}, acc, (_a = {}, _a[key] = values[key], _a));
return __assign(__assign({}, acc), (_a = {}, _a[key] = values[key], _a));
}, {});

@@ -446,3 +448,3 @@ if (!pristine) {

clear: clear,
isPersisted: isPersisted
isPersisted: isPersisted,
};

@@ -449,0 +451,0 @@ };

{
"name": "final-form-persist",
"version": "1.0.2",
"version": "1.0.3",
"description": "Persist your form values into a storage",

@@ -32,3 +32,3 @@ "author": "premieroctet",

"rollup-plugin-typescript2": "^0.17.0",
"typescript": "^2.8.3"
"typescript": "^3.8.3"
},

@@ -35,0 +35,0 @@ "files": [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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