@zag-js/file-utils 1.15.7 → 1.17.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.
- package/dist/index.d.mts +3 -3
- package/dist/index.d.ts +3 -3
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -18,19 +18,19 @@ interface DownloadFileOptions {
|
|
|
18
18
|
/**
|
|
19
19
|
* The window environment
|
|
20
20
|
*/
|
|
21
|
-
win?: typeof window;
|
|
21
|
+
win?: typeof window | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* Whether to add a BOM (Byte Order Mark) to the file.
|
|
24
24
|
* Useful for CSV files.
|
|
25
25
|
*/
|
|
26
|
-
appendBOM?: boolean;
|
|
26
|
+
appendBOM?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The timeout in milliseconds to revoke the object URL.
|
|
29
29
|
* This is a safeguard for when the browser has not finished reading the
|
|
30
30
|
* file data from memory before the URL is revoked.
|
|
31
31
|
* @default 0
|
|
32
32
|
*/
|
|
33
|
-
revokeTimeout?: number;
|
|
33
|
+
revokeTimeout?: number | undefined;
|
|
34
34
|
}
|
|
35
35
|
declare function downloadFile(options: DownloadFileOptions): void;
|
|
36
36
|
|
package/dist/index.d.ts
CHANGED
|
@@ -18,19 +18,19 @@ interface DownloadFileOptions {
|
|
|
18
18
|
/**
|
|
19
19
|
* The window environment
|
|
20
20
|
*/
|
|
21
|
-
win?: typeof window;
|
|
21
|
+
win?: typeof window | undefined;
|
|
22
22
|
/**
|
|
23
23
|
* Whether to add a BOM (Byte Order Mark) to the file.
|
|
24
24
|
* Useful for CSV files.
|
|
25
25
|
*/
|
|
26
|
-
appendBOM?: boolean;
|
|
26
|
+
appendBOM?: boolean | undefined;
|
|
27
27
|
/**
|
|
28
28
|
* The timeout in milliseconds to revoke the object URL.
|
|
29
29
|
* This is a safeguard for when the browser has not finished reading the
|
|
30
30
|
* file data from memory before the URL is revoked.
|
|
31
31
|
* @default 0
|
|
32
32
|
*/
|
|
33
|
-
revokeTimeout?: number;
|
|
33
|
+
revokeTimeout?: number | undefined;
|
|
34
34
|
}
|
|
35
35
|
declare function downloadFile(options: DownloadFileOptions): void;
|
|
36
36
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zag-js/file-utils",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.17.0",
|
|
4
4
|
"description": "JS File API utilities",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"js",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
},
|
|
25
25
|
"clean-package": "../../../clean-package.config.json",
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@zag-js/i18n-utils": "1.
|
|
27
|
+
"@zag-js/i18n-utils": "1.17.0"
|
|
28
28
|
},
|
|
29
29
|
"devDependencies": {
|
|
30
30
|
"clean-package": "2.2.0"
|