@supabase/storage-js 2.105.5-beta.0 → 2.105.5-beta.10

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.cts CHANGED
@@ -1359,7 +1359,7 @@ declare class StorageFileApi extends BaseApiClient<StorageError> {
1359
1359
  * @category Storage
1360
1360
  * @subcategory File Buckets
1361
1361
  * @param path The file path, including the file name. For example `folder/image.png`.
1362
- * @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.
1362
+ * @returns Promise with response containing boolean indicating file existence or error
1363
1363
  *
1364
1364
  * @example Check file existence
1365
1365
  * ```js
package/dist/index.d.mts CHANGED
@@ -1359,7 +1359,7 @@ declare class StorageFileApi extends BaseApiClient<StorageError> {
1359
1359
  * @category Storage
1360
1360
  * @subcategory File Buckets
1361
1361
  * @param path The file path, including the file name. For example `folder/image.png`.
1362
- * @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.
1362
+ * @returns Promise with response containing boolean indicating file existence or error
1363
1363
  *
1364
1364
  * @example Check file existence
1365
1365
  * ```js
package/dist/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import { IcebergRestCatalog } from "iceberg-js";
2
2
 
3
- //#region \0@oxc-project+runtime@0.101.0/helpers/typeof.js
3
+ //#region \0@oxc-project+runtime@0.103.0/helpers/typeof.js
4
4
  function _typeof(o) {
5
5
  "@babel/helpers - typeof";
6
6
  return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o$1) {
@@ -11,7 +11,7 @@ function _typeof(o) {
11
11
  }
12
12
 
13
13
  //#endregion
14
- //#region \0@oxc-project+runtime@0.101.0/helpers/toPrimitive.js
14
+ //#region \0@oxc-project+runtime@0.103.0/helpers/toPrimitive.js
15
15
  function toPrimitive(t, r) {
16
16
  if ("object" != _typeof(t) || !t) return t;
17
17
  var e = t[Symbol.toPrimitive];
@@ -24,14 +24,14 @@ function toPrimitive(t, r) {
24
24
  }
25
25
 
26
26
  //#endregion
27
- //#region \0@oxc-project+runtime@0.101.0/helpers/toPropertyKey.js
27
+ //#region \0@oxc-project+runtime@0.103.0/helpers/toPropertyKey.js
28
28
  function toPropertyKey(t) {
29
29
  var i = toPrimitive(t, "string");
30
30
  return "symbol" == _typeof(i) ? i : i + "";
31
31
  }
32
32
 
33
33
  //#endregion
34
- //#region \0@oxc-project+runtime@0.101.0/helpers/defineProperty.js
34
+ //#region \0@oxc-project+runtime@0.103.0/helpers/defineProperty.js
35
35
  function _defineProperty(e, r, t) {
36
36
  return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
37
37
  value: t,
@@ -42,7 +42,7 @@ function _defineProperty(e, r, t) {
42
42
  }
43
43
 
44
44
  //#endregion
45
- //#region \0@oxc-project+runtime@0.101.0/helpers/objectSpread2.js
45
+ //#region \0@oxc-project+runtime@0.103.0/helpers/objectSpread2.js
46
46
  function ownKeys(e, r) {
47
47
  var t = Object.keys(e);
48
48
  if (Object.getOwnPropertySymbols) {
@@ -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 `{ 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.
1200
+ * @returns Promise with response containing boolean indicating file existence or error
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: null
1226
+ error
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.5-beta.0";
1518
+ const version = "2.105.5-beta.10";
1519
1519
 
1520
1520
  //#endregion
1521
1521
  //#region src/lib/constants.ts