nuxt-outfit 1.6.4 → 1.6.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/module.json
CHANGED
|
@@ -4,7 +4,7 @@ export declare const useForm: (opts?: {}) => {
|
|
|
4
4
|
repeatArray: (property: any) => void;
|
|
5
5
|
removeArray: (property: any, index: any) => void;
|
|
6
6
|
isPending: import("vue").Ref<boolean>;
|
|
7
|
-
handleSubmit: (event
|
|
7
|
+
handleSubmit: (event?: null, params?: null) => Promise<void>;
|
|
8
8
|
clearError: (field: any) => void;
|
|
9
9
|
reset: (values?: null) => void;
|
|
10
10
|
onSuccess: (callback: any) => void;
|
|
@@ -118,7 +118,7 @@ export const useForm = (opts = {}) => {
|
|
|
118
118
|
const validate = (params) => {
|
|
119
119
|
return opts?.schema.validate(deepClone(fields), params?.validationOptions ?? { abortEarly: false }).then((validated) => makeRequest(params, validated)).then((hit) => handleSuccess(hit)).catch((fail) => handleFail(fail));
|
|
120
120
|
};
|
|
121
|
-
const handleSubmit = async (event = null, params) => {
|
|
121
|
+
const handleSubmit = async (event = null, params = null) => {
|
|
122
122
|
processing();
|
|
123
123
|
await validate(params);
|
|
124
124
|
processed();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nuxt-outfit",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6",
|
|
4
4
|
"description": "Outfit - Connection Laravel and Nuxt",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@nuxt/kit": "^3.2.2",
|
|
40
|
-
"cookie": "^0.
|
|
40
|
+
"cookie": "^1.0.2",
|
|
41
41
|
"flat": "^5.0.2",
|
|
42
42
|
"klona": "^2.0.6",
|
|
43
43
|
"laravel-echo": "^1.15.0",
|