laravel-precognition-alpine
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -24,3 +24,3 @@ import { client, createValidator, resolveName, toSimpleValidationErrors, resolveUrl, resolveMethod } from 'laravel-precognition'; | ||
*/ | ||
const validator = createValidator(client => client[resolveMethod(method)](resolveUrl(url), form.data(), config), originalData) | ||
const validator = createValidator((client) => client[resolveMethod(method)](resolveUrl(url), form.data(), config), originalData) | ||
.on('validatingChanged', () => { | ||
@@ -115,6 +115,6 @@ form.validating = validator.validating(); | ||
// @ts-expect-error | ||
originalInputs.forEach(name => (form[name] = original[name])); | ||
originalInputs.forEach((name) => (form[name] = original[name])); | ||
} | ||
else { | ||
names.forEach(name => set(form, name, get(original, name))); | ||
names.forEach((name) => set(form, name, get(original, name))); | ||
} | ||
@@ -121,0 +121,0 @@ validator.reset(...names); |
{ | ||
"name": "laravel-precognition-alpine", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "Laravel Precognition (Alpine).", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"dependencies": { | ||
"laravel-precognition": "0.5.7", | ||
"laravel-precognition": "0.5.8", | ||
"lodash-es": "^4.17.21" | ||
@@ -39,0 +39,0 @@ }, |
11568
+ Addedlaravel-precognition@0.5.8(transitive)
- Removedlaravel-precognition@0.5.7(transitive)
Updatedlaravel-precognition@0.5.8