laravel-precognition-react-inertia
Advanced tools
Comparing version 0.5.6 to 0.5.7
@@ -110,5 +110,14 @@ import { toSimpleValidationErrors, resolveUrl, resolveMethod } from 'laravel-precognition'; | ||
}, | ||
validate(name) { | ||
validate(name, config) { | ||
precognitiveForm.setData(transformer.current(inertiaForm.data)); | ||
precognitiveForm.validate(name); | ||
if (typeof name === 'object' && !('target' in name)) { | ||
config = name; | ||
name = undefined; | ||
} | ||
if (typeof name === 'undefined') { | ||
precognitiveForm.validate(config); | ||
} | ||
else { | ||
precognitiveForm.validate(name, config); | ||
} | ||
return form; | ||
@@ -115,0 +124,0 @@ }, |
{ | ||
"name": "laravel-precognition-react-inertia", | ||
"version": "0.5.6", | ||
"version": "0.5.7", | ||
"description": "Laravel Precognition (React w/ Inertia).", | ||
@@ -24,3 +24,5 @@ "keywords": [ | ||
"scripts": { | ||
"watch": "rm -rf dist && tsc --watch", | ||
"build": "rm -rf dist && tsc", | ||
"typeCheck": "tsc --noEmit", | ||
"prepublishOnly": "npm run build", | ||
@@ -37,4 +39,4 @@ "version": "npm pkg set dependencies.laravel-precognition=$npm_package_version && npm pkg set dependencies.laravel-precognition-react=$npm_package_version" | ||
"dependencies": { | ||
"laravel-precognition": "0.5.6", | ||
"laravel-precognition-react": "0.5.6" | ||
"laravel-precognition": "0.5.7", | ||
"laravel-precognition-react": "0.5.7" | ||
}, | ||
@@ -41,0 +43,0 @@ "devDependencies": { |
9520
160
+ Addedlaravel-precognition@0.5.7(transitive)
+ Addedlaravel-precognition-react@0.5.7(transitive)
- Removedlaravel-precognition@0.5.6(transitive)
- Removedlaravel-precognition-react@0.5.6(transitive)
Updatedlaravel-precognition@0.5.7