@lacrous/omnicloud 0.2.28 → 0.2.30
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.cjs +7 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +7 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +7 -0
- package/dist/index.js.map +1 -1
- package/package.json +4 -4
- package/server/index.js +1 -1
- package/server/web/assets/{index-Dn6lUGQf.js → index-Cimv9hDI.js} +1 -1
- package/server/web/index.html +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -433,6 +433,13 @@ declare class FilesApi {
|
|
|
433
433
|
private uploadViaXhr;
|
|
434
434
|
/** Uploads a new version of an existing file. */
|
|
435
435
|
replace(id: string, input: UploadInput): Promise<FileDTO$1>;
|
|
436
|
+
/**
|
|
437
|
+
* Buffers the entire file in memory. Use `downloadToFile` or `downloadStream` for
|
|
438
|
+
* large files.
|
|
439
|
+
*
|
|
440
|
+
* @deprecated Loads the whole file into memory. Use `downloadToFile` (Node) or
|
|
441
|
+
* `downloadStream` (any runtime) for large files.
|
|
442
|
+
*/
|
|
436
443
|
download(id: string, onProgress?: (p: DownloadProgress) => void): Promise<DownloadResult>;
|
|
437
444
|
/**
|
|
438
445
|
* Streams a file's bytes without holding the whole file in memory. Use this for
|
package/dist/index.d.ts
CHANGED
|
@@ -433,6 +433,13 @@ declare class FilesApi {
|
|
|
433
433
|
private uploadViaXhr;
|
|
434
434
|
/** Uploads a new version of an existing file. */
|
|
435
435
|
replace(id: string, input: UploadInput): Promise<FileDTO$1>;
|
|
436
|
+
/**
|
|
437
|
+
* Buffers the entire file in memory. Use `downloadToFile` or `downloadStream` for
|
|
438
|
+
* large files.
|
|
439
|
+
*
|
|
440
|
+
* @deprecated Loads the whole file into memory. Use `downloadToFile` (Node) or
|
|
441
|
+
* `downloadStream` (any runtime) for large files.
|
|
442
|
+
*/
|
|
436
443
|
download(id: string, onProgress?: (p: DownloadProgress) => void): Promise<DownloadResult>;
|
|
437
444
|
/**
|
|
438
445
|
* Streams a file's bytes without holding the whole file in memory. Use this for
|
package/dist/index.js
CHANGED
|
@@ -376,6 +376,13 @@ var FilesApi = class {
|
|
|
376
376
|
);
|
|
377
377
|
return file;
|
|
378
378
|
}
|
|
379
|
+
/**
|
|
380
|
+
* Buffers the entire file in memory. Use `downloadToFile` or `downloadStream` for
|
|
381
|
+
* large files.
|
|
382
|
+
*
|
|
383
|
+
* @deprecated Loads the whole file into memory. Use `downloadToFile` (Node) or
|
|
384
|
+
* `downloadStream` (any runtime) for large files.
|
|
385
|
+
*/
|
|
379
386
|
async download(id, onProgress) {
|
|
380
387
|
return this.client.requestBinary(`/api/files/${id}/download`, onProgress);
|
|
381
388
|
}
|