laravel-precognition
Advanced tools
Comparing version 0.5.12 to 0.5.13
@@ -208,6 +208,3 @@ import { debounce, isEqual, get, set, omit, merge } from 'lodash-es'; | ||
onBefore: () => { | ||
const beforeValidationHandler = config.onBeforeValidation ?? ((newRequest, oldRequest) => { | ||
return newRequest.touched.length > 0 && !isEqual(newRequest, oldRequest); | ||
}); | ||
if (beforeValidationHandler({ data, touched }, { data: oldData, touched: oldTouched }) === false) { | ||
if (config.onBeforeValidation && config.onBeforeValidation({ data, touched }, { data: oldData, touched: oldTouched }) === false) { | ||
return false; | ||
@@ -251,4 +248,4 @@ } | ||
setTouched([name, ...touched]).forEach((listener) => listener()); | ||
validator(config ?? {}); | ||
} | ||
validator(config ?? {}); | ||
}; | ||
@@ -255,0 +252,0 @@ /** |
{ | ||
"name": "laravel-precognition", | ||
"version": "0.5.12", | ||
"version": "0.5.13", | ||
"description": "Laravel Precognition.", | ||
@@ -23,3 +23,3 @@ "keywords": [ | ||
"scripts": { | ||
"watch": "rm -rf dist && tsc --watch", | ||
"watch": "rm -rf dist && tsc --watch --preserveWatchOutput", | ||
"build": "rm -rf dist && tsc", | ||
@@ -26,0 +26,0 @@ "typeCheck": "tsc --noEmit", |
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
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
28936
696