@workos/oagen 0.18.1 → 0.18.2
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 +1 -1
- package/dist/cli/index.mjs.map +1 -1
- package/dist/index.mjs +1 -1
- 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/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1187,7 +1187,7 @@ const LIMIT_PARAMS = [
|
|
|
1187
1187
|
* Returns null if no pagination pattern is detected.
|
|
1188
1188
|
*/
|
|
1189
1189
|
function detectPagination(response, queryParams, dataPath) {
|
|
1190
|
-
const cursorParam = queryParams.find((p) =>
|
|
1190
|
+
const cursorParam = CURSOR_PARAMS.map((name) => queryParams.find((p) => p.name === name)).find((p) => p !== void 0);
|
|
1191
1191
|
if (cursorParam) {
|
|
1192
1192
|
const itemType = response.kind === "array" ? response.items : response;
|
|
1193
1193
|
return {
|