@vesperjs/shared 0.9.10 → 0.9.12
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/index.d.mts +2 -1
- package/dist/index.mjs +8 -7
- package/package.json +7 -7
package/dist/index.d.mts
CHANGED
|
@@ -37,7 +37,8 @@ declare const useBackendErrorInfo: <R extends object>() => {
|
|
|
37
37
|
declare const useExternalErrors: <P extends string>(flash: Ref<Flash>) => {
|
|
38
38
|
externalErrors: WritableComputedRef<ErrorMessages<P>>;
|
|
39
39
|
clearExternalErrors: () => void;
|
|
40
|
-
|
|
40
|
+
success: boolean;
|
|
41
|
+
isSuccess: boolean;
|
|
41
42
|
};
|
|
42
43
|
//#endregion
|
|
43
44
|
//#region src/composables/util/use-date.d.ts
|
package/dist/index.mjs
CHANGED
|
@@ -26,16 +26,17 @@ const useExternalErrors = function(flash) {
|
|
|
26
26
|
const clearExternalErrors = () => {
|
|
27
27
|
externalErrors.value = {};
|
|
28
28
|
};
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
if (
|
|
33
|
-
return
|
|
34
|
-
};
|
|
29
|
+
const success = computed(() => {
|
|
30
|
+
if (flash.value.alert) return false;
|
|
31
|
+
const errorMap = errors.value;
|
|
32
|
+
for (const key in errorMap) if (errorMap[key].length > 0) return false;
|
|
33
|
+
return true;
|
|
34
|
+
});
|
|
35
35
|
return {
|
|
36
36
|
externalErrors,
|
|
37
37
|
clearExternalErrors,
|
|
38
|
-
|
|
38
|
+
success: success.value,
|
|
39
|
+
isSuccess: success.value
|
|
39
40
|
};
|
|
40
41
|
};
|
|
41
42
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesperjs/shared",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Nuxt",
|
|
6
6
|
"vue.js"
|
|
@@ -24,18 +24,18 @@
|
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"@eslint/js": "^10.0.1",
|
|
27
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
28
|
-
"@typescript-eslint/parser": "^8.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
28
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
29
29
|
"@vue/eslint-config-typescript": "^14.8.0",
|
|
30
|
-
"eslint": "^10.
|
|
30
|
+
"eslint": "^10.5.0",
|
|
31
31
|
"eslint-plugin-vue": "^10.9.2",
|
|
32
|
-
"oxfmt": "^0.
|
|
32
|
+
"oxfmt": "^0.54.0",
|
|
33
33
|
"tsdown": "^0.22.2",
|
|
34
34
|
"typescript": "^6.0.3",
|
|
35
|
-
"typescript-eslint": "^8.
|
|
35
|
+
"typescript-eslint": "^8.61.0"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@vue/reactivity": "^3.5.
|
|
38
|
+
"@vue/reactivity": "^3.5.38 || ^3.6.0-beta.15"
|
|
39
39
|
},
|
|
40
40
|
"scripts": {
|
|
41
41
|
"build": "tsdown --dts",
|