@supabase/storage-js 2.106.0-canary.4 → 2.106.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.cjs +16 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +6 -1
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +6 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +16 -2
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/lib/version.ts +1 -1
- package/src/packages/StreamDownloadBuilder.ts +22 -2
package/dist/index.cjs
CHANGED
|
@@ -488,13 +488,27 @@ var BaseApiClient = class {
|
|
|
488
488
|
|
|
489
489
|
//#endregion
|
|
490
490
|
//#region src/packages/StreamDownloadBuilder.ts
|
|
491
|
+
let _Symbol$toStringTag$1;
|
|
492
|
+
_Symbol$toStringTag$1 = Symbol.toStringTag;
|
|
491
493
|
var StreamDownloadBuilder = class {
|
|
492
494
|
constructor(downloadFn, shouldThrowOnError) {
|
|
493
495
|
this.downloadFn = downloadFn;
|
|
494
496
|
this.shouldThrowOnError = shouldThrowOnError;
|
|
497
|
+
this[_Symbol$toStringTag$1] = "StreamDownloadBuilder";
|
|
498
|
+
this.promise = null;
|
|
495
499
|
}
|
|
496
500
|
then(onfulfilled, onrejected) {
|
|
497
|
-
return this.
|
|
501
|
+
return this.getPromise().then(onfulfilled, onrejected);
|
|
502
|
+
}
|
|
503
|
+
catch(onrejected) {
|
|
504
|
+
return this.getPromise().catch(onrejected);
|
|
505
|
+
}
|
|
506
|
+
finally(onfinally) {
|
|
507
|
+
return this.getPromise().finally(onfinally);
|
|
508
|
+
}
|
|
509
|
+
getPromise() {
|
|
510
|
+
if (!this.promise) this.promise = this.execute();
|
|
511
|
+
return this.promise;
|
|
498
512
|
}
|
|
499
513
|
async execute() {
|
|
500
514
|
var _this = this;
|
|
@@ -1515,7 +1529,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1515
1529
|
|
|
1516
1530
|
//#endregion
|
|
1517
1531
|
//#region src/lib/version.ts
|
|
1518
|
-
const version = "2.106.0
|
|
1532
|
+
const version = "2.106.0";
|
|
1519
1533
|
|
|
1520
1534
|
//#endregion
|
|
1521
1535
|
//#region src/lib/constants.ts
|