@tinycloud/sdk-services 2.10.0-beta.0 → 2.10.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.
@@ -1,4 +1,4 @@
1
- import { P as PermissionHint } from '../types-KCcgZiab.cjs';
1
+ import { P as PermissionHint } from '../types-qwMmB7qB.cjs';
2
2
 
3
3
  /** A reachable node returned an HTTP failure for a decrypt request. */
4
4
  declare class DecryptTransportResponseError extends Error {
@@ -1,4 +1,4 @@
1
- import { P as PermissionHint } from '../types-KCcgZiab.js';
1
+ import { P as PermissionHint } from '../types-qwMmB7qB.js';
2
2
 
3
3
  /** A reachable node returned an HTTP failure for a decrypt request. */
4
4
  declare class DecryptTransportResponseError extends Error {
package/dist/kv/index.cjs CHANGED
@@ -1312,7 +1312,10 @@ var KVService = class extends BaseService {
1312
1312
  KVAction.LIST,
1313
1313
  void 0,
1314
1314
  options?.signal,
1315
- options?.limit === void 0 ? void 0 : { "x-tinycloud-limit": String(options.limit) }
1315
+ options?.limit === void 0 && options?.cursor === void 0 ? void 0 : {
1316
+ ...options?.limit === void 0 ? {} : { "x-tinycloud-limit": String(options.limit) },
1317
+ ...options?.cursor === void 0 ? {} : { "x-tinycloud-cursor": options.cursor }
1318
+ }
1316
1319
  );
1317
1320
  if (!response.ok) {
1318
1321
  if (response.status === 401) {
@@ -1344,7 +1347,8 @@ var KVService = class extends BaseService {
1344
1347
  }
1345
1348
  return ok({
1346
1349
  keys,
1347
- ...response.headers.get("x-tinycloud-truncated") === null ? {} : { truncated: response.headers.get("x-tinycloud-truncated") === "true" }
1350
+ ...response.headers.get("x-tinycloud-truncated") === null ? {} : { truncated: response.headers.get("x-tinycloud-truncated") === "true" },
1351
+ ...response.headers.get("x-tinycloud-next-cursor") === null ? {} : { nextCursor: response.headers.get("x-tinycloud-next-cursor") ?? void 0 }
1348
1352
  });
1349
1353
  } catch (error) {
1350
1354
  return err(wrapError("kv", error));