@skypath-io/web-sdk 0.5.18 → 0.5.19-rc.0
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.
|
@@ -1,3 +1,33 @@
|
|
|
1
1
|
export function getErrorMessage({ response }: {
|
|
2
2
|
response: any;
|
|
3
3
|
}): Promise<string>;
|
|
4
|
+
/**
|
|
5
|
+
* Extracts detailed information from a fetch error to help diagnose network issues.
|
|
6
|
+
* @param {Object} params - The parameters object.
|
|
7
|
+
* @param {Error} params.error - The error thrown by fetch.
|
|
8
|
+
* @returns {Object} Detailed error information.
|
|
9
|
+
*/
|
|
10
|
+
export function extractFetchErrorDetails({ error }: {
|
|
11
|
+
error: Error;
|
|
12
|
+
}): any;
|
|
13
|
+
/**
|
|
14
|
+
* Constructs a full URL with query parameters.
|
|
15
|
+
* @param {string} baseUrl
|
|
16
|
+
* @param {string} path
|
|
17
|
+
* @param {Object} [params]
|
|
18
|
+
* @returns {string}
|
|
19
|
+
*/
|
|
20
|
+
export function constructUrl(baseUrl: string, path: string, params?: any): string;
|
|
21
|
+
/**
|
|
22
|
+
* Merges default headers with custom headers.
|
|
23
|
+
* @param {Object} defaultHeaders
|
|
24
|
+
* @param {Object} customHeaders
|
|
25
|
+
* @returns {Object}
|
|
26
|
+
*/
|
|
27
|
+
export function mergeHeaders(defaultHeaders: any, customHeaders: any): any;
|
|
28
|
+
/**
|
|
29
|
+
* Promisified sleep function.
|
|
30
|
+
* @param {number} ms
|
|
31
|
+
* @returns {Promise<void>}
|
|
32
|
+
*/
|
|
33
|
+
export function sleep(ms: number): Promise<void>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@skypath-io/web-sdk",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.19-rc.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "dist/bundle.cjs.js",
|
|
6
6
|
"module": "dist/bundle.es.js",
|
|
@@ -14,6 +14,9 @@
|
|
|
14
14
|
"LICENSE.txt",
|
|
15
15
|
"CHANGELOG.md"
|
|
16
16
|
],
|
|
17
|
+
"engines": {
|
|
18
|
+
"node": ">=22.14.0"
|
|
19
|
+
},
|
|
17
20
|
"publishConfig": {
|
|
18
21
|
"access": "public"
|
|
19
22
|
},
|