@supabase/storage-js 2.105.4 → 2.105.5-beta.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 CHANGED
@@ -1197,7 +1197,7 @@ var StorageFileApi = class extends BaseApiClient {
1197
1197
  * @category Storage
1198
1198
  * @subcategory File Buckets
1199
1199
  * @param path The file path, including the file name. For example `folder/image.png`.
1200
- * @returns Promise with response containing boolean indicating file existence or error
1200
+ * @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.
1201
1201
  *
1202
1202
  * @example Check file existence
1203
1203
  * ```js
@@ -1223,7 +1223,7 @@ var StorageFileApi = class extends BaseApiClient {
1223
1223
  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;
1224
1224
  if (status !== void 0 && [400, 404].includes(status)) return {
1225
1225
  data: false,
1226
- error
1226
+ error: null
1227
1227
  };
1228
1228
  }
1229
1229
  throw error;
@@ -1515,7 +1515,7 @@ var StorageFileApi = class extends BaseApiClient {
1515
1515
 
1516
1516
  //#endregion
1517
1517
  //#region src/lib/version.ts
1518
- const version = "2.105.4";
1518
+ const version = "2.105.5-beta.0";
1519
1519
 
1520
1520
  //#endregion
1521
1521
  //#region src/lib/constants.ts