@mdbase-dev/sdk 0.1.23 → 0.1.25

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,11 +1,11 @@
1
1
  {
2
2
  "runtime": {
3
- "sha256": "880db48f1b88e8ffe41428f9e3b4e5da4c5e45f38f359b2cb01cc4e1d088e120",
4
- "bytes": 3983377,
5
- "maxBytes": 3983377,
3
+ "sha256": "01436d36ed9b45c4ca1904dc13d348e9b6f89c14e98ba6de8402fd8e76718452",
4
+ "bytes": 3986055,
5
+ "maxBytes": 3986055,
6
6
  "source": {
7
7
  "repository": "mdbase-dev/mdbase-connect",
8
- "commit": "55fb026c9310fade864310e0a13d90f1e196cc21"
8
+ "commit": "c93f4b1938c8139e7f6ef4ad72fccd85c8502b25"
9
9
  }
10
10
  },
11
11
  "sqlite": {
@@ -15693,12 +15693,12 @@ function appReleaseTrust() {
15693
15693
  // src/application/asset-pins.json
15694
15694
  var asset_pins_default = {
15695
15695
  runtime: {
15696
- sha256: "880db48f1b88e8ffe41428f9e3b4e5da4c5e45f38f359b2cb01cc4e1d088e120",
15697
- bytes: 3983377,
15698
- maxBytes: 3983377,
15696
+ sha256: "01436d36ed9b45c4ca1904dc13d348e9b6f89c14e98ba6de8402fd8e76718452",
15697
+ bytes: 3986055,
15698
+ maxBytes: 3986055,
15699
15699
  source: {
15700
15700
  repository: "mdbase-dev/mdbase-connect",
15701
- commit: "55fb026c9310fade864310e0a13d90f1e196cc21"
15701
+ commit: "c93f4b1938c8139e7f6ef4ad72fccd85c8502b25"
15702
15702
  }
15703
15703
  },
15704
15704
  sqlite: {
@@ -25681,13 +25681,15 @@ var MdbaseClient = class _MdbaseClient {
25681
25681
  if (r.state === "rejected") throw new MdbaseError(r.problem);
25682
25682
  return r.preflight ?? { rewrites: [], broken: [] };
25683
25683
  }
25684
- /** Every page of a query. `o.include` and `o.signal` apply to every page.
25684
+ /** Every cursor page of a query. The page size defaults to 500 when `limit`
25685
+ * is omitted. `o.include` and `o.signal` apply to every page.
25685
25686
  * Cursor resets require explicit caller clearing through `o.onReset`;
25686
25687
  * otherwise cursor_expired/cursor_stale is thrown unchanged. The query and
25687
25688
  * `o` are captured when iteration starts. */
25688
25689
  async *pages(query, o = {}) {
25689
25690
  const { include: include3, signal, onReset } = o;
25690
25691
  const original = snapshotQueryValue(query);
25692
+ if (original.limit === void 0) original.limit = 500;
25691
25693
  const originalInclude = include3 ? { ...include3 } : void 0;
25692
25694
  const read = { ...originalInclude ? { include: originalInclude } : {}, ...signal ? { signal } : {} };
25693
25695
  let cursor = original.cursor, restarted = false, pagesYielded = 0;
@@ -8141,13 +8141,15 @@ var MdbaseSDK = (() => {
8141
8141
  if (r.state === "rejected") throw new MdbaseError(r.problem);
8142
8142
  return r.preflight ?? { rewrites: [], broken: [] };
8143
8143
  }
8144
- /** Every page of a query. `o.include` and `o.signal` apply to every page.
8144
+ /** Every cursor page of a query. The page size defaults to 500 when `limit`
8145
+ * is omitted. `o.include` and `o.signal` apply to every page.
8145
8146
  * Cursor resets require explicit caller clearing through `o.onReset`;
8146
8147
  * otherwise cursor_expired/cursor_stale is thrown unchanged. The query and
8147
8148
  * `o` are captured when iteration starts. */
8148
8149
  async *pages(query, o = {}) {
8149
8150
  const { include: include3, signal, onReset } = o;
8150
8151
  const original = snapshotQueryValue(query);
8152
+ if (original.limit === void 0) original.limit = 500;
8151
8153
  const originalInclude = include3 ? { ...include3 } : void 0;
8152
8154
  const read2 = { ...originalInclude ? { include: originalInclude } : {}, ...signal ? { signal } : {} };
8153
8155
  let cursor = original.cursor, restarted = false, pagesYielded = 0;
@@ -50783,12 +50785,12 @@ ${end.comment}` : end.comment;
50783
50785
  // src/application/asset-pins.json
50784
50786
  var asset_pins_default = {
50785
50787
  runtime: {
50786
- sha256: "880db48f1b88e8ffe41428f9e3b4e5da4c5e45f38f359b2cb01cc4e1d088e120",
50787
- bytes: 3983377,
50788
- maxBytes: 3983377,
50788
+ sha256: "01436d36ed9b45c4ca1904dc13d348e9b6f89c14e98ba6de8402fd8e76718452",
50789
+ bytes: 3986055,
50790
+ maxBytes: 3986055,
50789
50791
  source: {
50790
50792
  repository: "mdbase-dev/mdbase-connect",
50791
- commit: "55fb026c9310fade864310e0a13d90f1e196cc21"
50793
+ commit: "c93f4b1938c8139e7f6ef4ad72fccd85c8502b25"
50792
50794
  }
50793
50795
  },
50794
50796
  sqlite: {