@workos/oagen 0.18.1 → 0.19.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.
- package/README.md +1 -1
- package/dist/cli/index.mjs +10 -4
- package/dist/cli/index.mjs.map +1 -1
- package/dist/{diff-JU1bdT5_.mjs → diff-BcQbWkj4.mjs} +5 -3
- package/dist/{diff-JU1bdT5_.mjs.map → diff-BcQbWkj4.mjs.map} +1 -1
- package/dist/index.d.mts +16 -6
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/scripts/smoke/baseline.mjs +1 -1
- package/dist/scripts/smoke/baseline.mjs.map +1 -1
- package/dist/smoke.mjs +1 -1
- package/dist/smoke.mjs.map +1 -1
- package/dist/verify/index.mjs +1 -1
- package/package.json +1 -1
package/dist/smoke.mjs
CHANGED
|
@@ -1384,7 +1384,7 @@ const LIMIT_PARAMS = [
|
|
|
1384
1384
|
* Returns null if no pagination pattern is detected.
|
|
1385
1385
|
*/
|
|
1386
1386
|
function detectPagination(response, queryParams, dataPath) {
|
|
1387
|
-
const cursorParam = queryParams.find((p) =>
|
|
1387
|
+
const cursorParam = CURSOR_PARAMS.map((name) => queryParams.find((p) => p.name === name)).find((p) => p !== void 0);
|
|
1388
1388
|
if (cursorParam) {
|
|
1389
1389
|
const itemType = response.kind === "array" ? response.items : response;
|
|
1390
1390
|
return {
|