@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.
@@ -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) => CURSOR_PARAMS.includes(p.name));
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 {