@globalbrain/sefirot 3.51.2 → 3.51.5
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/lib/composables/Error.ts +2 -1
- package/lib/http/Http.ts +7 -7
- package/lib/shim.d.ts +4 -0
- package/package.json +4 -4
package/lib/composables/Error.ts
CHANGED
|
@@ -144,7 +144,8 @@ const ignoreErrors = [
|
|
|
144
144
|
/Network Error/,
|
|
145
145
|
/Non-Error (?:exception|promise rejection) captured/,
|
|
146
146
|
/ResizeObserver loop/,
|
|
147
|
-
/Can't find variable: gmo
|
|
147
|
+
/Can't find variable: gmo/,
|
|
148
|
+
/\[Cloudflare Turnstile\] Error: (?:10[2-46]|1106[02]|[36]00)/
|
|
148
149
|
]
|
|
149
150
|
|
|
150
151
|
export function useErrorHandler({
|
package/lib/http/Http.ts
CHANGED
|
@@ -8,8 +8,8 @@ import { type Lang } from '../composables/Lang'
|
|
|
8
8
|
type Awaitable<T> = T | PromiseLike<T>
|
|
9
9
|
|
|
10
10
|
export interface HttpClient {
|
|
11
|
-
|
|
12
|
-
raw
|
|
11
|
+
(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<any>
|
|
12
|
+
raw(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<FetchResponse<any>>
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface HttpOptions {
|
|
@@ -97,12 +97,12 @@ export class Http {
|
|
|
97
97
|
]
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
private async performRequest<T>(url: string, options: FetchOptions = {}) {
|
|
101
|
-
return Http.client
|
|
100
|
+
private async performRequest<T>(url: string, options: FetchOptions = {}): Promise<T> {
|
|
101
|
+
return Http.client(...(await this.buildRequest(url, options)))
|
|
102
102
|
}
|
|
103
103
|
|
|
104
|
-
private async performRequestRaw<T>(url: string, options: FetchOptions = {}) {
|
|
105
|
-
return Http.client.raw
|
|
104
|
+
private async performRequestRaw<T>(url: string, options: FetchOptions = {}): Promise<FetchResponse<T>> {
|
|
105
|
+
return Http.client.raw(...(await this.buildRequest(url, options)))
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
async get<T = any>(url: string, options?: FetchOptions): Promise<T> {
|
|
@@ -170,7 +170,7 @@ export class Http {
|
|
|
170
170
|
FileSaver.saveAs(blob, filename as string)
|
|
171
171
|
}
|
|
172
172
|
|
|
173
|
-
private objectToFormData(obj: any, form?: FormData, namespace?: string, onlyFiles = false) {
|
|
173
|
+
private objectToFormData(obj: any, form?: FormData, namespace?: string, onlyFiles = false): FormData {
|
|
174
174
|
const fd = form || new FormData()
|
|
175
175
|
let formKey: string
|
|
176
176
|
|
package/lib/shim.d.ts
ADDED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@globalbrain/sefirot",
|
|
3
|
-
"version": "3.51.
|
|
3
|
+
"version": "3.51.5",
|
|
4
4
|
"packageManager": "pnpm@9.1.1",
|
|
5
5
|
"description": "Vue Components for Global Brain Design System.",
|
|
6
6
|
"author": "Kia Ishii <ka.ishii@globalbrains.com>",
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
"pinia": "^2.1.7",
|
|
61
61
|
"postcss": "^8.4.38",
|
|
62
62
|
"postcss-nested": "^6.0.1",
|
|
63
|
-
"v-calendar": "
|
|
63
|
+
"v-calendar": "3.0.1",
|
|
64
64
|
"vue": "^3.4.27",
|
|
65
65
|
"vue-router": "^4.3.2"
|
|
66
66
|
},
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"@types/file-saver": "^2.0.7",
|
|
73
73
|
"@types/qs": "^6.9.15",
|
|
74
74
|
"file-saver": "^2.0.5",
|
|
75
|
-
"ofetch": "^1.
|
|
75
|
+
"ofetch": "^1.4.1",
|
|
76
76
|
"qs": "^6.12.1"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
"punycode": "^2.3.1",
|
|
110
110
|
"release-it": "^17.2.1",
|
|
111
111
|
"typescript": "~5.4.5",
|
|
112
|
-
"v-calendar": "
|
|
112
|
+
"v-calendar": "3.0.1",
|
|
113
113
|
"vite": "^5.2.11",
|
|
114
114
|
"vitepress": "^1.1.4",
|
|
115
115
|
"vitest": "^1.6.0",
|