@vesperjs/shared 0.9.9 → 0.9.11
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 +1 -8
- package/dist/index.mjs +1 -10
- package/package.json +7 -8
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Ref, WritableComputedRef } from "@vue/reactivity";
|
|
2
|
-
import Bowser from "bowser";
|
|
3
2
|
|
|
4
3
|
//#region src/types/error/backend-error-info.d.ts
|
|
5
4
|
interface BackendErrorInfo<BER extends object> {
|
|
@@ -68,10 +67,4 @@ declare const useFlash: () => {
|
|
|
68
67
|
clearFlash: () => void;
|
|
69
68
|
};
|
|
70
69
|
//#endregion
|
|
71
|
-
|
|
72
|
-
declare const useUserAgent: () => {
|
|
73
|
-
userAgent: Bowser.Parser.ParsedResult;
|
|
74
|
-
browserInfo: Bowser.Parser.Parser;
|
|
75
|
-
};
|
|
76
|
-
//#endregion
|
|
77
|
-
export { type BackendErrorInfo, type BackendErrorResource, type ErrorMessages, type ErrorsResource, type Flash, useBackendErrorInfo, useDate, useEntity, useExternalErrors, useFlash, useUserAgent };
|
|
70
|
+
export { type BackendErrorInfo, type BackendErrorResource, type ErrorMessages, type ErrorsResource, type Flash, useBackendErrorInfo, useDate, useEntity, useExternalErrors, useFlash };
|
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { computed, ref } from "@vue/reactivity";
|
|
2
2
|
import { parse } from "@formkit/tempo";
|
|
3
|
-
import Bowser from "bowser";
|
|
4
3
|
//#region src/composables/backend/error/use-backend-error-info.ts
|
|
5
4
|
const useBackendErrorInfo = function() {
|
|
6
5
|
const backendErrorInfo = ref({});
|
|
@@ -81,12 +80,4 @@ const useFlash = function() {
|
|
|
81
80
|
};
|
|
82
81
|
};
|
|
83
82
|
//#endregion
|
|
84
|
-
|
|
85
|
-
const useUserAgent = function() {
|
|
86
|
-
return {
|
|
87
|
-
userAgent: Bowser.parse(globalThis.navigator.userAgent),
|
|
88
|
-
browserInfo: Bowser.getParser(globalThis.navigator.userAgent)
|
|
89
|
-
};
|
|
90
|
-
};
|
|
91
|
-
//#endregion
|
|
92
|
-
export { useBackendErrorInfo, useDate, useEntity, useExternalErrors, useFlash, useUserAgent };
|
|
83
|
+
export { useBackendErrorInfo, useDate, useEntity, useExternalErrors, useFlash };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vesperjs/shared",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.11",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"Nuxt",
|
|
6
6
|
"vue.js"
|
|
@@ -20,23 +20,22 @@
|
|
|
20
20
|
"./package.json": "./package.json"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"@formkit/tempo": "^1.1.0"
|
|
24
|
-
"bowser": "^2.14.1"
|
|
23
|
+
"@formkit/tempo": "^1.1.0"
|
|
25
24
|
},
|
|
26
25
|
"devDependencies": {
|
|
27
26
|
"@eslint/js": "^10.0.1",
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
29
|
-
"@typescript-eslint/parser": "^8.
|
|
27
|
+
"@typescript-eslint/eslint-plugin": "^8.61.0",
|
|
28
|
+
"@typescript-eslint/parser": "^8.61.0",
|
|
30
29
|
"@vue/eslint-config-typescript": "^14.8.0",
|
|
31
30
|
"eslint": "^10.4.1",
|
|
32
31
|
"eslint-plugin-vue": "^10.9.2",
|
|
33
|
-
"oxfmt": "^0.
|
|
32
|
+
"oxfmt": "^0.54.0",
|
|
34
33
|
"tsdown": "^0.22.2",
|
|
35
34
|
"typescript": "^6.0.3",
|
|
36
|
-
"typescript-eslint": "^8.
|
|
35
|
+
"typescript-eslint": "^8.61.0"
|
|
37
36
|
},
|
|
38
37
|
"peerDependencies": {
|
|
39
|
-
"@vue/reactivity": "^3.5.
|
|
38
|
+
"@vue/reactivity": "^3.5.38 || ^3.6.0-beta.15"
|
|
40
39
|
},
|
|
41
40
|
"scripts": {
|
|
42
41
|
"build": "tsdown --dts",
|