mobx-react-form
Advanced tools
Comparing version 6.9.1 to 6.9.2
@@ -23,3 +23,2 @@ import Form from "../Form"; | ||
validateRelatedFields(field: any, showErrors: boolean): void; | ||
checkSVKValidationPlugin(): void; | ||
} | ||
@@ -43,3 +42,3 @@ export type ValidationPlugin = { | ||
export interface ValidationPluginConfig { | ||
package: ValidationPackage; | ||
package?: ValidationPackage; | ||
schema?: any; | ||
@@ -46,0 +45,0 @@ options?: any; |
@@ -24,4 +24,3 @@ import ValidatorInterface, { DriversMap, ValidateOptions, ValidationPlugins } from "./models/ValidatorInterface"; | ||
validateRelatedFields(field: FieldInterface, showErrors: boolean): void; | ||
checkSVKValidationPlugin(): void; | ||
} | ||
//# sourceMappingURL=Validator.d.ts.map |
@@ -56,3 +56,2 @@ "use strict"; | ||
this.initDrivers(); | ||
this.checkSVKValidationPlugin(); | ||
} | ||
@@ -161,10 +160,4 @@ initDrivers() { | ||
} | ||
checkSVKValidationPlugin() { | ||
if (lodash_1.default.isNil(this.drivers.svk) && lodash_1.default.get(this.plugins, "svk.config.schema")) { | ||
const name = this.form.name ? `Form: ${this.form.name}` : ""; | ||
throw new Error(`The SVK validation schema is defined but no plugin provided (SVK). ${name}`); | ||
} | ||
} | ||
} | ||
exports.default = Validator; | ||
//# sourceMappingURL=Validator.js.map |
{ | ||
"name": "mobx-react-form", | ||
"license": "MIT", | ||
"version": "6.9.1", | ||
"version": "6.9.2", | ||
"author": "Claudio Savino <claudio.savino@me.com> (https://twitter.com/foxhound87)", | ||
@@ -6,0 +6,0 @@ "description": "Automagically manage React forms state and automatic validation with MobX.", |
@@ -26,3 +26,2 @@ import Form from "../Form"; | ||
validateRelatedFields(field: any, showErrors: boolean): void; | ||
checkSVKValidationPlugin(): void; | ||
} | ||
@@ -51,3 +50,3 @@ | ||
export interface ValidationPluginConfig { | ||
package: ValidationPackage; | ||
package?: ValidationPackage; | ||
schema?: any; | ||
@@ -54,0 +53,0 @@ options?: any; |
@@ -43,3 +43,2 @@ import { action, observable, makeObservable } from "mobx"; | ||
this.initDrivers(); | ||
this.checkSVKValidationPlugin(); | ||
} | ||
@@ -175,9 +174,2 @@ | ||
} | ||
checkSVKValidationPlugin(): void { | ||
if (_.isNil(this.drivers.svk) && _.get(this.plugins, "svk.config.schema")) { | ||
const name = this.form.name ? `Form: ${this.form.name}` : ""; | ||
throw new Error(`The SVK validation schema is defined but no plugin provided (SVK). ${name}`); | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1231252
14111