@supabase/storage-js 3.0.0-next.14 → 3.0.0-next.16
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 +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +4 -4
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -4
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/index.mjs.map +1 -1
- package/dist/umd/supabase.js +1 -1
- package/package.json +1 -1
- package/src/lib/types.ts +3 -3
- package/src/lib/version.ts +1 -1
- package/src/packages/StorageFileApi.ts +2 -2
package/dist/index.cjs
CHANGED
|
@@ -1176,7 +1176,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1176
1176
|
*
|
|
1177
1177
|
* @category File Buckets
|
|
1178
1178
|
* @param path The file path, including the file name. For example `folder/image.png`.
|
|
1179
|
-
* @returns
|
|
1179
|
+
* @returns `{ data: true, error: null }` when the file exists, `{ data: false, error: null }` when it does not (HTTP 400 or 404), or throws/returns a `StorageError` for any other failure.
|
|
1180
1180
|
*
|
|
1181
1181
|
* @example Check file existence
|
|
1182
1182
|
* ```js
|
|
@@ -1202,7 +1202,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1202
1202
|
const status = error instanceof StorageApiError ? error.status : error instanceof StorageUnknownError ? (_error$originalError = error.originalError) === null || _error$originalError === void 0 ? void 0 : _error$originalError.status : void 0;
|
|
1203
1203
|
if (status !== void 0 && [400, 404].includes(status)) return {
|
|
1204
1204
|
data: false,
|
|
1205
|
-
error
|
|
1205
|
+
error: null
|
|
1206
1206
|
};
|
|
1207
1207
|
}
|
|
1208
1208
|
throw error;
|
|
@@ -1490,7 +1490,7 @@ var StorageFileApi = class extends BaseApiClient {
|
|
|
1490
1490
|
|
|
1491
1491
|
//#endregion
|
|
1492
1492
|
//#region src/lib/version.ts
|
|
1493
|
-
const version = "3.0.0-next.
|
|
1493
|
+
const version = "3.0.0-next.16";
|
|
1494
1494
|
|
|
1495
1495
|
//#endregion
|
|
1496
1496
|
//#region src/lib/constants.ts
|