@globalbrain/sefirot 4.35.3 → 4.35.4

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/http/Http.ts CHANGED
@@ -61,7 +61,9 @@ export class Http {
61
61
  }
62
62
 
63
63
  private async performRequestRaw<T>(url: string, options: FetchOptions = {}): Promise<FetchResponse<T>> {
64
- return this.config.client.raw(...(await this.buildRequest(url, options)))
64
+ // 'raw' is unavailable in useRequestFetch() during SSR, but performRequestRaw is only
65
+ // called by download, which runs client-side, so asserting raw's existence is safe
66
+ return this.config.client.raw!(...(await this.buildRequest(url, options)))
65
67
  }
66
68
 
67
69
  async get<T = any>(url: string, options?: FetchOptions): Promise<T> {
@@ -8,7 +8,7 @@ type Awaitable<T> = T | PromiseLike<T>
8
8
 
9
9
  export interface HttpClient {
10
10
  (request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<any>
11
- raw(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<FetchResponse<any>>
11
+ raw?(request: FetchRequest, options?: Omit<FetchOptions, 'method'>): Promise<FetchResponse<any>>
12
12
  }
13
13
 
14
14
  export interface HttpOptions {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@globalbrain/sefirot",
3
- "version": "4.35.3",
3
+ "version": "4.35.4",
4
4
  "description": "Vue Components for Global Brain Design System.",
5
5
  "keywords": [
6
6
  "components",