From 8678dc0d3b36bcf312a0c53071b327275135679a Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Tue, 31 Aug 2021 11:39:49 -0700 Subject: [PATCH 1/3] feat(typescript): `.rest.packages.deletePackageForUser()`, `.rest.packages.deletePackageVersionForUser()`, `.rest.packages.restorePackageForUser()`, `.rest.packages.restorePackageVersionForUser()`, `.rest.secretScanning.listAlertsForOrg()` --- package.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/package.json b/package.json index 071c566d7d..b7079ac6dc 100644 --- a/package.json +++ b/package.json @@ -20,14 +20,14 @@ "test:typescript": "npx tsc --noEmit --declaration --noUnusedLocals --esModuleInterop --strict test/typescript-validate.ts" }, "dependencies": { - "@octokit/app": "^12.0.0", - "@octokit/core": "^3.3.1", - "@octokit/oauth-app": "^3.3.0", - "@octokit/plugin-paginate-rest": "^2.13.3", - "@octokit/plugin-rest-endpoint-methods": "5.8.0", - "@octokit/plugin-retry": "^3.0.8", - "@octokit/plugin-throttling": "^3.4.3", - "@octokit/types": "^6.16.1" + "@octokit/app": "^12.0.4", + "@octokit/core": "^3.5.1", + "@octokit/oauth-app": "^3.5.1", + "@octokit/plugin-paginate-rest": "^2.16.0", + "@octokit/plugin-rest-endpoint-methods": "^5.9.0", + "@octokit/plugin-retry": "^3.0.9", + "@octokit/plugin-throttling": "^3.5.1", + "@octokit/types": "^6.26.0" }, "devDependencies": { "@octokit/tsconfig": "^1.0.2", From 417e1ca0c5350c913f3731390081e7ac9115d8a5 Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Tue, 31 Aug 2021 11:39:51 -0700 Subject: [PATCH 2/3] build(package): lock file --- package-lock.json | 117 +++++++++++++++++++--------------------------- 1 file changed, 47 insertions(+), 70 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4b7e24df68..43717da2fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2127,9 +2127,9 @@ } }, "@octokit/app": { - "version": "12.0.3", - "resolved": "https://registry.npmjs.org/@octokit/app/-/app-12.0.3.tgz", - "integrity": "sha512-ag/g5ufxZl+t93b19WBdrg+7GLq3IgPsGb5z/xqjyCsV2tr7i2Dqjrah/IbTJ4ncNE7iIvMQI5/vKjiSSUxqCg==", + "version": "12.0.4", + "resolved": "https://registry.npmjs.org/@octokit/app/-/app-12.0.4.tgz", + "integrity": "sha512-ZBOIaKDvOA/DdaMDYqC4Pfv928fUlgy+qQ6R5HGSJITjRI+BS1BZo1VyWBqr+D7rCkox0vC4b/d8cvhyPdyJaQ==", "requires": { "@octokit/auth-app": "^3.3.0", "@octokit/auth-unauthenticated": "^2.0.4", @@ -2141,9 +2141,9 @@ } }, "@octokit/auth-app": { - "version": "3.5.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-3.5.2.tgz", - "integrity": "sha512-IVgh3UmnJlLRmt5vAhhWqdzlnPo7wKBXXA5NRNyXPpa5bokY29Us6Qt/D33K7umH3xJ6QZLB5USByaMIHTmgOA==", + "version": "3.6.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-3.6.0.tgz", + "integrity": "sha512-A+tLuHEMXw+Xz9dmKO7Ho9i4EmMr4tThrwYTlmMNu8y93JxvvRjKFFElpCTS+Z0NlbfuyNdaTlJnAinFbVKm7g==", "requires": { "@octokit/auth-oauth-app": "^4.3.0", "@octokit/auth-oauth-user": "^1.2.3", @@ -2237,9 +2237,9 @@ } }, "@octokit/graphql": { - "version": "4.6.4", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.6.4.tgz", - "integrity": "sha512-SWTdXsVheRmlotWNjKzPOb6Js6tjSqA2a8z9+glDJng0Aqjzti8MEWOtuT8ZSu6wHnci7LZNuarE87+WJBG4vg==", + "version": "4.8.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-4.8.0.tgz", + "integrity": "sha512-0gv+qLSBLKF0z8TKaSKTsS39scVKF9dbMxJpj3U0vC7wjNWFuIpL/z76Qe2fiuCbDRcJSavkXsVtMS6/dtQQsg==", "requires": { "@octokit/request": "^5.6.0", "@octokit/types": "^6.0.3", @@ -2247,9 +2247,9 @@ } }, "@octokit/oauth-app": { - "version": "3.3.5", - "resolved": "https://registry.npmjs.org/@octokit/oauth-app/-/oauth-app-3.3.5.tgz", - "integrity": "sha512-DAL/o4it4eR9UhnNHKDuD6PImrCSzrqRON5NFsBClMmeo/sb3nGhxnwLpGWVWrzPpRAA6vcslaI99yxclfVZyw==", + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@octokit/oauth-app/-/oauth-app-3.5.1.tgz", + "integrity": "sha512-heRM/m5nZfN6b9lsNwfOQ+HnpqLu3ske1CBmKaQ8URuB3HEEkZjKJUaZmnXK2c2Q70sDtPSiiFEDuq4McP40mQ==", "requires": { "@octokit/auth-oauth-app": "^4.0.0", "@octokit/auth-oauth-user": "^1.3.0", @@ -2262,9 +2262,9 @@ } }, "@octokit/oauth-authorization-url": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-4.3.2.tgz", - "integrity": "sha512-CkKc5+clTSd8nNAtwQWzBewASIpgxO8tEtU75AbVsjDuwDIDj9F0uJ5fjGvsa2rwkc8kP4CxTk5dvEe38SfbLA==" + "version": "4.3.3", + "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-4.3.3.tgz", + "integrity": "sha512-lhP/t0i8EwTmayHG4dqLXgU+uPVys4WD/qUNvC+HfB1S1dyqULm5Yx9uKc1x79aP66U1Cb4OZeW8QU/RA9A4XA==" }, "@octokit/oauth-methods": { "version": "1.2.4", @@ -2279,16 +2279,16 @@ } }, "@octokit/openapi-types": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-7.3.5.tgz", - "integrity": "sha512-6bm5lzGDOeSnWHM5W8OZ86RD2KpchynU+/Qlm5hNEFjfLDhwfAY2lSe68YRUEYFGlxSHe0HmakyhvmtWoD3Zog==" + "version": "10.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-10.0.0.tgz", + "integrity": "sha512-k1iO2zKuEjjRS1EJb4FwSLk+iF6EGp+ZV0OMRViQoWhQ1fZTk9hg1xccZII5uyYoiqcbC73MRBmT45y1vp2PPg==" }, "@octokit/plugin-paginate-rest": { - "version": "2.13.5", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.13.5.tgz", - "integrity": "sha512-3WSAKBLa1RaR/7GG+LQR/tAZ9fp9H9waE9aPXallidyci9oZsfgsLn5M836d3LuDC6Fcym+2idRTBpssHZePVg==", + "version": "2.16.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.16.0.tgz", + "integrity": "sha512-8YYzALPMvEZ35kgy5pdYvQ22Roz+BIuEaedO575GwE2vb/ACDqQn0xQrTJR4tnZCJn7pi8+AWPVjrFDaERIyXQ==", "requires": { - "@octokit/types": "^6.13.0" + "@octokit/types": "^6.26.0" } }, "@octokit/plugin-request-log": { @@ -2298,27 +2298,12 @@ "dev": true }, "@octokit/plugin-rest-endpoint-methods": { - "version": "5.8.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.8.0.tgz", - "integrity": "sha512-qeLZZLotNkoq+it6F+xahydkkbnvSK0iDjlXFo3jNTB+Ss0qIbYQb9V/soKLMkgGw8Q2sHjY5YEXiA47IVPp4A==", + "version": "5.9.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.9.0.tgz", + "integrity": "sha512-Rz67pg+rEJq2Qn/qfHsMiBoP7GL5NDn8Gg0ezGznZ745Ixn1gPusZYZqCXNhICYrIZaVXmusNP0iwPdphJneqQ==", "requires": { - "@octokit/types": "^6.25.0", + "@octokit/types": "^6.26.0", "deprecation": "^2.3.1" - }, - "dependencies": { - "@octokit/openapi-types": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-9.6.0.tgz", - "integrity": "sha512-L+8x7DpcNtHkMbTxxCxg3cozvHUNP46rOIzFwoMs0piWwQzAGNXqlIQO2GLvnKTWLUh99DkY+UyHVrP4jXlowg==" - }, - "@octokit/types": { - "version": "6.25.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.25.0.tgz", - "integrity": "sha512-bNvyQKfngvAd/08COlYIN54nRgxskmejgywodizQNyiKoXmWRAjKup2/LYwm+T9V0gsKH6tuld1gM0PzmOiB4Q==", - "requires": { - "@octokit/openapi-types": "^9.5.0" - } - } } }, "@octokit/plugin-retry": { @@ -2340,9 +2325,9 @@ } }, "@octokit/request": { - "version": "5.6.0", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.0.tgz", - "integrity": "sha512-4cPp/N+NqmaGQwbh3vUsYqokQIzt7VjsgTYVXiwpUP2pxd5YiZB2XuTedbb0SPtv9XS7nzAKjAuQxmY8/aZkiA==", + "version": "5.6.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-5.6.1.tgz", + "integrity": "sha512-Ls2cfs1OfXaOKzkcxnqw5MR6drMA/zWX/LIS/p8Yjdz7QKTPQLMsB3R+OvoxE6XnXeXEE2X7xe4G4l4X0gRiKQ==", "requires": { "@octokit/endpoint": "^6.0.1", "@octokit/request-error": "^2.1.0", @@ -2393,21 +2378,21 @@ "dev": true }, "@octokit/types": { - "version": "6.16.7", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.16.7.tgz", - "integrity": "sha512-OuQELiwIKeDySgNID52vm33wDRc2aaX8lKYgAw9Hmw939ITow1HspT8/AH3M3jgGFUMDmHlMNBNEmH7xV7ggXQ==", + "version": "6.26.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-6.26.0.tgz", + "integrity": "sha512-RDxZBAFMtqs1ZPnbUu1e7ohPNfoNhTiep4fErY7tZs995BeHu369Vsh5woMIaFbllRWEZBfvTCS4hvDnMPiHrA==", "requires": { - "@octokit/openapi-types": "^7.3.5" + "@octokit/openapi-types": "^10.0.0" } }, "@octokit/webhooks": { - "version": "9.8.4", - "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-9.8.4.tgz", - "integrity": "sha512-P/FGFBYuy6YqSFKVMjvTKdHK0LhXZtUxpVPpBuBFn9YSpOYc1SZqS1d9UPK1VK06Z9UpRxc/RW7xH0b1vyFk8g==", + "version": "9.12.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks/-/webhooks-9.12.0.tgz", + "integrity": "sha512-B/KK96mmmRju3lK8jRe78z2h4rSAAysT+rcT5Aw5aIXueOOHsFFgRNQF6GB+/0xwm9KkpMY96Z9vj2gwyOiatA==", "requires": { "@octokit/request-error": "^2.0.2", "@octokit/webhooks-methods": "^2.0.0", - "@octokit/webhooks-types": "4.0.2", + "@octokit/webhooks-types": "4.3.0", "aggregate-error": "^3.1.0" } }, @@ -2417,9 +2402,9 @@ "integrity": "sha512-35cfQ4YWlnZnmZKmIxlGPUPLtbkF8lr/A/1Sk1eC0ddLMwQN06dOuLc+dI3YLQS+T+MoNt3DIQ0NynwgKPilig==" }, "@octokit/webhooks-types": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-4.0.2.tgz", - "integrity": "sha512-zeTNjX3GNaNw9lSlqjMwP55AluhCScW0OQ/4IkU6SmqT72k1UmFRTVK71l0LBoTGS6dJwj2PYGlx5YRG/9WKuw==" + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@octokit/webhooks-types/-/webhooks-types-4.3.0.tgz", + "integrity": "sha512-Hp2o49WSiLHLwp8a9aQD9qK+uoa45Q/gnJG7a+EEZ4rLk5oDVCzlMbtsezxUPXG7/eLj05GciCzdzgJWANugEA==" }, "@pika/babel-plugin-esm-import-rewrite": { "version": "0.6.1", @@ -2902,24 +2887,17 @@ } }, "@types/jsonwebtoken": { - "version": "8.5.2", - "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.2.tgz", - "integrity": "sha512-X8BOCkp+WJVNYCYIBugREtVZa4Y09Or9HDx6xqRZem5F8jJV8FuJgNessXyMuv9+U8pjnvdezASwU28uw+1scw==", + "version": "8.5.5", + "resolved": "https://registry.npmjs.org/@types/jsonwebtoken/-/jsonwebtoken-8.5.5.tgz", + "integrity": "sha512-OGqtHQ7N5/Ap/TUwO6IgHDuLiAoTmHhGpNvgkCm/F4N6pKzx/RBSfr2OXZSwC6vkfnsEdb6+7DNZVtiXiwdwFw==", "requires": { "@types/node": "*" - }, - "dependencies": { - "@types/node": { - "version": "15.12.5", - "resolved": "https://registry.npmjs.org/@types/node/-/node-15.12.5.tgz", - "integrity": "sha512-se3yX7UHv5Bscf8f1ERKvQOD6sTyycH3hdaoozvaLxgUiY5lIGEeH37AD0G0Qi9kPqihPn0HOfd2yaIEN9VwEg==" - } } }, "@types/lru-cache": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.0.tgz", - "integrity": "sha512-RaE0B+14ToE4l6UqdarKPnXwVDuigfFv+5j9Dze/Nqr23yyuqdNvzcZi3xB+3Agvi5R4EOgAksfv3lXX4vBt9w==" + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@types/lru-cache/-/lru-cache-5.1.1.tgz", + "integrity": "sha512-ssE3Vlrys7sdIzs5LOxCzTVMsU7i9oa/IaW92wF32JFb3CVczqOkru2xspuKczHEbG3nvmPY7IFqVmGGHdNbYw==" }, "@types/minimatch": { "version": "3.0.4", @@ -2936,8 +2914,7 @@ "@types/node": { "version": "14.17.4", "resolved": "https://registry.npmjs.org/@types/node/-/node-14.17.4.tgz", - "integrity": "sha512-8kQ3+wKGRNN0ghtEn7EGps/B8CzuBz1nXZEIGGLP2GnwbqYn4dbTs7k+VKLTq1HvZLRCIDtN3Snx1Ege8B7L5A==", - "dev": true + "integrity": "sha512-8kQ3+wKGRNN0ghtEn7EGps/B8CzuBz1nXZEIGGLP2GnwbqYn4dbTs7k+VKLTq1HvZLRCIDtN3Snx1Ege8B7L5A==" }, "@types/node-fetch": { "version": "2.5.10", From 14af84bcaca7be217d442a7def1b35596568bcab Mon Sep 17 00:00:00 2001 From: Gregor Martynus <39992+gr2m@users.noreply.github.com> Date: Tue, 31 Aug 2021 11:50:01 -0700 Subject: [PATCH 3/3] workaround https://github.com/octokit/openapi-types.ts/issues/136 --- test/app.test.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/test/app.test.ts b/test/app.test.ts index 8d5ef4dc87..25c4e708e8 100644 --- a/test/app.test.ts +++ b/test/app.test.ts @@ -118,6 +118,7 @@ describe("App", () => { for await (const { octokit, repository } of app.eachRepository.iterator()) { // https://docs.github.com/en/rest/reference/repos#create-a-repository-dispatch-event await octokit.request("POST /repos/{owner}/{repo}/dispatches", { + // @ts-ignore - https://github.com/octokit/openapi-types.ts/issues/136 owner: repository.owner.login, repo: repository.name, event_type: "my_event",