From 4c96e28d9055a3fae2aeeef028da0cf67d65b8c0 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Sat, 12 Oct 2024 08:35:36 +0000 Subject: [PATCH 1/2] Bump @octokit/plugin-paginate-graphql from 5.2.3 to 5.2.4 Bumps [@octokit/plugin-paginate-graphql](https://github.com/octokit/plugin-paginate-graphql.js) from 5.2.3 to 5.2.4. - [Release notes](https://github.com/octokit/plugin-paginate-graphql.js/releases) - [Commits](https://github.com/octokit/plugin-paginate-graphql.js/compare/v5.2.3...v5.2.4) --- updated-dependencies: - dependency-name: "@octokit/plugin-paginate-graphql" dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] --- package-lock.json | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 41b1b96..bc4cf92 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1514,9 +1514,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" }, From b5149570e4c2fec475766742c1a41405c9473b24 Mon Sep 17 00:00:00 2001 From: Jan Sebastian Siwy Date: Sat, 12 Oct 2024 10:40:44 +0200 Subject: [PATCH 2/2] Update index.js --- dist/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index f98ba8d..5622da5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -32908,7 +32908,7 @@ function findPaginatedResourcePath(responseData) { responseData, "pageInfo" ); - if (paginatedResourcePath === null || paginatedResourcePath.length === 0) { + if (paginatedResourcePath.length === 0) { throw new MissingPageInfo(responseData); } return paginatedResourcePath; @@ -32917,10 +32917,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,