@supabase/storage-js 2.108.2 → 2.108.3-canary.1

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
@@ -1460,7 +1460,11 @@ var StorageFileApi = class extends BaseApiClient {
1460
1460
  async list(path, options, parameters) {
1461
1461
  var _this13 = this;
1462
1462
  return _this13.handleOperation(async () => {
1463
- const body = _objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_SEARCH_OPTIONS), options), {}, { prefix: path || "" });
1463
+ const sortBy = (options === null || options === void 0 ? void 0 : options.sortBy) ? _objectSpread2(_objectSpread2({}, DEFAULT_SEARCH_OPTIONS.sortBy), options.sortBy) : DEFAULT_SEARCH_OPTIONS.sortBy;
1464
+ const body = _objectSpread2(_objectSpread2(_objectSpread2({}, DEFAULT_SEARCH_OPTIONS), options), {}, {
1465
+ sortBy,
1466
+ prefix: path || ""
1467
+ });
1464
1468
  return await post(_this13.fetch, `${_this13.url}/object/list/${_this13.bucketId}`, body, { headers: _this13.headers }, parameters);
1465
1469
  });
1466
1470
  }
@@ -1544,7 +1548,7 @@ var StorageFileApi = class extends BaseApiClient {
1544
1548
 
1545
1549
  //#endregion
1546
1550
  //#region src/lib/version.ts
1547
- const version = "2.108.2";
1551
+ const version = "2.108.3-canary.1";
1548
1552
 
1549
1553
  //#endregion
1550
1554
  //#region src/lib/constants.ts