@bettercms-ai/sdk 1.40.0 → 1.41.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,7 @@ function createClient(options) {
1460
1460
  }
1461
1461
  let page = 1;
1462
1462
  for (; ; ) {
1463
- const list = await this.listPages({ page, perPage: 100 });
1463
+ const list = await this.listPages({ page, perPage: 100, slug });
1464
1464
  const found = list.items.find((p) => p.slug === slug);
1465
1465
  if (found) return found;
1466
1466
  if (!list.hasNextPage) return null;
@@ -1471,6 +1471,7 @@ function createClient(options) {
1471
1471
  const url = `${base}/pages${qs({
1472
1472
  page: opts?.page,
1473
1473
  perPage: opts?.perPage,
1474
+ slug: opts?.slug,
1474
1475
  projectId: defaultProjectId,
1475
1476
  branch
1476
1477
  })}`;