@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 +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.ts +3 -3
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/dist/{read-Bb60mWmW.d.ts → read-CZB0cP-f.d.ts} +1 -1
- package/dist/{read-AYzXKCU-.d.cts → read-DWArctXs.d.cts} +1 -1
- package/dist/{read-client-CnkVzNP0.d.cts → read-client-TTj8g07j.d.cts} +2 -0
- package/dist/{read-client-CnkVzNP0.d.ts → read-client-TTj8g07j.d.ts} +2 -0
- package/dist/read.cjs +2 -1
- package/dist/read.cjs.map +1 -1
- package/dist/read.d.cts +2 -2
- package/dist/read.d.ts +2 -2
- package/dist/read.js +2 -1
- package/dist/read.js.map +1 -1
- package/dist/sections.cjs +22 -9
- package/dist/sections.cjs.map +1 -1
- package/dist/sections.d.cts +11 -2
- package/dist/sections.d.ts +11 -2
- package/dist/sections.js +22 -9
- package/dist/sections.js.map +1 -1
- package/package.json +2 -2
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
|
})}`;
|