@stacksjs/browser 0.75.520 → 0.75.522
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/utils/api-url.d.ts
CHANGED
|
@@ -7,7 +7,8 @@ export declare function resolveApiBaseUrl(defaultPath?: string): string;
|
|
|
7
7
|
/*`.
|
|
8
8
|
* Absolute URLs are already fully resolved and pass through unchanged.
|
|
9
9
|
*/
|
|
10
|
-
export declare function resolveApiUrl(input: string, baseUrl?:
|
|
10
|
+
export declare function resolveApiUrl(input: string, baseUrl?: string): string;
|
|
11
11
|
declare type StacksBrowserGlobal = typeof globalThis & {
|
|
12
12
|
__STACKS_API_URL__?: string
|
|
13
13
|
}
|
|
14
|
+
export {};
|
package/dist/utils/fetch.d.ts
CHANGED
|
@@ -1,14 +1,3 @@
|
|
|
1
|
-
declare function get(url: string, params?: Params, headers?: Headers): Promise<FetchResponse>;
|
|
2
|
-
declare function post(url: string, params?: Params, headers?: Headers): Promise<FetchResponse>;
|
|
3
|
-
declare function patch(url: string, params?: Params, headers?: Headers): Promise<FetchResponse>;
|
|
4
|
-
declare function put(url: string, params?: Params, headers?: Headers): Promise<FetchResponse>;
|
|
5
|
-
declare function destroy(url: string, params?: Params, headers?: Headers): Promise<FetchResponse>;
|
|
6
|
-
declare function setToken(authToken: string): void;
|
|
7
|
-
/** @defaultValue false */
|
|
8
|
-
declare let loading: boolean;
|
|
9
|
-
/** @defaultValue '' */
|
|
10
|
-
declare let token: string;
|
|
11
|
-
declare const baseURL: '/';
|
|
12
1
|
export declare const Fetch: ApiFetch;
|
|
13
2
|
declare interface Params {
|
|
14
3
|
[key: string]: Primitive | Primitive[] | Params | Params[]
|
|
@@ -35,3 +24,4 @@ declare interface ApiFetch {
|
|
|
35
24
|
*/
|
|
36
25
|
declare type Primitive = string | number | boolean | null | undefined;
|
|
37
26
|
declare type FetchResponse = string | Blob | ArrayBuffer | ReadableStream<Uint8Array> | object;
|
|
27
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/browser",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.522",
|
|
5
5
|
"description": "Stacks core frontend/browser functionalities.",
|
|
6
6
|
"author": "Chris Breuer",
|
|
7
7
|
"contributors": [
|
|
@@ -74,9 +74,9 @@
|
|
|
74
74
|
"prepublishOnly": "bun run build"
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
|
-
"@stacksjs/composables": "0.75.
|
|
78
|
-
"@stacksjs/datetime": "0.75.
|
|
79
|
-
"@stacksjs/strings": "0.75.
|
|
77
|
+
"@stacksjs/composables": "0.75.522",
|
|
78
|
+
"@stacksjs/datetime": "0.75.522",
|
|
79
|
+
"@stacksjs/strings": "0.75.522",
|
|
80
80
|
"@stacksjs/stx": "0.2.807",
|
|
81
81
|
"bun-query-builder": "^0.3.38"
|
|
82
82
|
},
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
}
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@stacksjs/utils": "0.75.
|
|
92
|
+
"@stacksjs/utils": "0.75.522",
|
|
93
93
|
"@stripe/stripe-js": "^10.0.0",
|
|
94
94
|
"better-dx": "^0.2.24"
|
|
95
95
|
}
|