vis-core 0.33.4 → 0.33.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/dist/io.d.ts ADDED
@@ -0,0 +1,24 @@
1
+ declare type DownloadProgress = {
2
+ percent: number;
3
+ transferredBytes: number;
4
+ totalBytes: number;
5
+ };
6
+
7
+ export declare const isGzip: (url: string) => boolean;
8
+
9
+ export declare const jsonFetch: <T = any>(url: string, onDownloadProgress?: (progress: DownloadProgress) => void, gzip?: (url: string) => boolean, options?: JsonFetchOptions) => Promise<{
10
+ res: T | undefined;
11
+ err: unknown;
12
+ }>;
13
+
14
+ export declare type JsonFetchCacheOptions = {
15
+ enabled?: boolean;
16
+ key?: string;
17
+ clone?: boolean;
18
+ };
19
+
20
+ export declare type JsonFetchOptions = {
21
+ cache?: boolean | JsonFetchCacheOptions;
22
+ };
23
+
24
+ export { }
package/dist/io.js ADDED
@@ -0,0 +1 @@
1
+ import{n as o,t as s}from"./jsonFetch-CZU-BFk-.js";export{s as isGzip,o as jsonFetch};