@tthr/vue 0.0.14 → 0.0.16
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.
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
* ```
|
|
19
19
|
*/
|
|
20
20
|
|
|
21
|
-
import {
|
|
21
|
+
import { createError } from 'h3';
|
|
22
|
+
import { useRuntimeConfig } from '#imports';
|
|
22
23
|
|
|
23
24
|
export interface TetherServerClient {
|
|
24
25
|
/**
|
|
@@ -107,7 +108,7 @@ export interface AssetMetadata {
|
|
|
107
108
|
* @param event - The H3 event (optional, used for request context)
|
|
108
109
|
* @returns A Tether client with query, mutation, and storage methods
|
|
109
110
|
*/
|
|
110
|
-
export function useTetherServer(_event?:
|
|
111
|
+
export function useTetherServer(_event?: unknown): TetherServerClient {
|
|
111
112
|
const config = useRuntimeConfig();
|
|
112
113
|
|
|
113
114
|
const apiKey = config.tether?.apiKey || process.env.TETHER_API_KEY;
|