@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # oagen
2
2
 
3
- oagen is a framework for building custom SDK generators from OpenAPI 3.x specifications.
3
+ oagen ([**oʊweɪdd͡ʒɛn**](https://ipa-reader.com/?text=o%CA%8Awe%C9%AAdd%CD%A1%CA%92%C9%9Bn)) is a framework for building custom SDK generators from OpenAPI 3.x specifications.
4
4
 
5
5
  Its core job is narrow:
6
6
 
@@ -1435,7 +1435,7 @@ const LIMIT_PARAMS = [
1435
1435
  * Returns null if no pagination pattern is detected.
1436
1436
  */
1437
1437
  function detectPagination(response, queryParams, dataPath) {
1438
- const cursorParam = queryParams.find((p) => CURSOR_PARAMS.includes(p.name));
1438
+ const cursorParam = CURSOR_PARAMS.map((name) => queryParams.find((p) => p.name === name)).find((p) => p !== void 0);
1439
1439
  if (cursorParam) {
1440
1440
  const itemType = response.kind === "array" ? response.items : response;
1441
1441
  return {