diff --git a/dist/index.js b/dist/index.js index 9c5b4f0..43050bf 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32985,7 +32985,7 @@ function findPaginatedResourcePath(responseData) { responseData, "pageInfo" ); - if (paginatedResourcePath === null || paginatedResourcePath.length === 0) { + if (paginatedResourcePath.length === 0) { throw new MissingPageInfo(responseData); } return paginatedResourcePath; @@ -32994,10 +32994,10 @@ var deepFindPathToProperty = (object, searchProp, path = []) => { for (const key of Object.keys(object)) { const currentPath = [...path, key]; const currentValue = object[key]; - if (currentValue.hasOwnProperty(searchProp)) { - return currentPath; - } if (isObject(currentValue)) { + if (currentValue.hasOwnProperty(searchProp)) { + return currentPath; + } const result = deepFindPathToProperty( currentValue, searchProp, diff --git a/package-lock.json b/package-lock.json index 9bcc15e..ef65c00 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1505,9 +1505,9 @@ "integrity": "sha512-QBhVjcUa9W7Wwhm6DBFu6ZZ+1/t/oYxqc2tp81Pi41YNuJinbFRx8B133qVOrAaBbF7D/m0Et6f9/pZt9Rc+tg==" }, "node_modules/@octokit/plugin-paginate-graphql": { - "version": "5.2.3", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-5.2.3.tgz", - "integrity": "sha512-EzFueuXVU3VHv5FwEXbdznn9EmyF0vA5LGDX6a8fJ9YJAlDgdYHRKJMO4Ghl2PPPJBxIPMDUJMnlUHqcvP7AnQ==", + "version": "5.2.4", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-graphql/-/plugin-paginate-graphql-5.2.4.tgz", + "integrity": "sha512-pLZES1jWaOynXKHOqdnwZ5ULeVR6tVVCMm+AUbp0htdcyXDU95WbkYdU4R2ej1wKj5Tu94Mee2Ne0PjPO9cCyA==", "engines": { "node": ">= 18" },