diff --git a/node_modules/.yarn-integrity b/node_modules/.yarn-integrity
index ea6ca640..8bd702d0 100644
--- a/node_modules/.yarn-integrity
+++ b/node_modules/.yarn-integrity
@@ -1,5 +1,5 @@
{
- "systemParams": "win32-x64-115",
+ "systemParams": "win32-x64-120",
"modulesFolders": [
"node_modules"
],
@@ -8,7 +8,7 @@
"topLevelPatterns": [
"@fontsource/atkinson-hyperlegible@^4.5.9",
"@fontsource/raleway@^4.5.10",
- "fomantic-ui@^2.9.0",
+ "fomantic-ui@^2.9.3",
"html2canvas@^1.4.1"
],
"lockfileEntries": {
@@ -20,30 +20,27 @@
"@nodelib/fs.stat@2.0.5": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b",
"@nodelib/fs.stat@^2.0.2": "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b",
"@nodelib/fs.walk@^1.2.3": "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a",
- "@octokit/auth-token@^2.4.0": "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36",
"@octokit/auth-token@^2.4.4": "https://registry.yarnpkg.com/@octokit/auth-token/-/auth-token-2.5.0.tgz#27c37ea26c205f28443402477ffd261311f21e36",
+ "@octokit/core@^3.5.1": "https://registry.yarnpkg.com/@octokit/core/-/core-3.6.0.tgz#3376cb9f3008d9b3d110370d90e0a1fcd5fe6085",
"@octokit/core@^3.6.0": "https://registry.yarnpkg.com/@octokit/core/-/core-3.6.0.tgz#3376cb9f3008d9b3d110370d90e0a1fcd5fe6085",
"@octokit/endpoint@^6.0.1": "https://registry.yarnpkg.com/@octokit/endpoint/-/endpoint-6.0.12.tgz#3b4d47a4b0e79b1027fb8d75d4221928b2d05658",
"@octokit/graphql@^4.5.8": "https://registry.yarnpkg.com/@octokit/graphql/-/graphql-4.8.0.tgz#664d9b11c0e12112cbf78e10f49a05959aa22cc3",
"@octokit/openapi-types@^12.11.0": "https://registry.yarnpkg.com/@octokit/openapi-types/-/openapi-types-12.11.0.tgz#da5638d64f2b919bca89ce6602d059f1b52d3ef0",
- "@octokit/plugin-paginate-rest@^1.1.1": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-1.1.2.tgz#004170acf8c2be535aba26727867d692f7b488fc",
- "@octokit/plugin-request-log@^1.0.0": "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85",
- "@octokit/plugin-rest-endpoint-methods@2.4.0": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-2.4.0.tgz#3288ecf5481f68c494dd0602fc15407a59faf61e",
- "@octokit/request-error@^1.0.2": "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-1.2.1.tgz#ede0714c773f32347576c25649dc013ae6b31801",
+ "@octokit/plugin-paginate-rest@^2.16.8": "https://registry.yarnpkg.com/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-2.21.3.tgz#7f12532797775640dbb8224da577da7dc210c87e",
+ "@octokit/plugin-request-log@^1.0.4": "https://registry.yarnpkg.com/@octokit/plugin-request-log/-/plugin-request-log-1.0.4.tgz#5e50ed7083a613816b1e4a28aeec5fb7f1462e85",
+ "@octokit/plugin-rest-endpoint-methods@^5.12.0": "https://registry.yarnpkg.com/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-5.16.2.tgz#7ee8bf586df97dd6868cf68f641354e908c25342",
"@octokit/request-error@^2.0.5": "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677",
"@octokit/request-error@^2.1.0": "https://registry.yarnpkg.com/@octokit/request-error/-/request-error-2.1.0.tgz#9e150357831bfc788d13a4fd4b1913d60c74d677",
- "@octokit/request@^5.2.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0",
"@octokit/request@^5.6.0": "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0",
"@octokit/request@^5.6.3": "https://registry.yarnpkg.com/@octokit/request/-/request-5.6.3.tgz#19a022515a5bba965ac06c9d1334514eb50c48b0",
- "@octokit/rest@^16.16.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-16.43.2.tgz#c53426f1e1d1044dee967023e3279c50993dd91b",
- "@octokit/types@^2.0.0": "https://registry.yarnpkg.com/@octokit/types/-/types-2.16.2.tgz#4c5f8da3c6fecf3da1811aef678fda03edac35d2",
- "@octokit/types@^2.0.1": "https://registry.yarnpkg.com/@octokit/types/-/types-2.16.2.tgz#4c5f8da3c6fecf3da1811aef678fda03edac35d2",
+ "@octokit/rest@^18.12.0": "https://registry.yarnpkg.com/@octokit/rest/-/rest-18.12.0.tgz#f06bc4952fc87130308d810ca9d00e79f6988881",
"@octokit/types@^6.0.3": "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04",
"@octokit/types@^6.16.1": "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04",
+ "@octokit/types@^6.39.0": "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04",
+ "@octokit/types@^6.40.0": "https://registry.yarnpkg.com/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04",
"@one-ini/wasm@0.1.1": "https://registry.yarnpkg.com/@one-ini/wasm/-/wasm-0.1.1.tgz#6013659736c9dbfccc96e8a9c2b3de317df39323",
"@types/expect@^1.20.4": "https://registry.yarnpkg.com/@types/expect/-/expect-1.20.4.tgz#8288e51737bf7e3ab5d7c77bfa695883745264e5",
"@types/node@*": "https://registry.yarnpkg.com/@types/node/-/node-20.5.0.tgz#7fc8636d5f1aaa3b21e6245e97d56b7f56702313",
- "@types/node@>= 8": "https://registry.yarnpkg.com/@types/node/-/node-20.5.0.tgz#7fc8636d5f1aaa3b21e6245e97d56b7f56702313",
"@types/vinyl@^2.0.4": "https://registry.yarnpkg.com/@types/vinyl/-/vinyl-2.0.7.tgz#9739a9a2afaf9af32761c54a0e82c735279f726c",
"abbrev@^1.0.0": "https://registry.yarnpkg.com/abbrev/-/abbrev-1.1.1.tgz#f8f2c887ad10bf67f634f005b6987fed3179aac8",
"aggregate-error@^3.0.0": "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a",
@@ -93,7 +90,6 @@
"async-each@^1.0.1": "https://registry.yarnpkg.com/async-each/-/async-each-1.0.6.tgz#52f1d9403818c179b7561e11a5d1b77eb2160e77",
"async-settle@^1.0.0": "https://registry.yarnpkg.com/async-settle/-/async-settle-1.0.0.tgz#1d0a914bb02575bec8a8f3a74e5080f72b2c0c6b",
"async@^1.2.1": "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a",
- "atob-lite@^2.0.0": "https://registry.yarnpkg.com/atob-lite/-/atob-lite-2.0.0.tgz#0fef5ad46f1bd7a8502c65727f0367d5ee43d696",
"atob@^2.1.2": "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9",
"autoprefixer@^10.2.6": "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.15.tgz#a1230f4aeb3636b89120b34a1f513e2f6834d530",
"bach@^1.0.0": "https://registry.yarnpkg.com/bach/-/bach-1.2.0.tgz#4b3ce96bf27134f79a1b414a51c14e34c3bd9880",
@@ -102,7 +98,6 @@
"base64-js@^1.3.1": "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a",
"base@^0.11.1": "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f",
"beeper@^1.0.0": "https://registry.yarnpkg.com/beeper/-/beeper-1.1.1.tgz#e6d5ea8c5dad001304a70b22638447f69cb2f809",
- "before-after-hook@^2.0.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c",
"before-after-hook@^2.2.0": "https://registry.yarnpkg.com/before-after-hook/-/before-after-hook-2.2.3.tgz#c51e809c81a4e354084422b9b26bad88249c517c",
"better-console@^1.0.1": "https://registry.yarnpkg.com/better-console/-/better-console-1.0.1.tgz#9a3361f9f45cdafaffa5d87d62fd49b7f8dbf32b",
"binary-extensions@^1.0.0": "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-1.13.1.tgz#598afe54755b2868a5330d2aff9d4ebb53209b65",
@@ -116,7 +111,6 @@
"braces@^3.0.2": "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107",
"browserslist@^4.21.10": "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0",
"browserslist@^4.21.4": "https://registry.yarnpkg.com/browserslist/-/browserslist-4.21.10.tgz#dbbac576628c13d3b2231332cb2ec5a46e015bb0",
- "btoa-lite@^1.0.0": "https://registry.yarnpkg.com/btoa-lite/-/btoa-lite-1.0.0.tgz#337766da15801210fdd956c22e9c6891ab9d0337",
"buffer-equal@^1.0.0": "https://registry.yarnpkg.com/buffer-equal/-/buffer-equal-1.0.1.tgz#2f7651be5b1b3f057fcd6e7ee16cf34767077d90",
"buffer-from@^1.0.0": "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5",
"buffer@^5.5.0": "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0",
@@ -167,7 +161,6 @@
"copy-descriptor@^0.1.0": "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d",
"copy-props@^2.0.1": "https://registry.yarnpkg.com/copy-props/-/copy-props-2.0.5.tgz#03cf9ae328d4ebb36f8f1d804448a6af9ee3f2d2",
"core-util-is@~1.0.0": "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85",
- "cross-spawn@^6.0.0": "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-6.0.5.tgz#4a5ec7c64dfae22c3a14124dbacdee846d80cbc4",
"css-line-break@^2.1.0": "https://registry.yarnpkg.com/css-line-break/-/css-line-break-2.1.0.tgz#bfef660dfa6f5397ea54116bb3cb4873edbc4fa0",
"css@^2.0.0": "https://registry.yarnpkg.com/css/-/css-2.2.4.tgz#c646755c73971f2bba6a601e2cf2fd71b1298929",
"d@1": "https://registry.yarnpkg.com/d/-/d-1.0.1.tgz#8698095372d58dbee346ffd0c7093f99f8f9eb5a",
@@ -217,7 +210,6 @@
"escape-string-regexp@^1.0.2": "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
"escape-string-regexp@^1.0.3": "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
"escape-string-regexp@^1.0.5": "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4",
- "execa@^1.0.0": "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8",
"expand-brackets@^2.1.4": "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622",
"expand-tilde@^2.0.0": "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502",
"expand-tilde@^2.0.2": "https://registry.yarnpkg.com/expand-tilde/-/expand-tilde-2.0.2.tgz#97e801aa052df02454de46b02bf621642cdc8502",
@@ -248,7 +240,7 @@
"first-chunk-stream@^2.0.0": "https://registry.yarnpkg.com/first-chunk-stream/-/first-chunk-stream-2.0.0.tgz#1bdecdb8e083c0664b91945581577a43a9f31d70",
"flagged-respawn@^1.0.0": "https://registry.yarnpkg.com/flagged-respawn/-/flagged-respawn-1.0.1.tgz#e7de6f1279ddd9ca9aac8a5971d618606b3aab41",
"flush-write-stream@^1.0.2": "https://registry.yarnpkg.com/flush-write-stream/-/flush-write-stream-1.1.1.tgz#8dd7d873a1babc207d94ead0c2e0e44276ebf2e8",
- "fomantic-ui@^2.9.0": "https://registry.yarnpkg.com/fomantic-ui/-/fomantic-ui-2.9.2.tgz#a1b353127dce9f75c80b411d08b00e896d523021",
+ "fomantic-ui@^2.9.3": "https://registry.yarnpkg.com/fomantic-ui/-/fomantic-ui-2.9.3.tgz#d0300742c543ede6446e1ecc554711c37f89ce01",
"for-in@^1.0.1": "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80",
"for-in@^1.0.2": "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80",
"for-own@^1.0.0": "https://registry.yarnpkg.com/for-own/-/for-own-1.0.0.tgz#c63332f415cedc4b04dbfe70cf836494c53cb44b",
@@ -263,7 +255,6 @@
"get-imports@^1.0.0": "https://registry.yarnpkg.com/get-imports/-/get-imports-1.0.0.tgz#47c0b4ee989351642c54977193bf4fcaabf5378f",
"get-intrinsic@^1.0.2": "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82",
"get-intrinsic@^1.1.1": "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.1.tgz#d295644fed4505fc9cde952c37ee12b477a83d82",
- "get-stream@^4.0.0": "https://registry.yarnpkg.com/get-stream/-/get-stream-4.1.0.tgz#c1b255575f3dc21d59bfc79cd3d2b46b1c3a54b5",
"get-value@^2.0.3": "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28",
"get-value@^2.0.6": "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28",
"glob-parent@^3.1.0": "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae",
@@ -381,7 +372,6 @@
"is-plain-object@^2.0.4": "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677",
"is-plain-object@^5.0.0": "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344",
"is-relative@^1.0.0": "https://registry.yarnpkg.com/is-relative/-/is-relative-1.0.0.tgz#a1bb6935ce8c5dba1e8b9754b9b2dcc020e2260d",
- "is-stream@^1.1.0": "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44",
"is-unc-path@^1.0.0": "https://registry.yarnpkg.com/is-unc-path/-/is-unc-path-1.0.0.tgz#d731e8898ed090a12c352ad2eaed5095ad322c9d",
"is-unicode-supported@^0.1.0": "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7",
"is-utf8@^0.2.0": "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72",
@@ -415,6 +405,7 @@
"lazystream@^1.0.0": "https://registry.yarnpkg.com/lazystream/-/lazystream-1.0.1.tgz#494c831062f1f9408251ec44db1cba29242a2638",
"lcid@^1.0.0": "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835",
"lead@^1.0.0": "https://registry.yarnpkg.com/lead/-/lead-1.0.0.tgz#6f14f99a37be3a9dd784f5495690e5903466ee42",
+ "less@^3.12.0 || ^4.0.0": "https://registry.yarnpkg.com/less/-/less-4.2.0.tgz#cbefbfaa14a4cd388e2099b2b51f956e1465c450",
"less@^3.7.1 || ^4.0.0": "https://registry.yarnpkg.com/less/-/less-4.2.0.tgz#cbefbfaa14a4cd388e2099b2b51f956e1465c450",
"liftoff@^3.1.0": "https://registry.yarnpkg.com/liftoff/-/liftoff-3.1.0.tgz#c9ba6081f908670607ee79062d700df062c52ed3",
"load-json-file@^1.0.0": "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0",
@@ -438,24 +429,20 @@
"lodash.defaults@^3.0.0": "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-3.1.2.tgz#c7308b18dbf8bc9372d701a73493c61192bd2e2c",
"lodash.defaults@~2.4.1": "https://registry.yarnpkg.com/lodash.defaults/-/lodash.defaults-2.4.1.tgz#a7e8885f05e68851144b6e12a8f3678026bc4c54",
"lodash.escape@^3.0.0": "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-3.2.0.tgz#995ee0dc18c1b48cc92effae71a10aab5b487698",
- "lodash.get@^4.4.2": "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99",
"lodash.isarguments@^3.0.0": "https://registry.yarnpkg.com/lodash.isarguments/-/lodash.isarguments-3.1.0.tgz#2f573d85c6a24289ff00663b491c1d338ff3458a",
"lodash.isarray@^3.0.0": "https://registry.yarnpkg.com/lodash.isarray/-/lodash.isarray-3.0.4.tgz#79e4eb88c36a8122af86f844aa9bcd851b5fbb55",
"lodash.isobject@~2.4.1": "https://registry.yarnpkg.com/lodash.isobject/-/lodash.isobject-2.4.1.tgz#5a2e47fe69953f1ee631a7eba1fe64d2d06558f5",
"lodash.keys@^3.0.0": "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-3.1.2.tgz#4dbc0472b156be50a0b286855d1bd0b0c656098a",
"lodash.keys@~2.4.1": "https://registry.yarnpkg.com/lodash.keys/-/lodash.keys-2.4.1.tgz#48dea46df8ff7632b10d706b8acb26591e2b3727",
"lodash.restparam@^3.0.0": "https://registry.yarnpkg.com/lodash.restparam/-/lodash.restparam-3.6.1.tgz#936a4e309ef330a7645ed4145986c85ae5b20805",
- "lodash.set@^4.3.2": "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23",
"lodash.template@^3.0.0": "https://registry.yarnpkg.com/lodash.template/-/lodash.template-3.6.2.tgz#f8cdecc6169a255be9098ae8b0c53d378931d14f",
"lodash.template@^4.4.0": "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab",
"lodash.template@^4.5.0": "https://registry.yarnpkg.com/lodash.template/-/lodash.template-4.5.0.tgz#f976195cf3f347d0d5f52483569fe8031ccce8ab",
"lodash.templatesettings@^3.0.0": "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-3.1.1.tgz#fb307844753b66b9f1afa54e262c745307dba8e5",
"lodash.templatesettings@^4.0.0": "https://registry.yarnpkg.com/lodash.templatesettings/-/lodash.templatesettings-4.2.0.tgz#e481310f049d3cf6d47e912ad09313b154f0fb33",
- "lodash.uniq@^4.5.0": "https://registry.yarnpkg.com/lodash.uniq/-/lodash.uniq-4.5.0.tgz#d0225373aeb652adc1bc82e4945339a842754773",
"lodash@^4.17.21": "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c",
"log-symbols@^4.1.0": "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503",
"lru-cache@^6.0.0": "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94",
- "macos-release@^2.2.0": "https://registry.yarnpkg.com/macos-release/-/macos-release-2.5.1.tgz#bccac4a8f7b93163a8d163b8ebf385b3c5f55bf9",
"make-dir@^2.1.0": "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5",
"make-error-cause@^1.1.1": "https://registry.yarnpkg.com/make-error-cause/-/make-error-cause-1.2.2.tgz#df0388fcd0b37816dff0a5fb8108939777dcbc9d",
"make-error@^1.2.0": "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2",
@@ -494,7 +481,6 @@
"nanomatch@^1.2.9": "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119",
"needle@^3.1.0": "https://registry.yarnpkg.com/needle/-/needle-3.2.0.tgz#07d240ebcabfd65c76c03afae7f6defe6469df44",
"next-tick@^1.1.0": "https://registry.yarnpkg.com/next-tick/-/next-tick-1.1.0.tgz#1836ee30ad56d67ef281b22bd199f709449b35eb",
- "nice-try@^1.0.4": "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366",
"node-fetch@^2.6.7": "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.6.12.tgz#02eb8e22074018e3d5a83016649d04df0e348fba",
"node-releases@^2.0.13": "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.13.tgz#d5ed1627c23e3461e819b02e57b75e4899b1c81d",
"nopt@^6.0.0": "https://registry.yarnpkg.com/nopt/-/nopt-6.0.0.tgz#245801d8ebf409c6df22ab9d95b65e1309cdb16d",
@@ -503,7 +489,6 @@
"normalize-path@^3.0.0": "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65",
"normalize-range@^0.1.2": "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942",
"now-and-later@^2.0.0": "https://registry.yarnpkg.com/now-and-later/-/now-and-later-2.0.1.tgz#8e579c8685764a7cc02cb680380e94f43ccb1f7c",
- "npm-run-path@^2.0.0": "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-2.0.2.tgz#35a9232dfa35d7067b4cb2ddf2357b1871536c5f",
"number-is-nan@^1.0.0": "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d",
"object-assign@^3.0.0": "https://registry.yarnpkg.com/object-assign/-/object-assign-3.0.0.tgz#9bedd5ca0897949bca47e7ff408062d549f587f2",
"object-assign@^4.0.1": "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863",
@@ -518,7 +503,6 @@
"object.pick@^1.2.0": "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747",
"object.pick@^1.3.0": "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747",
"object.reduce@^1.0.0": "https://registry.yarnpkg.com/object.reduce/-/object.reduce-1.0.1.tgz#6fe348f2ac7fa0f95ca621226599096825bb03ad",
- "octokit-pagination-methods@^1.1.0": "https://registry.yarnpkg.com/octokit-pagination-methods/-/octokit-pagination-methods-1.1.0.tgz#cf472edc9d551055f9ef73f6e42b4dbb4c80bea4",
"once@^1.3.0": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
"once@^1.3.1": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
"once@^1.3.2": "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1",
@@ -527,9 +511,7 @@
"ora@^5.4.1": "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18",
"ordered-read-streams@^1.0.0": "https://registry.yarnpkg.com/ordered-read-streams/-/ordered-read-streams-1.0.1.tgz#77c0cb37c41525d64166d990ffad7ec6a0e1363e",
"os-locale@^1.4.0": "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9",
- "os-name@^3.1.0": "https://registry.yarnpkg.com/os-name/-/os-name-3.1.0.tgz#dec19d966296e1cd62d701a5a66ee1ddeae70801",
"os-tmpdir@~1.0.2": "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274",
- "p-finally@^1.0.0": "https://registry.yarnpkg.com/p-finally/-/p-finally-1.0.0.tgz#3fbcfb15b899a44123b34b6dcc18b724336a2cae",
"p-limit@^3.0.2": "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b",
"p-locate@^5.0.0": "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834",
"p-map@^4.0.0": "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b",
@@ -544,8 +526,6 @@
"path-exists@^2.0.0": "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b",
"path-exists@^4.0.0": "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3",
"path-is-absolute@^1.0.0": "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f",
- "path-key@^2.0.0": "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40",
- "path-key@^2.0.1": "https://registry.yarnpkg.com/path-key/-/path-key-2.0.1.tgz#411cadb574c5a140d3a4b1910d40d80cc9f40b40",
"path-parse@^1.0.7": "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735",
"path-root-regex@^0.1.0": "https://registry.yarnpkg.com/path-root-regex/-/path-root-regex-0.1.2.tgz#bfccdc8df5b12dc52c8b43ec38d18d72c04ba96d",
"path-root@^0.1.1": "https://registry.yarnpkg.com/path-root/-/path-root-0.1.1.tgz#9a4a6814cac1c0cd73360a95f32083c8ea4745b7",
@@ -572,7 +552,6 @@
"proto-list@~1.2.1": "https://registry.yarnpkg.com/proto-list/-/proto-list-1.2.4.tgz#212d5bfe1318306a420f6402b8e26ff39647a849",
"prr@~1.0.1": "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476",
"pump@^2.0.0": "https://registry.yarnpkg.com/pump/-/pump-2.0.1.tgz#12399add6e4cf7526d973cbc8b5ce2e2908b3909",
- "pump@^3.0.0": "https://registry.yarnpkg.com/pump/-/pump-3.0.0.tgz#b4a2116815bde2f4e1ea602354e8c75565107a64",
"pumpify@^1.3.5": "https://registry.yarnpkg.com/pumpify/-/pumpify-1.5.1.tgz#36513be246ab27570b1a374a5ce278bfd74370ce",
"queue-microtask@^1.2.2": "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243",
"read-pkg-up@^1.0.1": "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02",
@@ -643,15 +622,11 @@
"sax@^1.2.4": "https://registry.yarnpkg.com/sax/-/sax-1.2.4.tgz#2816234e2378bddc4e5354fab5caa895df7100d9",
"semver-greatest-satisfied-range@^1.1.0": "https://registry.yarnpkg.com/semver-greatest-satisfied-range/-/semver-greatest-satisfied-range-1.1.0.tgz#13e8c2658ab9691cb0cd71093240280d36f77a5b",
"semver@2 || 3 || 4 || 5": "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8",
- "semver@^5.5.0": "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8",
"semver@^5.6.0": "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8",
"semver@^7.5.3": "https://registry.yarnpkg.com/semver/-/semver-7.5.4.tgz#483986ec4ed38e1c6c48c34894a9182dbff68a6e",
"set-blocking@^2.0.0": "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7",
"set-value@^2.0.0": "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b",
"set-value@^2.0.1": "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b",
- "shebang-command@^1.2.0": "https://registry.yarnpkg.com/shebang-command/-/shebang-command-1.2.0.tgz#44aac65b695b03398968c39f363fee5deafdf1ea",
- "shebang-regex@^1.0.0": "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-1.0.0.tgz#da42f49740c0b42db2ca9728571cb190c98efea3",
- "signal-exit@^3.0.0": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9",
"signal-exit@^3.0.2": "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9",
"slash@^3.0.0": "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634",
"snapdragon-node@^2.0.1": "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b",
@@ -691,7 +666,6 @@
"strip-bom-buf@^1.0.0": "https://registry.yarnpkg.com/strip-bom-buf/-/strip-bom-buf-1.0.0.tgz#1cb45aaf57530f4caf86c7f75179d2c9a51dd572",
"strip-bom-stream@^3.0.0": "https://registry.yarnpkg.com/strip-bom-stream/-/strip-bom-stream-3.0.0.tgz#956bcc5d84430f69256a90ed823765cd858e159c",
"strip-bom@^2.0.0": "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e",
- "strip-eof@^1.0.0": "https://registry.yarnpkg.com/strip-eof/-/strip-eof-1.0.0.tgz#bb43ff5598a6eb05d89b59fcd129c983313606bf",
"strip-json-comments@^3.1.1": "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006",
"supports-color@^2.0.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7",
"supports-color@^7.1.0": "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da",
@@ -736,7 +710,6 @@
"undertaker@^1.2.1": "https://registry.yarnpkg.com/undertaker/-/undertaker-1.3.0.tgz#363a6e541f27954d5791d6fa3c1d321666f86d18",
"union-value@^1.0.0": "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847",
"unique-stream@^2.0.2": "https://registry.yarnpkg.com/unique-stream/-/unique-stream-2.3.1.tgz#c65d110e9a4adf9a6c5948b28053d9a8d04cbeac",
- "universal-user-agent@^4.0.0": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-4.0.1.tgz#fd8d6cb773a679a709e967ef8288a31fcc03e557",
"universal-user-agent@^6.0.0": "https://registry.yarnpkg.com/universal-user-agent/-/universal-user-agent-6.0.0.tgz#3381f8503b251c0d9cd21bc1de939ec9df5480ee",
"unset-value@^1.0.0": "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559",
"upath@^1.1.1": "https://registry.yarnpkg.com/upath/-/upath-1.2.0.tgz#8f66dbcd55a883acdae4408af8b035a5044c1894",
@@ -766,8 +739,6 @@
"whatwg-url@^5.0.0": "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d",
"which-module@^1.0.0": "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f",
"which@^1.2.14": "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a",
- "which@^1.2.9": "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a",
- "windows-release@^3.1.0": "https://registry.yarnpkg.com/windows-release/-/windows-release-3.3.3.tgz#1c10027c7225743eec6b89df160d64c2e0293999",
"wrap-ansi@^2.0.0": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85",
"wrap-ansi@^6.0.1": "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53",
"wrappy@1": "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f",
diff --git a/node_modules/@octokit/plugin-paginate-rest/README.md b/node_modules/@octokit/plugin-paginate-rest/README.md
index 43376671..1e3c0ba3 100644
--- a/node_modules/@octokit/plugin-paginate-rest/README.md
+++ b/node_modules/@octokit/plugin-paginate-rest/README.md
@@ -4,7 +4,6 @@
[![@latest](https://img.shields.io/npm/v/@octokit/plugin-paginate-rest.svg)](https://www.npmjs.com/package/@octokit/plugin-paginate-rest)
[![Build Status](https://github.com/octokit/plugin-paginate-rest.js/workflows/Test/badge.svg)](https://github.com/octokit/plugin-paginate-rest.js/actions?workflow=Test)
-[![Greenkeeper](https://badges.greenkeeper.io/octokit/plugin-paginate-rest.js.svg)](https://greenkeeper.io/)
## Usage
@@ -14,12 +13,15 @@
Browsers
-Load `@octokit/plugin-paginate-rest` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.pika.dev](https://cdn.pika.dev)
+Load `@octokit/plugin-paginate-rest` and [`@octokit/core`](https://github.com/octokit/core.js) (or core-compatible module) directly from [cdn.skypack.dev](https://cdn.skypack.dev)
```html
```
@@ -32,7 +34,10 @@ Install with `npm install @octokit/core @octokit/plugin-paginate-rest`. Optional
```js
const { Octokit } = require("@octokit/core");
-const { paginateRest } = require("@octokit/plugin-paginate-rest");
+const {
+ paginateRest,
+ composePaginateRest,
+} = require("@octokit/plugin-paginate-rest");
```
|
@@ -44,15 +49,31 @@ const MyOctokit = Octokit.plugin(paginateRest);
const octokit = new MyOctokit({ auth: "secret123" });
// See https://developer.github.com/v3/issues/#list-issues-for-a-repository
-const issues = await octokit.paginate("GET /repos/:owner/:repo/issues", {
+const issues = await octokit.paginate("GET /repos/{owner}/{repo}/issues", {
owner: "octocat",
repo: "hello-world",
since: "2010-10-01",
- per_page: 100
+ per_page: 100,
});
```
-## `octokit.paginate(route, parameters, mapFunction)` or `octokit.paginate(options, mapFunction)`
+If you want to utilize the pagination methods in another plugin, use `composePaginateRest`.
+
+```js
+function myPlugin(octokit, options) {
+ return {
+ allStars({owner, repo}) => {
+ return composePaginateRest(
+ octokit,
+ "GET /repos/{owner}/{repo}/stargazers",
+ {owner, repo }
+ )
+ }
+ }
+}
+```
+
+## `octokit.paginate()`
The `paginateRest` plugin adds a new `octokit.paginate()` method which accepts the same parameters as [`octokit.request`](https://github.com/octokit/request.js#request). Only "List ..." endpoints such as [List issues for a repository](https://developer.github.com/v3/issues/#list-issues-for-a-repository) are supporting pagination. Their [response includes a Link header](https://developer.github.com/v3/issues/#response-1). For other endpoints, `octokit.paginate()` behaves the same as `octokit.request()`.
@@ -62,14 +83,14 @@ An optional `mapFunction` can be passed to map each page response to a new value
```js
const issueTitles = await octokit.paginate(
- "GET /repos/:owner/:repo/issues",
+ "GET /repos/{owner}/{repo}/issues",
{
owner: "octocat",
repo: "hello-world",
since: "2010-10-01",
- per_page: 100
+ per_page: 100,
},
- response => response.data.map(issue => issue.title)
+ (response) => response.data.map((issue) => issue.title)
);
```
@@ -77,15 +98,15 @@ The `mapFunction` gets a 2nd argument `done` which can be called to end the pagi
```js
const issues = await octokit.paginate(
- "GET /repos/:owner/:repo/issues",
+ "GET /repos/{owner}/{repo}/issues",
{
owner: "octocat",
repo: "hello-world",
since: "2010-10-01",
- per_page: 100
+ per_page: 100,
},
(response, done) => {
- if (response.data.find(issues => issue.title.includes("something"))) {
+ if (response.data.find((issue) => issue.title.includes("something"))) {
done();
}
return response.data;
@@ -93,28 +114,66 @@ const issues = await octokit.paginate(
);
```
-## `octokit.paginate.iterator(route, parameters)` or `octokit.paginate.iterator(options)`
+Alternatively you can pass a `request` method as first argument. This is great when using in combination with [`@octokit/plugin-rest-endpoint-methods`](https://github.com/octokit/plugin-rest-endpoint-methods.js/):
+
+```js
+const issues = await octokit.paginate(octokit.rest.issues.listForRepo, {
+ owner: "octocat",
+ repo: "hello-world",
+ since: "2010-10-01",
+ per_page: 100,
+});
+```
+
+## `octokit.paginate.iterator()`
If your target runtime environments supports async iterators (such as most modern browsers and Node 10+), you can iterate through each response
```js
const parameters = {
- owner: "octocat",
- repo: "hello-world",
- since: "2010-10-01",
- per_page: 100
- }
-for await (const response of octokit.paginate.iterator("GET /repos/:owner/:repo/issues", parameters)) {
+ owner: "octocat",
+ repo: "hello-world",
+ since: "2010-10-01",
+ per_page: 100,
+};
+for await (const response of octokit.paginate.iterator(
+ "GET /repos/{owner}/{repo}/issues",
+ parameters
+)) {
// do whatever you want with each response, break out of the loop, etc.
- console.log(response.data.title)
+ const issues = response.data;
+ console.log("%d issues found", issues.length);
}
```
+Alternatively you can pass a `request` method as first argument. This is great when using in combination with [`@octokit/plugin-rest-endpoint-methods`](https://github.com/octokit/plugin-rest-endpoint-methods.js/):
+
+```js
+const parameters = {
+ owner: "octocat",
+ repo: "hello-world",
+ since: "2010-10-01",
+ per_page: 100,
+};
+for await (const response of octokit.paginate.iterator(
+ octokit.rest.issues.listForRepo,
+ parameters
+)) {
+ // do whatever you want with each response, break out of the loop, etc.
+ const issues = response.data;
+ console.log("%d issues found", issues.length);
+}
+```
+
+## `composePaginateRest` and `composePaginateRest.iterator`
+
+The `compose*` methods work just like their `octokit.*` counterparts described above, with the differenct that both methods require an `octokit` instance to be passed as first argument
+
## How it works
`octokit.paginate()` wraps `octokit.request()`. As long as a `rel="next"` link value is present in the response's `Link` header, it sends another request for that URL, and so on.
-Most of GitHub's paginating REST API endpoints return an array, but there are a few exceptions which return an object with a key that includes the items array.
+Most of GitHub's paginating REST API endpoints return an array, but there are a few exceptions which return an object with a key that includes the items array. For example:
- [Search repositories](https://developer.github.com/v3/search/#example) (key `items`)
- [List check runs for a specific ref](https://developer.github.com/v3/checks/runs/#response-3) (key: `check_runs`)
@@ -126,6 +185,81 @@ Most of GitHub's paginating REST API endpoints return an array, but there are a
If a response is lacking the `Link` header, `octokit.paginate()` still resolves with an array, even if the response returns a single object.
+## Types
+
+The plugin also exposes some types and runtime type guards for TypeScript projects.
+
+
+
+
+Types
+ |
+
+```typescript
+import {
+ PaginateInterface,
+ PaginatingEndpoints,
+} from "@octokit/plugin-paginate-rest";
+```
+
+ |
+
+Guards
+ |
+
+```typescript
+import { isPaginatingEndpoint } from "@octokit/plugin-paginate-rest";
+```
+
+ |
+
+
+
+### PaginateInterface
+
+An `interface` that declares all the overloads of the `.paginate` method.
+
+### PaginatingEndpoints
+
+An `interface` which describes all API endpoints supported by the plugin. Some overloads of `.paginate()` method and `composePaginateRest()` function depend on `PaginatingEndpoints`, using the `keyof PaginatingEndpoints` as a type for one of its arguments.
+
+```typescript
+import { Octokit } from "@octokit/core";
+import {
+ PaginatingEndpoints,
+ composePaginateRest,
+} from "@octokit/plugin-paginate-rest";
+
+type DataType = "data" extends keyof T ? T["data"] : unknown;
+
+async function myPaginatePlugin(
+ octokit: Octokit,
+ endpoint: E,
+ parameters?: PaginatingEndpoints[E]["parameters"]
+): Promise> {
+ return await composePaginateRest(octokit, endpoint, parameters);
+}
+```
+
+### isPaginatingEndpoint
+
+A type guard, `isPaginatingEndpoint(arg)` returns `true` if `arg` is one of the keys in `PaginatingEndpoints` (is `keyof PaginatingEndpoints`).
+
+```typescript
+import { Octokit } from "@octokit/core";
+import {
+ isPaginatingEndpoint,
+ composePaginateRest,
+} from "@octokit/plugin-paginate-rest";
+
+async function myPlugin(octokit: Octokit, arg: unknown) {
+ if (isPaginatingEndpoint(arg)) {
+ return await composePaginateRest(octokit, arg);
+ }
+ // ...
+}
+```
+
## Contributing
See [CONTRIBUTING.md](CONTRIBUTING.md)
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
index 19359315..d5fc599b 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js
@@ -2,33 +2,75 @@
Object.defineProperty(exports, '__esModule', { value: true });
-const VERSION = "1.1.2";
+const VERSION = "2.21.3";
+
+function ownKeys(object, enumerableOnly) {
+ var keys = Object.keys(object);
+
+ if (Object.getOwnPropertySymbols) {
+ var symbols = Object.getOwnPropertySymbols(object);
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
+ })), keys.push.apply(keys, symbols);
+ }
+
+ return keys;
+}
+
+function _objectSpread2(target) {
+ for (var i = 1; i < arguments.length; i++) {
+ var source = null != arguments[i] ? arguments[i] : {};
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
+ _defineProperty(target, key, source[key]);
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
+ });
+ }
+
+ return target;
+}
+
+function _defineProperty(obj, key, value) {
+ if (key in obj) {
+ Object.defineProperty(obj, key, {
+ value: value,
+ enumerable: true,
+ configurable: true,
+ writable: true
+ });
+ } else {
+ obj[key] = value;
+ }
+
+ return obj;
+}
/**
* Some “list” response that can be paginated have a different response structure
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
- * the list of the items which name varies from endpoint to endpoint:
- *
- * - https://developer.github.com/v3/search/#example (key `items`)
- * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
- * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
- * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
- * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
+ * the list of the items which name varies from endpoint to endpoint.
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
- * paginated or not. For the exceptions with the namespace, a fallback check for the route
- * paths has to be added in order to normalize the response. We cannot check for the total_count
- * property because it also exists in the response of Get the combined status for a specific ref.
+ * paginated or not.
+ *
+ * We check if a "total_count" key is present in the response data, but also make sure that
+ * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would
+ * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
*/
-const REGEX = [/^\/search\//, /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/, /^\/installation\/repositories([^/]|$)/, /^\/user\/installations([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/, /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/];
-function normalizePaginatedListResponse(octokit, url, response) {
- const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
- const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
- if (!responseNeedsNormalization) return; // keep the additional properties intact as there is currently no other way
+function normalizePaginatedListResponse(response) {
+ // endpoints can respond with 204 if repository is empty
+ if (!response.data) {
+ return _objectSpread2(_objectSpread2({}, response), {}, {
+ data: []
+ });
+ }
+
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
+ if (!responseNeedsNormalization) return response; // keep the additional properties intact as there is currently no other way
// to retrieve the same information.
const incompleteResults = response.data.incomplete_results;
@@ -50,43 +92,47 @@ function normalizePaginatedListResponse(octokit, url, response) {
}
response.data.total_count = totalCount;
- Object.defineProperty(response.data, namespaceKey, {
- get() {
- octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
- return Array.from(data);
- }
-
- });
+ return response;
}
function iterator(octokit, route, parameters) {
- const options = octokit.request.endpoint(route, parameters);
+ const options = typeof route === "function" ? route.endpoint(parameters) : octokit.request.endpoint(route, parameters);
+ const requestMethod = typeof route === "function" ? route : octokit.request;
const method = options.method;
const headers = options.headers;
let url = options.url;
return {
[Symbol.asyncIterator]: () => ({
- next() {
- if (!url) {
- return Promise.resolve({
- done: true
- });
- }
+ async next() {
+ if (!url) return {
+ done: true
+ };
- return octokit.request({
- method,
- url,
- headers
- }).then(response => {
- normalizePaginatedListResponse(octokit, url, response); // `response.headers.link` format:
+ try {
+ const response = await requestMethod({
+ method,
+ url,
+ headers
+ });
+ const normalizedResponse = normalizePaginatedListResponse(response); // `response.headers.link` format:
// '; rel="next", ; rel="last"'
// sets `url` to undefined if "next" URL is not present or `link` header is not set
- url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
return {
- value: response
+ value: normalizedResponse
};
- });
+ } catch (error) {
+ if (error.status !== 409) throw error;
+ url = "";
+ return {
+ value: {
+ status: 200,
+ headers: {},
+ data: []
+ }
+ };
+ }
}
})
@@ -124,6 +170,20 @@ function gather(octokit, results, iterator, mapFn) {
});
}
+const composePaginateRest = Object.assign(paginate, {
+ iterator
+});
+
+const paginatingEndpoints = ["GET /app/hook/deliveries", "GET /app/installations", "GET /applications/grants", "GET /authorizations", "GET /enterprises/{enterprise}/actions/permissions/organizations", "GET /enterprises/{enterprise}/actions/runner-groups", "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations", "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners", "GET /enterprises/{enterprise}/actions/runners", "GET /enterprises/{enterprise}/audit-log", "GET /enterprises/{enterprise}/secret-scanning/alerts", "GET /enterprises/{enterprise}/settings/billing/advanced-security", "GET /events", "GET /gists", "GET /gists/public", "GET /gists/starred", "GET /gists/{gist_id}/comments", "GET /gists/{gist_id}/commits", "GET /gists/{gist_id}/forks", "GET /installation/repositories", "GET /issues", "GET /licenses", "GET /marketplace_listing/plans", "GET /marketplace_listing/plans/{plan_id}/accounts", "GET /marketplace_listing/stubbed/plans", "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts", "GET /networks/{owner}/{repo}/events", "GET /notifications", "GET /organizations", "GET /orgs/{org}/actions/cache/usage-by-repository", "GET /orgs/{org}/actions/permissions/repositories", "GET /orgs/{org}/actions/runner-groups", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories", "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners", "GET /orgs/{org}/actions/runners", "GET /orgs/{org}/actions/secrets", "GET /orgs/{org}/actions/secrets/{secret_name}/repositories", "GET /orgs/{org}/audit-log", "GET /orgs/{org}/blocks", "GET /orgs/{org}/code-scanning/alerts", "GET /orgs/{org}/codespaces", "GET /orgs/{org}/credential-authorizations", "GET /orgs/{org}/dependabot/secrets", "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories", "GET /orgs/{org}/events", "GET /orgs/{org}/external-groups", "GET /orgs/{org}/failed_invitations", "GET /orgs/{org}/hooks", "GET /orgs/{org}/hooks/{hook_id}/deliveries", "GET /orgs/{org}/installations", "GET /orgs/{org}/invitations", "GET /orgs/{org}/invitations/{invitation_id}/teams", "GET /orgs/{org}/issues", "GET /orgs/{org}/members", "GET /orgs/{org}/migrations", "GET /orgs/{org}/migrations/{migration_id}/repositories", "GET /orgs/{org}/outside_collaborators", "GET /orgs/{org}/packages", "GET /orgs/{org}/packages/{package_type}/{package_name}/versions", "GET /orgs/{org}/projects", "GET /orgs/{org}/public_members", "GET /orgs/{org}/repos", "GET /orgs/{org}/secret-scanning/alerts", "GET /orgs/{org}/settings/billing/advanced-security", "GET /orgs/{org}/team-sync/groups", "GET /orgs/{org}/teams", "GET /orgs/{org}/teams/{team_slug}/discussions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions", "GET /orgs/{org}/teams/{team_slug}/invitations", "GET /orgs/{org}/teams/{team_slug}/members", "GET /orgs/{org}/teams/{team_slug}/projects", "GET /orgs/{org}/teams/{team_slug}/repos", "GET /orgs/{org}/teams/{team_slug}/teams", "GET /projects/columns/{column_id}/cards", "GET /projects/{project_id}/collaborators", "GET /projects/{project_id}/columns", "GET /repos/{owner}/{repo}/actions/artifacts", "GET /repos/{owner}/{repo}/actions/caches", "GET /repos/{owner}/{repo}/actions/runners", "GET /repos/{owner}/{repo}/actions/runs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs", "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs", "GET /repos/{owner}/{repo}/actions/secrets", "GET /repos/{owner}/{repo}/actions/workflows", "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs", "GET /repos/{owner}/{repo}/assignees", "GET /repos/{owner}/{repo}/branches", "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations", "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs", "GET /repos/{owner}/{repo}/code-scanning/alerts", "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances", "GET /repos/{owner}/{repo}/code-scanning/analyses", "GET /repos/{owner}/{repo}/codespaces", "GET /repos/{owner}/{repo}/codespaces/devcontainers", "GET /repos/{owner}/{repo}/codespaces/secrets", "GET /repos/{owner}/{repo}/collaborators", "GET /repos/{owner}/{repo}/comments", "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/commits", "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments", "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls", "GET /repos/{owner}/{repo}/commits/{ref}/check-runs", "GET /repos/{owner}/{repo}/commits/{ref}/check-suites", "GET /repos/{owner}/{repo}/commits/{ref}/status", "GET /repos/{owner}/{repo}/commits/{ref}/statuses", "GET /repos/{owner}/{repo}/contributors", "GET /repos/{owner}/{repo}/dependabot/secrets", "GET /repos/{owner}/{repo}/deployments", "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses", "GET /repos/{owner}/{repo}/environments", "GET /repos/{owner}/{repo}/events", "GET /repos/{owner}/{repo}/forks", "GET /repos/{owner}/{repo}/git/matching-refs/{ref}", "GET /repos/{owner}/{repo}/hooks", "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries", "GET /repos/{owner}/{repo}/invitations", "GET /repos/{owner}/{repo}/issues", "GET /repos/{owner}/{repo}/issues/comments", "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/issues/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/comments", "GET /repos/{owner}/{repo}/issues/{issue_number}/events", "GET /repos/{owner}/{repo}/issues/{issue_number}/labels", "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions", "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline", "GET /repos/{owner}/{repo}/keys", "GET /repos/{owner}/{repo}/labels", "GET /repos/{owner}/{repo}/milestones", "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels", "GET /repos/{owner}/{repo}/notifications", "GET /repos/{owner}/{repo}/pages/builds", "GET /repos/{owner}/{repo}/projects", "GET /repos/{owner}/{repo}/pulls", "GET /repos/{owner}/{repo}/pulls/comments", "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions", "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments", "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits", "GET /repos/{owner}/{repo}/pulls/{pull_number}/files", "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews", "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments", "GET /repos/{owner}/{repo}/releases", "GET /repos/{owner}/{repo}/releases/{release_id}/assets", "GET /repos/{owner}/{repo}/releases/{release_id}/reactions", "GET /repos/{owner}/{repo}/secret-scanning/alerts", "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations", "GET /repos/{owner}/{repo}/stargazers", "GET /repos/{owner}/{repo}/subscribers", "GET /repos/{owner}/{repo}/tags", "GET /repos/{owner}/{repo}/teams", "GET /repos/{owner}/{repo}/topics", "GET /repositories", "GET /repositories/{repository_id}/environments/{environment_name}/secrets", "GET /search/code", "GET /search/commits", "GET /search/issues", "GET /search/labels", "GET /search/repositories", "GET /search/topics", "GET /search/users", "GET /teams/{team_id}/discussions", "GET /teams/{team_id}/discussions/{discussion_number}/comments", "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions", "GET /teams/{team_id}/discussions/{discussion_number}/reactions", "GET /teams/{team_id}/invitations", "GET /teams/{team_id}/members", "GET /teams/{team_id}/projects", "GET /teams/{team_id}/repos", "GET /teams/{team_id}/teams", "GET /user/blocks", "GET /user/codespaces", "GET /user/codespaces/secrets", "GET /user/emails", "GET /user/followers", "GET /user/following", "GET /user/gpg_keys", "GET /user/installations", "GET /user/installations/{installation_id}/repositories", "GET /user/issues", "GET /user/keys", "GET /user/marketplace_purchases", "GET /user/marketplace_purchases/stubbed", "GET /user/memberships/orgs", "GET /user/migrations", "GET /user/migrations/{migration_id}/repositories", "GET /user/orgs", "GET /user/packages", "GET /user/packages/{package_type}/{package_name}/versions", "GET /user/public_emails", "GET /user/repos", "GET /user/repository_invitations", "GET /user/starred", "GET /user/subscriptions", "GET /user/teams", "GET /users", "GET /users/{username}/events", "GET /users/{username}/events/orgs/{org}", "GET /users/{username}/events/public", "GET /users/{username}/followers", "GET /users/{username}/following", "GET /users/{username}/gists", "GET /users/{username}/gpg_keys", "GET /users/{username}/keys", "GET /users/{username}/orgs", "GET /users/{username}/packages", "GET /users/{username}/projects", "GET /users/{username}/received_events", "GET /users/{username}/received_events/public", "GET /users/{username}/repos", "GET /users/{username}/starred", "GET /users/{username}/subscriptions"];
+
+function isPaginatingEndpoint(arg) {
+ if (typeof arg === "string") {
+ return paginatingEndpoints.includes(arg);
+ } else {
+ return false;
+ }
+}
+
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
@@ -138,5 +198,8 @@ function paginateRest(octokit) {
}
paginateRest.VERSION = VERSION;
+exports.composePaginateRest = composePaginateRest;
+exports.isPaginatingEndpoint = isPaginatingEndpoint;
exports.paginateRest = paginateRest;
+exports.paginatingEndpoints = paginatingEndpoints;
//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map
index 7955fa75..fb04fff2 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-node/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.1.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint:\n *\n * - https://developer.github.com/v3/search/#example (key `items`)\n * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)\n * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)\n * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)\n * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not. For the exceptions with the namespace, a fallback check for the route\n * paths has to be added in order to normalize the response. We cannot check for the total_count\n * property because it also exists in the response of Get the combined status for a specific ref.\n */\nconst REGEX = [\n /^\\/search\\//,\n /^\\/repos\\/[^/]+\\/[^/]+\\/commits\\/[^/]+\\/(check-runs|check-suites)([^/]|$)/,\n /^\\/installation\\/repositories([^/]|$)/,\n /^\\/user\\/installations([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/secrets([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/workflows(\\/[^/]+\\/runs)?([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/runs(\\/[^/]+\\/(artifacts|jobs))?([^/]|$)/\n];\nexport function normalizePaginatedListResponse(octokit, url, response) {\n const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, \"\");\n const responseNeedsNormalization = REGEX.find(regex => regex.test(path));\n if (!responseNeedsNormalization)\n return;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n Object.defineProperty(response.data, namespaceKey, {\n get() {\n octokit.log.warn(`[@octokit/paginate-rest] \"response.data.${namespaceKey}\" is deprecated for \"GET ${path}\". Get the results directly from \"response.data\"`);\n return Array.from(data);\n }\n });\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = octokit.request.endpoint(route, parameters);\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n next() {\n if (!url) {\n return Promise.resolve({ done: true });\n }\n return octokit\n .request({ method, url, headers })\n .then((response) => {\n normalizePaginatedListResponse(octokit, url, response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((response.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: response };\n });\n }\n })\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":["VERSION","REGEX","normalizePaginatedListResponse","octokit","url","response","path","replace","request","endpoint","DEFAULTS","baseUrl","responseNeedsNormalization","find","regex","test","incompleteResults","data","incomplete_results","repositorySelection","repository_selection","totalCount","total_count","namespaceKey","Object","keys","defineProperty","get","log","warn","Array","from","iterator","route","parameters","options","method","headers","Symbol","asyncIterator","next","Promise","resolve","done","then","link","match","value","paginate","mapFn","undefined","gather","results","result","earlyExit","concat","paginateRest","assign","bind"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;ACAP;;;;;;;;;;;;;;;;;;;;AAoBA,MAAMC,KAAK,GAAG,CACV,aADU,EAEV,2EAFU,EAGV,uCAHU,EAIV,gCAJU,EAKV,kDALU,EAMV,oEANU,EAOV,2EAPU,CAAd;AASA,AAAO,SAASC,8BAAT,CAAwCC,OAAxC,EAAiDC,GAAjD,EAAsDC,QAAtD,EAAgE;QAC7DC,IAAI,GAAGF,GAAG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AzB,EAAkCpB,QAAlC,EAA4CiB,KAA5C,EAAmD;SACxCjB,QAAQ,CAACQ,IAAT,GAAgBI,IAAhB,CAAqBS,MAAM,IAAI;QAC9BA,MAAM,CAACV,IAAX,EAAiB;aACNS,OAAP;;;QAEAE,SAAS,GAAG,KAAhB;;aACSX,IAAT,GAAgB;MACZW,SAAS,GAAG,IAAZ;;;IAEJF,OAAO,GAAGA,OAAO,CAACG,MAAR,CAAeN,KAAK,GAAGA,KAAK,CAACI,MAAM,CAACN,KAAR,EAAeJ,IAAf,CAAR,GAA+BU,MAAM,CAACN,KAAP,CAAa9B,IAAhE,CAAV;;QACIqC,SAAJ,EAAe;aACJF,OAAP;;;WAEGD,MAAM,CAAChD,OAAD,EAAUiD,OAAV,EAAmBpB,QAAnB,EAA6BiB,KAA7B,CAAb;GAZG,CAAP;;;ACNJ;;;;;AAIA,AAAO,SAASO,YAAT,CAAsBrD,OAAtB,EAA+B;SAC3B;IACH6C,QAAQ,EAAExB,MAAM,CAACiC,MAAP,CAAcT,QAAQ,CAACU,IAAT,CAAc,IAAd,EAAoBvD,OAApB,CAAd,EAA4C;MAClD6B,QAAQ,EAAEA,QAAQ,CAAC0B,IAAT,CAAc,IAAd,EAAoBvD,OAApB;KADJ;GADd;;AAMJqD,YAAY,CAACxD,OAAb,GAAuBA,OAAvB;;;;"}
\ No newline at end of file
+{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/compose-paginate.js","../dist-src/generated/paginating-endpoints.js","../dist-src/paginating-endpoints.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.21.3\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nexport function normalizePaginatedListResponse(response) {\n // endpoints can respond with 204 if repository is empty\n if (!response.data) {\n return {\n ...response,\n data: [],\n };\n }\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization)\n return response;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n return response;\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = typeof route === \"function\"\n ? route.endpoint(parameters)\n : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url)\n return { done: true };\n try {\n const response = await requestMethod({ method, url, headers });\n const normalizedResponse = normalizePaginatedListResponse(response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: normalizedResponse };\n }\n catch (error) {\n if (error.status !== 409)\n throw error;\n url = \"\";\n return {\n value: {\n status: 200,\n headers: {},\n data: [],\n },\n };\n }\n },\n }),\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then((result) => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport const composePaginateRest = Object.assign(paginate, {\n iterator,\n});\n","export const paginatingEndpoints = [\n \"GET /app/hook/deliveries\",\n \"GET /app/installations\",\n \"GET /applications/grants\",\n \"GET /authorizations\",\n \"GET /enterprises/{enterprise}/actions/permissions/organizations\",\n \"GET /enterprises/{enterprise}/actions/runner-groups\",\n \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations\",\n \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\",\n \"GET /enterprises/{enterprise}/actions/runners\",\n \"GET /enterprises/{enterprise}/audit-log\",\n \"GET /enterprises/{enterprise}/secret-scanning/alerts\",\n \"GET /enterprises/{enterprise}/settings/billing/advanced-security\",\n \"GET /events\",\n \"GET /gists\",\n \"GET /gists/public\",\n \"GET /gists/starred\",\n \"GET /gists/{gist_id}/comments\",\n \"GET /gists/{gist_id}/commits\",\n \"GET /gists/{gist_id}/forks\",\n \"GET /installation/repositories\",\n \"GET /issues\",\n \"GET /licenses\",\n \"GET /marketplace_listing/plans\",\n \"GET /marketplace_listing/plans/{plan_id}/accounts\",\n \"GET /marketplace_listing/stubbed/plans\",\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\",\n \"GET /networks/{owner}/{repo}/events\",\n \"GET /notifications\",\n \"GET /organizations\",\n \"GET /orgs/{org}/actions/cache/usage-by-repository\",\n \"GET /orgs/{org}/actions/permissions/repositories\",\n \"GET /orgs/{org}/actions/runner-groups\",\n \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories\",\n \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners\",\n \"GET /orgs/{org}/actions/runners\",\n \"GET /orgs/{org}/actions/secrets\",\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/audit-log\",\n \"GET /orgs/{org}/blocks\",\n \"GET /orgs/{org}/code-scanning/alerts\",\n \"GET /orgs/{org}/codespaces\",\n \"GET /orgs/{org}/credential-authorizations\",\n \"GET /orgs/{org}/dependabot/secrets\",\n \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/events\",\n \"GET /orgs/{org}/external-groups\",\n \"GET /orgs/{org}/failed_invitations\",\n \"GET /orgs/{org}/hooks\",\n \"GET /orgs/{org}/hooks/{hook_id}/deliveries\",\n \"GET /orgs/{org}/installations\",\n \"GET /orgs/{org}/invitations\",\n \"GET /orgs/{org}/invitations/{invitation_id}/teams\",\n \"GET /orgs/{org}/issues\",\n \"GET /orgs/{org}/members\",\n \"GET /orgs/{org}/migrations\",\n \"GET /orgs/{org}/migrations/{migration_id}/repositories\",\n \"GET /orgs/{org}/outside_collaborators\",\n \"GET /orgs/{org}/packages\",\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\",\n \"GET /orgs/{org}/projects\",\n \"GET /orgs/{org}/public_members\",\n \"GET /orgs/{org}/repos\",\n \"GET /orgs/{org}/secret-scanning/alerts\",\n \"GET /orgs/{org}/settings/billing/advanced-security\",\n \"GET /orgs/{org}/team-sync/groups\",\n \"GET /orgs/{org}/teams\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/invitations\",\n \"GET /orgs/{org}/teams/{team_slug}/members\",\n \"GET /orgs/{org}/teams/{team_slug}/projects\",\n \"GET /orgs/{org}/teams/{team_slug}/repos\",\n \"GET /orgs/{org}/teams/{team_slug}/teams\",\n \"GET /projects/columns/{column_id}/cards\",\n \"GET /projects/{project_id}/collaborators\",\n \"GET /projects/{project_id}/columns\",\n \"GET /repos/{owner}/{repo}/actions/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/caches\",\n \"GET /repos/{owner}/{repo}/actions/runners\",\n \"GET /repos/{owner}/{repo}/actions/runs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/secrets\",\n \"GET /repos/{owner}/{repo}/actions/workflows\",\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\",\n \"GET /repos/{owner}/{repo}/assignees\",\n \"GET /repos/{owner}/{repo}/branches\",\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\",\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\",\n \"GET /repos/{owner}/{repo}/code-scanning/analyses\",\n \"GET /repos/{owner}/{repo}/codespaces\",\n \"GET /repos/{owner}/{repo}/codespaces/devcontainers\",\n \"GET /repos/{owner}/{repo}/codespaces/secrets\",\n \"GET /repos/{owner}/{repo}/collaborators\",\n \"GET /repos/{owner}/{repo}/comments\",\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/commits\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/status\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\",\n \"GET /repos/{owner}/{repo}/contributors\",\n \"GET /repos/{owner}/{repo}/dependabot/secrets\",\n \"GET /repos/{owner}/{repo}/deployments\",\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n \"GET /repos/{owner}/{repo}/environments\",\n \"GET /repos/{owner}/{repo}/events\",\n \"GET /repos/{owner}/{repo}/forks\",\n \"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\",\n \"GET /repos/{owner}/{repo}/hooks\",\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\",\n \"GET /repos/{owner}/{repo}/invitations\",\n \"GET /repos/{owner}/{repo}/issues\",\n \"GET /repos/{owner}/{repo}/issues/comments\",\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\",\n \"GET /repos/{owner}/{repo}/keys\",\n \"GET /repos/{owner}/{repo}/labels\",\n \"GET /repos/{owner}/{repo}/milestones\",\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\",\n \"GET /repos/{owner}/{repo}/notifications\",\n \"GET /repos/{owner}/{repo}/pages/builds\",\n \"GET /repos/{owner}/{repo}/projects\",\n \"GET /repos/{owner}/{repo}/pulls\",\n \"GET /repos/{owner}/{repo}/pulls/comments\",\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\",\n \"GET /repos/{owner}/{repo}/releases\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\",\n \"GET /repos/{owner}/{repo}/stargazers\",\n \"GET /repos/{owner}/{repo}/subscribers\",\n \"GET /repos/{owner}/{repo}/tags\",\n \"GET /repos/{owner}/{repo}/teams\",\n \"GET /repos/{owner}/{repo}/topics\",\n \"GET /repositories\",\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets\",\n \"GET /search/code\",\n \"GET /search/commits\",\n \"GET /search/issues\",\n \"GET /search/labels\",\n \"GET /search/repositories\",\n \"GET /search/topics\",\n \"GET /search/users\",\n \"GET /teams/{team_id}/discussions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/reactions\",\n \"GET /teams/{team_id}/invitations\",\n \"GET /teams/{team_id}/members\",\n \"GET /teams/{team_id}/projects\",\n \"GET /teams/{team_id}/repos\",\n \"GET /teams/{team_id}/teams\",\n \"GET /user/blocks\",\n \"GET /user/codespaces\",\n \"GET /user/codespaces/secrets\",\n \"GET /user/emails\",\n \"GET /user/followers\",\n \"GET /user/following\",\n \"GET /user/gpg_keys\",\n \"GET /user/installations\",\n \"GET /user/installations/{installation_id}/repositories\",\n \"GET /user/issues\",\n \"GET /user/keys\",\n \"GET /user/marketplace_purchases\",\n \"GET /user/marketplace_purchases/stubbed\",\n \"GET /user/memberships/orgs\",\n \"GET /user/migrations\",\n \"GET /user/migrations/{migration_id}/repositories\",\n \"GET /user/orgs\",\n \"GET /user/packages\",\n \"GET /user/packages/{package_type}/{package_name}/versions\",\n \"GET /user/public_emails\",\n \"GET /user/repos\",\n \"GET /user/repository_invitations\",\n \"GET /user/starred\",\n \"GET /user/subscriptions\",\n \"GET /user/teams\",\n \"GET /users\",\n \"GET /users/{username}/events\",\n \"GET /users/{username}/events/orgs/{org}\",\n \"GET /users/{username}/events/public\",\n \"GET /users/{username}/followers\",\n \"GET /users/{username}/following\",\n \"GET /users/{username}/gists\",\n \"GET /users/{username}/gpg_keys\",\n \"GET /users/{username}/keys\",\n \"GET /users/{username}/orgs\",\n \"GET /users/{username}/packages\",\n \"GET /users/{username}/projects\",\n \"GET /users/{username}/received_events\",\n \"GET /users/{username}/received_events/public\",\n \"GET /users/{username}/repos\",\n \"GET /users/{username}/starred\",\n \"GET /users/{username}/subscriptions\",\n];\n","import { paginatingEndpoints, } from \"./generated/paginating-endpoints\";\nexport { paginatingEndpoints } from \"./generated/paginating-endpoints\";\nexport function isPaginatingEndpoint(arg) {\n if (typeof arg === \"string\") {\n return paginatingEndpoints.includes(arg);\n }\n else {\n return false;\n }\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport { composePaginateRest } from \"./compose-paginate\";\nexport { isPaginatingEndpoint, paginatingEndpoints, } from \"./paginating-endpoints\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit),\n }),\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":["VERSION","normalizePaginatedListResponse","response","data","responseNeedsNormalization","incompleteResults","incomplete_results","repositorySelection","repository_selection","totalCount","total_count","namespaceKey","Object","keys","iterator","octokit","route","parameters","options","endpoint","request","requestMethod","method","headers","url","Symbol","asyncIterator","next","done","normalizedResponse","link","match","value","error","status","paginate","mapFn","undefined","gather","results","then","result","earlyExit","concat","composePaginateRest","assign","paginatingEndpoints","isPaginatingEndpoint","arg","includes","paginateRest","bind"],"mappings":";;;;AAAO,MAAMA,OAAO,GAAG,mBAAhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;ACAP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AAAO,SAASC,8BAAT,CAAwCC,QAAxC,EAAkD;;EAErD,IAAI,CAACA,QAAQ,CAACC,IAAd,EAAoB;IAChB,yCACOD,QADP;MAEIC,IAAI,EAAE;;;;EAGd,MAAMC,0BAA0B,GAAG,iBAAiBF,QAAQ,CAACC,IAA1B,IAAkC,EAAE,SAASD,QAAQ,CAACC,IAApB,CAArE;EACA,IAAI,CAACC,0BAAL,EACI,OAAOF,QAAP,CAViD;;;EAarD,MAAMG,iBAAiB,GAAGH,QAAQ,CAACC,IAAT,CAAcG,kBAAxC;EACA,MAAMC,mBAAmB,GAAGL,QAAQ,CAACC,IAAT,CAAcK,oBAA1C;EACA,MAAMC,UAAU,GAAGP,QAAQ,CAACC,IAAT,CAAcO,WAAjC;EACA,OAAOR,QAAQ,CAACC,IAAT,CAAcG,kBAArB;EACA,OAAOJ,QAAQ,CAACC,IAAT,CAAcK,oBAArB;EACA,OAAON,QAAQ,CAACC,IAAT,CAAcO,WAArB;EACA,MAAMC,YAAY,GAAGC,MAAM,CAACC,IAAP,CAAYX,QAAQ,CAACC,IAArB,EAA2B,CAA3B,CAArB;EACA,MAAMA,IAAI,GAAGD,QAAQ,CAACC,IAAT,CAAcQ,YAAd,CAAb;EACAT,QAAQ,CAACC,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ArM+B,EAsM/B,YAtM+B,EAuM/B,8BAvM+B,EAwM/B,yCAxM+B,EAyM/B,qCAzM+B,EA0M/B,iCA1M+B,EA2M/B,iCA3M+B,EA4M/B,6BA5M+B,EA6M/B,gCA7M+B,EA8M/B,4BA9M+B,EA+M/B,4BA/M+B,EAgN/B,gCAhN+B,EAiN/B,gCAjN+B,EAkN/B,uCAlN+B,EAmN/B,8CAnN+B,EAoN/B,6BApN+B,EAqN/B,+BArN+B,EAsN/B,qCAtN+B,CAA5B;;ACEA,SAASC,oBAAT,CAA8BC,GAA9B,EAAmC;EACtC,IAAI,OAAOA,GAAP,KAAe,QAAnB,EAA6B;IACzB,OAAOF,mBAAmB,CAACG,QAApB,CAA6BD,GAA7B,CAAP;GADJ,MAGK;IACD,OAAO,KAAP;;AAEP;;ACJD;AACA;AACA;AACA;;AACA,AAAO,SAASE,YAAT,CAAsBnC,OAAtB,EAA+B;EAClC,OAAO;IACHoB,QAAQ,EAAEvB,MAAM,CAACiC,MAAP,CAAcV,QAAQ,CAACgB,IAAT,CAAc,IAAd,EAAoBpC,OAApB,CAAd,EAA4C;MAClDD,QAAQ,EAAEA,QAAQ,CAACqC,IAAT,CAAc,IAAd,EAAoBpC,OAApB;KADJ;GADd;AAKH;AACDmC,YAAY,CAAClD,OAAb,GAAuBA,OAAvB;;;;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
index aa5fe65f..5ba74def 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/index.js
@@ -1,6 +1,8 @@
import { VERSION } from "./version";
import { paginate } from "./paginate";
import { iterator } from "./iterator";
+export { composePaginateRest } from "./compose-paginate";
+export { isPaginatingEndpoint, paginatingEndpoints, } from "./paginating-endpoints";
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
@@ -8,8 +10,8 @@ import { iterator } from "./iterator";
export function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
- iterator: iterator.bind(null, octokit)
- })
+ iterator: iterator.bind(null, octokit),
+ }),
};
}
paginateRest.VERSION = VERSION;
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js
index 0f973382..7f9ee644 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/iterator.js
@@ -1,26 +1,39 @@
import { normalizePaginatedListResponse } from "./normalize-paginated-list-response";
export function iterator(octokit, route, parameters) {
- const options = octokit.request.endpoint(route, parameters);
+ const options = typeof route === "function"
+ ? route.endpoint(parameters)
+ : octokit.request.endpoint(route, parameters);
+ const requestMethod = typeof route === "function" ? route : octokit.request;
const method = options.method;
const headers = options.headers;
let url = options.url;
return {
[Symbol.asyncIterator]: () => ({
- next() {
- if (!url) {
- return Promise.resolve({ done: true });
- }
- return octokit
- .request({ method, url, headers })
- .then((response) => {
- normalizePaginatedListResponse(octokit, url, response);
+ async next() {
+ if (!url)
+ return { done: true };
+ try {
+ const response = await requestMethod({ method, url, headers });
+ const normalizedResponse = normalizePaginatedListResponse(response);
// `response.headers.link` format:
// '; rel="next", ; rel="last"'
// sets `url` to undefined if "next" URL is not present or `link` header is not set
- url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
- return { value: response };
- });
- }
- })
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
+ return { value: normalizedResponse };
+ }
+ catch (error) {
+ if (error.status !== 409)
+ throw error;
+ url = "";
+ return {
+ value: {
+ status: 200,
+ headers: {},
+ data: [],
+ },
+ };
+ }
+ },
+ }),
};
}
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js
index 75fbf1c8..a87028b1 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/normalize-paginated-list-response.js
@@ -3,35 +3,28 @@
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
- * the list of the items which name varies from endpoint to endpoint:
- *
- * - https://developer.github.com/v3/search/#example (key `items`)
- * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
- * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
- * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
- * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
+ * the list of the items which name varies from endpoint to endpoint.
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
- * paginated or not. For the exceptions with the namespace, a fallback check for the route
- * paths has to be added in order to normalize the response. We cannot check for the total_count
- * property because it also exists in the response of Get the combined status for a specific ref.
+ * paginated or not.
+ *
+ * We check if a "total_count" key is present in the response data, but also make sure that
+ * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would
+ * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
*/
-const REGEX = [
- /^\/search\//,
- /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,
- /^\/installation\/repositories([^/]|$)/,
- /^\/user\/installations([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/
-];
-export function normalizePaginatedListResponse(octokit, url, response) {
- const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
- const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
+export function normalizePaginatedListResponse(response) {
+ // endpoints can respond with 204 if repository is empty
+ if (!response.data) {
+ return {
+ ...response,
+ data: [],
+ };
+ }
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
if (!responseNeedsNormalization)
- return;
+ return response;
// keep the additional properties intact as there is currently no other way
// to retrieve the same information.
const incompleteResults = response.data.incomplete_results;
@@ -50,10 +43,5 @@ export function normalizePaginatedListResponse(octokit, url, response) {
response.data.repository_selection = repositorySelection;
}
response.data.total_count = totalCount;
- Object.defineProperty(response.data, namespaceKey, {
- get() {
- octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
- return Array.from(data);
- }
- });
+ return response;
}
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js
index 06338055..8d18a60f 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/paginate.js
@@ -7,7 +7,7 @@ export function paginate(octokit, route, parameters, mapFn) {
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
}
function gather(octokit, results, iterator, mapFn) {
- return iterator.next().then(result => {
+ return iterator.next().then((result) => {
if (result.done) {
return results;
}
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js
index e69de29b..cb0ff5c3 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/types.js
@@ -0,0 +1 @@
+export {};
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js b/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js
index 33f364d9..af4553ec 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-src/version.js
@@ -1 +1 @@
-export const VERSION = "1.1.2";
+export const VERSION = "2.21.3";
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts
index 64f9c46b..4d84aae3 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/index.d.ts
@@ -1,6 +1,9 @@
+import { Octokit } from "@octokit/core";
import { PaginateInterface } from "./types";
export { PaginateInterface } from "./types";
-import { Octokit } from "@octokit/core";
+export { PaginatingEndpoints } from "./types";
+export { composePaginateRest } from "./compose-paginate";
+export { isPaginatingEndpoint, paginatingEndpoints, } from "./paginating-endpoints";
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts
index eadc968b..931d5307 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/iterator.d.ts
@@ -1,11 +1,20 @@
import { Octokit } from "@octokit/core";
-import { OctokitResponse, RequestParameters, Route } from "./types";
-export declare function iterator(octokit: Octokit, route: Route, parameters?: RequestParameters): {
+import { RequestInterface, RequestParameters, Route } from "./types";
+export declare function iterator(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters): {
[Symbol.asyncIterator]: () => {
next(): Promise<{
done: boolean;
- }> | Promise<{
- value: OctokitResponse;
+ value?: undefined;
+ } | {
+ value: import("@octokit/types/dist-types/OctokitResponse").OctokitResponse;
+ done?: undefined;
+ } | {
+ value: {
+ status: number;
+ headers: {};
+ data: never[];
+ };
+ done?: undefined;
}>;
};
};
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts
index cbae65e7..f948a78f 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/normalize-paginated-list-response.d.ts
@@ -3,21 +3,16 @@
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
- * the list of the items which name varies from endpoint to endpoint:
- *
- * - https://developer.github.com/v3/search/#example (key `items`)
- * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
- * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
- * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
- * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
+ * the list of the items which name varies from endpoint to endpoint.
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
- * paginated or not. For the exceptions with the namespace, a fallback check for the route
- * paths has to be added in order to normalize the response. We cannot check for the total_count
- * property because it also exists in the response of Get the combined status for a specific ref.
+ * paginated or not.
+ *
+ * We check if a "total_count" key is present in the response data, but also make sure that
+ * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would
+ * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
*/
-import { Octokit } from "@octokit/core";
import { OctokitResponse } from "./types";
-export declare function normalizePaginatedListResponse(octokit: Octokit, url: string, response: OctokitResponse): void;
+export declare function normalizePaginatedListResponse(response: OctokitResponse): OctokitResponse;
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts
index 2c7e8b24..774c6041 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/paginate.d.ts
@@ -1,3 +1,3 @@
import { Octokit } from "@octokit/core";
-import { MapFunction, PaginationResults, RequestParameters, Route } from "./types";
-export declare function paginate(octokit: Octokit, route: Route, parameters?: RequestParameters, mapFn?: MapFunction): Promise>;
+import { MapFunction, PaginationResults, RequestParameters, Route, RequestInterface } from "./types";
+export declare function paginate(octokit: Octokit, route: Route | RequestInterface, parameters?: RequestParameters, mapFn?: MapFunction): Promise>;
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts
index cfd8acea..0634907b 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/types.d.ts
@@ -1,69 +1,242 @@
+import { Octokit } from "@octokit/core";
import * as OctokitTypes from "@octokit/types";
-export { EndpointOptions } from "@octokit/types";
-export { OctokitResponse } from "@octokit/types";
-export { RequestParameters } from "@octokit/types";
-export { Route } from "@octokit/types";
+export { EndpointOptions, RequestInterface, OctokitResponse, RequestParameters, Route, } from "@octokit/types";
+export { PaginatingEndpoints } from "./generated/paginating-endpoints";
+import { PaginatingEndpoints } from "./generated/paginating-endpoints";
+declare type KnownKeys = Extract<{
+ [K in keyof T]: string extends K ? never : number extends K ? never : K;
+} extends {
+ [_ in keyof T]: infer U;
+} ? U : never, keyof T>;
+declare type KeysMatching = {
+ [K in keyof T]: T[K] extends V ? K : never;
+}[keyof T];
+declare type KnownKeysMatching = KeysMatching>, V>;
+declare type GetResultsType = T extends {
+ data: any[];
+} ? T["data"] : T extends {
+ data: object;
+} ? T["data"][KnownKeysMatching] : never;
+declare type NormalizeResponse = T & {
+ data: GetResultsType;
+};
+declare type DataType = "data" extends keyof T ? T["data"] : unknown;
+export interface MapFunction>, M = unknown[]> {
+ (response: T, done: () => void): M;
+}
+export declare type PaginationResults = T[];
export interface PaginateInterface {
/**
- * Sends a request based on endpoint options
+ * Paginate a request using endpoint options and map each response to a custom array
*
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
* @param {function} mapFn Optional method to map each response to a custom array
*/
- (options: OctokitTypes.EndpointOptions, mapFn: MapFunction): Promise>;
+ (options: OctokitTypes.EndpointOptions, mapFn: MapFunction>, M[]>): Promise>;
/**
- * Sends a request based on endpoint options
+ * Paginate a request using endpoint options
*
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
*/
(options: OctokitTypes.EndpointOptions): Promise>;
/**
- * Sends a request based on endpoint options
+ * Paginate a request using a known endpoint route string and map each response to a custom array
*
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
* @param {function} mapFn Optional method to map each response to a custom array
*/
- (route: OctokitTypes.Route, mapFn: MapFunction): Promise>;
+ (route: R, mapFn: MapFunction): Promise;
/**
- * Sends a request based on endpoint options
+ * Paginate a request using a known endpoint route string and parameters, and map each response to a custom array
*
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
* @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
* @param {function} mapFn Optional method to map each response to a custom array
*/
- (route: OctokitTypes.Route, parameters: OctokitTypes.RequestParameters, mapFn: MapFunction): Promise>;
+ (route: R, parameters: PaginatingEndpoints[R]["parameters"], mapFn: MapFunction): Promise;
/**
- * Sends a request based on endpoint options
+ * Paginate a request using an known endpoint route string
*
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (route: R, parameters?: PaginatingEndpoints[R]["parameters"]): Promise>;
+ /**
+ * Paginate a request using an unknown endpoint route string
+ *
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): Promise;
+ /**
+ * Paginate a request using an endpoint method and a map function
+ *
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
+ * @param {function} mapFn? Optional method to map each response to a custom array
+ */
+ (request: R, mapFn: MapFunction>, M>): Promise;
+ /**
+ * Paginate a request using an endpoint method, parameters, and a map function
+ *
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
* @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {function} mapFn? Optional method to map each response to a custom array
*/
- (route: OctokitTypes.Route, parameters: OctokitTypes.RequestParameters): Promise>;
+ (request: R, parameters: Parameters[0], mapFn: MapFunction>, M>): Promise;
/**
- * Sends a request based on endpoint options
+ * Paginate a request using an endpoint method and parameters
*
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
*/
- (route: OctokitTypes.Route): Promise>;
+ (request: R, parameters?: Parameters[0]): Promise>["data"]>;
iterator: {
/**
- * Get an asynchronous iterator for use with `for await()`,
+ * Get an async iterator to paginate a request using endpoint options
*
* @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
*/
- (EndpointOptions: OctokitTypes.EndpointOptions): AsyncIterableIterator>>;
+ (options: OctokitTypes.EndpointOptions): AsyncIterableIterator>>;
/**
- * Get an asynchronous iterator for use with `for await()`,
+ * Get an async iterator to paginate a request using a known endpoint route string and optional parameters
*
* @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
* @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
*/
- (route: OctokitTypes.Route, parameters?: OctokitTypes.RequestParameters): AsyncIterableIterator>>;
+ (route: R, parameters?: PaginatingEndpoints[R]["parameters"]): AsyncIterableIterator>>;
+ /**
+ * Get an async iterator to paginate a request using an unknown endpoint route string and optional parameters
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): AsyncIterableIterator>>;
+ /**
+ * Get an async iterator to paginate a request using a request method and optional parameters
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ * @param {string} request `@octokit/request` or `octokit.request` method
+ * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (request: R, parameters?: Parameters[0]): AsyncIterableIterator>>;
};
}
-export interface MapFunction {
- (response: OctokitTypes.OctokitResponse>, done: () => void): R[];
+export interface ComposePaginateInterface {
+ /**
+ * Paginate a request using endpoint options and map each response to a custom array
+ *
+ * @param {object} octokit Octokit instance
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {function} mapFn Optional method to map each response to a custom array
+ */
+ (octokit: Octokit, options: OctokitTypes.EndpointOptions, mapFn: MapFunction>, M[]>): Promise>;
+ /**
+ * Paginate a request using endpoint options
+ *
+ * @param {object} octokit Octokit instance
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, options: OctokitTypes.EndpointOptions): Promise>;
+ /**
+ * Paginate a request using a known endpoint route string and map each response to a custom array
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {function} mapFn Optional method to map each response to a custom array
+ */
+ (octokit: Octokit, route: R, mapFn: MapFunction): Promise;
+ /**
+ * Paginate a request using a known endpoint route string and parameters, and map each response to a custom array
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {function} mapFn Optional method to map each response to a custom array
+ */
+ (octokit: Octokit, route: R, parameters: PaginatingEndpoints[R]["parameters"], mapFn: MapFunction): Promise;
+ /**
+ * Paginate a request using an known endpoint route string
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, route: R, parameters?: PaginatingEndpoints[R]["parameters"]): Promise>;
+ /**
+ * Paginate a request using an unknown endpoint route string
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): Promise;
+ /**
+ * Paginate a request using an endpoint method and a map function
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
+ * @param {function} mapFn? Optional method to map each response to a custom array
+ */
+ (octokit: Octokit, request: R, mapFn: MapFunction>, M>): Promise;
+ /**
+ * Paginate a request using an endpoint method, parameters, and a map function
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
+ * @param {object} parameters URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ * @param {function} mapFn? Optional method to map each response to a custom array
+ */
+ (octokit: Octokit, request: R, parameters: Parameters[0], mapFn: MapFunction>, M>): Promise;
+ /**
+ * Paginate a request using an endpoint method and parameters
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} request Request method (`octokit.request` or `@octokit/request`)
+ * @param {object} parameters? URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, request: R, parameters?: Parameters[0]): Promise>["data"]>;
+ iterator: {
+ /**
+ * Get an async iterator to paginate a request using endpoint options
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ *
+ * @param {object} octokit Octokit instance
+ * @param {object} options Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, options: OctokitTypes.EndpointOptions): AsyncIterableIterator>>;
+ /**
+ * Get an async iterator to paginate a request using a known endpoint route string and optional parameters
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, route: R, parameters?: PaginatingEndpoints[R]["parameters"]): AsyncIterableIterator>>;
+ /**
+ * Get an async iterator to paginate a request using an unknown endpoint route string and optional parameters
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} route Request method + URL. Example: `'GET /orgs/{org}'`
+ * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, route: R, parameters?: R extends keyof PaginatingEndpoints ? PaginatingEndpoints[R]["parameters"] : OctokitTypes.RequestParameters): AsyncIterableIterator>>;
+ /**
+ * Get an async iterator to paginate a request using a request method and optional parameters
+ *
+ * @see {link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of} for await...of
+ *
+ * @param {object} octokit Octokit instance
+ * @param {string} request `@octokit/request` or `octokit.request` method
+ * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
+ */
+ (octokit: Octokit, request: R, parameters?: Parameters[0]): AsyncIterableIterator>>;
+ };
}
-export declare type PaginationResults = T[];
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts b/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts
index 3b6537ac..77e3d51d 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-types/version.d.ts
@@ -1 +1 @@
-export declare const VERSION = "1.1.2";
+export declare const VERSION = "2.21.3";
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
index aee57f1f..e76659fe 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js
@@ -1,39 +1,32 @@
-const VERSION = "1.1.2";
+const VERSION = "2.21.3";
/**
* Some “list” response that can be paginated have a different response structure
*
* They have a `total_count` key in the response (search also has `incomplete_results`,
* /installation/repositories also has `repository_selection`), as well as a key with
- * the list of the items which name varies from endpoint to endpoint:
- *
- * - https://developer.github.com/v3/search/#example (key `items`)
- * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)
- * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)
- * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)
- * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)
+ * the list of the items which name varies from endpoint to endpoint.
*
* Octokit normalizes these responses so that paginated results are always returned following
* the same structure. One challenge is that if the list response has only one page, no Link
* header is provided, so this header alone is not sufficient to check wether a response is
- * paginated or not. For the exceptions with the namespace, a fallback check for the route
- * paths has to be added in order to normalize the response. We cannot check for the total_count
- * property because it also exists in the response of Get the combined status for a specific ref.
+ * paginated or not.
+ *
+ * We check if a "total_count" key is present in the response data, but also make sure that
+ * a "url" property is not, as the "Get the combined status for a specific ref" endpoint would
+ * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref
*/
-const REGEX = [
- /^\/search\//,
- /^\/repos\/[^/]+\/[^/]+\/commits\/[^/]+\/(check-runs|check-suites)([^/]|$)/,
- /^\/installation\/repositories([^/]|$)/,
- /^\/user\/installations([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/secrets([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/workflows(\/[^/]+\/runs)?([^/]|$)/,
- /^\/repos\/[^/]+\/[^/]+\/actions\/runs(\/[^/]+\/(artifacts|jobs))?([^/]|$)/
-];
-function normalizePaginatedListResponse(octokit, url, response) {
- const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, "");
- const responseNeedsNormalization = REGEX.find(regex => regex.test(path));
+function normalizePaginatedListResponse(response) {
+ // endpoints can respond with 204 if repository is empty
+ if (!response.data) {
+ return {
+ ...response,
+ data: [],
+ };
+ }
+ const responseNeedsNormalization = "total_count" in response.data && !("url" in response.data);
if (!responseNeedsNormalization)
- return;
+ return response;
// keep the additional properties intact as there is currently no other way
// to retrieve the same information.
const incompleteResults = response.data.incomplete_results;
@@ -52,37 +45,45 @@ function normalizePaginatedListResponse(octokit, url, response) {
response.data.repository_selection = repositorySelection;
}
response.data.total_count = totalCount;
- Object.defineProperty(response.data, namespaceKey, {
- get() {
- octokit.log.warn(`[@octokit/paginate-rest] "response.data.${namespaceKey}" is deprecated for "GET ${path}". Get the results directly from "response.data"`);
- return Array.from(data);
- }
- });
+ return response;
}
function iterator(octokit, route, parameters) {
- const options = octokit.request.endpoint(route, parameters);
+ const options = typeof route === "function"
+ ? route.endpoint(parameters)
+ : octokit.request.endpoint(route, parameters);
+ const requestMethod = typeof route === "function" ? route : octokit.request;
const method = options.method;
const headers = options.headers;
let url = options.url;
return {
[Symbol.asyncIterator]: () => ({
- next() {
- if (!url) {
- return Promise.resolve({ done: true });
- }
- return octokit
- .request({ method, url, headers })
- .then((response) => {
- normalizePaginatedListResponse(octokit, url, response);
+ async next() {
+ if (!url)
+ return { done: true };
+ try {
+ const response = await requestMethod({ method, url, headers });
+ const normalizedResponse = normalizePaginatedListResponse(response);
// `response.headers.link` format:
// '; rel="next", ; rel="last"'
// sets `url` to undefined if "next" URL is not present or `link` header is not set
- url = ((response.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
- return { value: response };
- });
- }
- })
+ url = ((normalizedResponse.headers.link || "").match(/<([^>]+)>;\s*rel="next"/) || [])[1];
+ return { value: normalizedResponse };
+ }
+ catch (error) {
+ if (error.status !== 409)
+ throw error;
+ url = "";
+ return {
+ value: {
+ status: 200,
+ headers: {},
+ data: [],
+ },
+ };
+ }
+ },
+ }),
};
}
@@ -94,7 +95,7 @@ function paginate(octokit, route, parameters, mapFn) {
return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);
}
function gather(octokit, results, iterator, mapFn) {
- return iterator.next().then(result => {
+ return iterator.next().then((result) => {
if (result.done) {
return results;
}
@@ -110,6 +111,236 @@ function gather(octokit, results, iterator, mapFn) {
});
}
+const composePaginateRest = Object.assign(paginate, {
+ iterator,
+});
+
+const paginatingEndpoints = [
+ "GET /app/hook/deliveries",
+ "GET /app/installations",
+ "GET /applications/grants",
+ "GET /authorizations",
+ "GET /enterprises/{enterprise}/actions/permissions/organizations",
+ "GET /enterprises/{enterprise}/actions/runner-groups",
+ "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations",
+ "GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners",
+ "GET /enterprises/{enterprise}/actions/runners",
+ "GET /enterprises/{enterprise}/audit-log",
+ "GET /enterprises/{enterprise}/secret-scanning/alerts",
+ "GET /enterprises/{enterprise}/settings/billing/advanced-security",
+ "GET /events",
+ "GET /gists",
+ "GET /gists/public",
+ "GET /gists/starred",
+ "GET /gists/{gist_id}/comments",
+ "GET /gists/{gist_id}/commits",
+ "GET /gists/{gist_id}/forks",
+ "GET /installation/repositories",
+ "GET /issues",
+ "GET /licenses",
+ "GET /marketplace_listing/plans",
+ "GET /marketplace_listing/plans/{plan_id}/accounts",
+ "GET /marketplace_listing/stubbed/plans",
+ "GET /marketplace_listing/stubbed/plans/{plan_id}/accounts",
+ "GET /networks/{owner}/{repo}/events",
+ "GET /notifications",
+ "GET /organizations",
+ "GET /orgs/{org}/actions/cache/usage-by-repository",
+ "GET /orgs/{org}/actions/permissions/repositories",
+ "GET /orgs/{org}/actions/runner-groups",
+ "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories",
+ "GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners",
+ "GET /orgs/{org}/actions/runners",
+ "GET /orgs/{org}/actions/secrets",
+ "GET /orgs/{org}/actions/secrets/{secret_name}/repositories",
+ "GET /orgs/{org}/audit-log",
+ "GET /orgs/{org}/blocks",
+ "GET /orgs/{org}/code-scanning/alerts",
+ "GET /orgs/{org}/codespaces",
+ "GET /orgs/{org}/credential-authorizations",
+ "GET /orgs/{org}/dependabot/secrets",
+ "GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories",
+ "GET /orgs/{org}/events",
+ "GET /orgs/{org}/external-groups",
+ "GET /orgs/{org}/failed_invitations",
+ "GET /orgs/{org}/hooks",
+ "GET /orgs/{org}/hooks/{hook_id}/deliveries",
+ "GET /orgs/{org}/installations",
+ "GET /orgs/{org}/invitations",
+ "GET /orgs/{org}/invitations/{invitation_id}/teams",
+ "GET /orgs/{org}/issues",
+ "GET /orgs/{org}/members",
+ "GET /orgs/{org}/migrations",
+ "GET /orgs/{org}/migrations/{migration_id}/repositories",
+ "GET /orgs/{org}/outside_collaborators",
+ "GET /orgs/{org}/packages",
+ "GET /orgs/{org}/packages/{package_type}/{package_name}/versions",
+ "GET /orgs/{org}/projects",
+ "GET /orgs/{org}/public_members",
+ "GET /orgs/{org}/repos",
+ "GET /orgs/{org}/secret-scanning/alerts",
+ "GET /orgs/{org}/settings/billing/advanced-security",
+ "GET /orgs/{org}/team-sync/groups",
+ "GET /orgs/{org}/teams",
+ "GET /orgs/{org}/teams/{team_slug}/discussions",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions",
+ "GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions",
+ "GET /orgs/{org}/teams/{team_slug}/invitations",
+ "GET /orgs/{org}/teams/{team_slug}/members",
+ "GET /orgs/{org}/teams/{team_slug}/projects",
+ "GET /orgs/{org}/teams/{team_slug}/repos",
+ "GET /orgs/{org}/teams/{team_slug}/teams",
+ "GET /projects/columns/{column_id}/cards",
+ "GET /projects/{project_id}/collaborators",
+ "GET /projects/{project_id}/columns",
+ "GET /repos/{owner}/{repo}/actions/artifacts",
+ "GET /repos/{owner}/{repo}/actions/caches",
+ "GET /repos/{owner}/{repo}/actions/runners",
+ "GET /repos/{owner}/{repo}/actions/runs",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs",
+ "GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs",
+ "GET /repos/{owner}/{repo}/actions/secrets",
+ "GET /repos/{owner}/{repo}/actions/workflows",
+ "GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs",
+ "GET /repos/{owner}/{repo}/assignees",
+ "GET /repos/{owner}/{repo}/branches",
+ "GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations",
+ "GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs",
+ "GET /repos/{owner}/{repo}/code-scanning/alerts",
+ "GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances",
+ "GET /repos/{owner}/{repo}/code-scanning/analyses",
+ "GET /repos/{owner}/{repo}/codespaces",
+ "GET /repos/{owner}/{repo}/codespaces/devcontainers",
+ "GET /repos/{owner}/{repo}/codespaces/secrets",
+ "GET /repos/{owner}/{repo}/collaborators",
+ "GET /repos/{owner}/{repo}/comments",
+ "GET /repos/{owner}/{repo}/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/commits",
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/comments",
+ "GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls",
+ "GET /repos/{owner}/{repo}/commits/{ref}/check-runs",
+ "GET /repos/{owner}/{repo}/commits/{ref}/check-suites",
+ "GET /repos/{owner}/{repo}/commits/{ref}/status",
+ "GET /repos/{owner}/{repo}/commits/{ref}/statuses",
+ "GET /repos/{owner}/{repo}/contributors",
+ "GET /repos/{owner}/{repo}/dependabot/secrets",
+ "GET /repos/{owner}/{repo}/deployments",
+ "GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses",
+ "GET /repos/{owner}/{repo}/environments",
+ "GET /repos/{owner}/{repo}/events",
+ "GET /repos/{owner}/{repo}/forks",
+ "GET /repos/{owner}/{repo}/git/matching-refs/{ref}",
+ "GET /repos/{owner}/{repo}/hooks",
+ "GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries",
+ "GET /repos/{owner}/{repo}/invitations",
+ "GET /repos/{owner}/{repo}/issues",
+ "GET /repos/{owner}/{repo}/issues/comments",
+ "GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/issues/events",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/comments",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/events",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/labels",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/reactions",
+ "GET /repos/{owner}/{repo}/issues/{issue_number}/timeline",
+ "GET /repos/{owner}/{repo}/keys",
+ "GET /repos/{owner}/{repo}/labels",
+ "GET /repos/{owner}/{repo}/milestones",
+ "GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels",
+ "GET /repos/{owner}/{repo}/notifications",
+ "GET /repos/{owner}/{repo}/pages/builds",
+ "GET /repos/{owner}/{repo}/projects",
+ "GET /repos/{owner}/{repo}/pulls",
+ "GET /repos/{owner}/{repo}/pulls/comments",
+ "GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/comments",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/commits",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/files",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews",
+ "GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments",
+ "GET /repos/{owner}/{repo}/releases",
+ "GET /repos/{owner}/{repo}/releases/{release_id}/assets",
+ "GET /repos/{owner}/{repo}/releases/{release_id}/reactions",
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts",
+ "GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations",
+ "GET /repos/{owner}/{repo}/stargazers",
+ "GET /repos/{owner}/{repo}/subscribers",
+ "GET /repos/{owner}/{repo}/tags",
+ "GET /repos/{owner}/{repo}/teams",
+ "GET /repos/{owner}/{repo}/topics",
+ "GET /repositories",
+ "GET /repositories/{repository_id}/environments/{environment_name}/secrets",
+ "GET /search/code",
+ "GET /search/commits",
+ "GET /search/issues",
+ "GET /search/labels",
+ "GET /search/repositories",
+ "GET /search/topics",
+ "GET /search/users",
+ "GET /teams/{team_id}/discussions",
+ "GET /teams/{team_id}/discussions/{discussion_number}/comments",
+ "GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions",
+ "GET /teams/{team_id}/discussions/{discussion_number}/reactions",
+ "GET /teams/{team_id}/invitations",
+ "GET /teams/{team_id}/members",
+ "GET /teams/{team_id}/projects",
+ "GET /teams/{team_id}/repos",
+ "GET /teams/{team_id}/teams",
+ "GET /user/blocks",
+ "GET /user/codespaces",
+ "GET /user/codespaces/secrets",
+ "GET /user/emails",
+ "GET /user/followers",
+ "GET /user/following",
+ "GET /user/gpg_keys",
+ "GET /user/installations",
+ "GET /user/installations/{installation_id}/repositories",
+ "GET /user/issues",
+ "GET /user/keys",
+ "GET /user/marketplace_purchases",
+ "GET /user/marketplace_purchases/stubbed",
+ "GET /user/memberships/orgs",
+ "GET /user/migrations",
+ "GET /user/migrations/{migration_id}/repositories",
+ "GET /user/orgs",
+ "GET /user/packages",
+ "GET /user/packages/{package_type}/{package_name}/versions",
+ "GET /user/public_emails",
+ "GET /user/repos",
+ "GET /user/repository_invitations",
+ "GET /user/starred",
+ "GET /user/subscriptions",
+ "GET /user/teams",
+ "GET /users",
+ "GET /users/{username}/events",
+ "GET /users/{username}/events/orgs/{org}",
+ "GET /users/{username}/events/public",
+ "GET /users/{username}/followers",
+ "GET /users/{username}/following",
+ "GET /users/{username}/gists",
+ "GET /users/{username}/gpg_keys",
+ "GET /users/{username}/keys",
+ "GET /users/{username}/orgs",
+ "GET /users/{username}/packages",
+ "GET /users/{username}/projects",
+ "GET /users/{username}/received_events",
+ "GET /users/{username}/received_events/public",
+ "GET /users/{username}/repos",
+ "GET /users/{username}/starred",
+ "GET /users/{username}/subscriptions",
+];
+
+function isPaginatingEndpoint(arg) {
+ if (typeof arg === "string") {
+ return paginatingEndpoints.includes(arg);
+ }
+ else {
+ return false;
+ }
+}
+
/**
* @param octokit Octokit instance
* @param options Options passed to Octokit constructor
@@ -117,11 +348,11 @@ function gather(octokit, results, iterator, mapFn) {
function paginateRest(octokit) {
return {
paginate: Object.assign(paginate.bind(null, octokit), {
- iterator: iterator.bind(null, octokit)
- })
+ iterator: iterator.bind(null, octokit),
+ }),
};
}
paginateRest.VERSION = VERSION;
-export { paginateRest };
+export { composePaginateRest, isPaginatingEndpoint, paginateRest, paginatingEndpoints };
//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map
index a700b039..878b8e47 100644
--- a/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map
+++ b/node_modules/@octokit/plugin-paginate-rest/dist-web/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"1.1.2\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint:\n *\n * - https://developer.github.com/v3/search/#example (key `items`)\n * - https://developer.github.com/v3/checks/runs/#response-3 (key: `check_runs`)\n * - https://developer.github.com/v3/checks/suites/#response-1 (key: `check_suites`)\n * - https://developer.github.com/v3/apps/installations/#list-repositories (key: `repositories`)\n * - https://developer.github.com/v3/apps/installations/#list-installations-for-a-user (key `installations`)\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not. For the exceptions with the namespace, a fallback check for the route\n * paths has to be added in order to normalize the response. We cannot check for the total_count\n * property because it also exists in the response of Get the combined status for a specific ref.\n */\nconst REGEX = [\n /^\\/search\\//,\n /^\\/repos\\/[^/]+\\/[^/]+\\/commits\\/[^/]+\\/(check-runs|check-suites)([^/]|$)/,\n /^\\/installation\\/repositories([^/]|$)/,\n /^\\/user\\/installations([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/secrets([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/workflows(\\/[^/]+\\/runs)?([^/]|$)/,\n /^\\/repos\\/[^/]+\\/[^/]+\\/actions\\/runs(\\/[^/]+\\/(artifacts|jobs))?([^/]|$)/\n];\nexport function normalizePaginatedListResponse(octokit, url, response) {\n const path = url.replace(octokit.request.endpoint.DEFAULTS.baseUrl, \"\");\n const responseNeedsNormalization = REGEX.find(regex => regex.test(path));\n if (!responseNeedsNormalization)\n return;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n Object.defineProperty(response.data, namespaceKey, {\n get() {\n octokit.log.warn(`[@octokit/paginate-rest] \"response.data.${namespaceKey}\" is deprecated for \"GET ${path}\". Get the results directly from \"response.data\"`);\n return Array.from(data);\n }\n });\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = octokit.request.endpoint(route, parameters);\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n next() {\n if (!url) {\n return Promise.resolve({ done: true });\n }\n return octokit\n .request({ method, url, headers })\n .then((response) => {\n normalizePaginatedListResponse(octokit, url, response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((response.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: response };\n });\n }\n })\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then(result => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit)\n })\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB,CAAC;;ACA3C;;;;;;;;;;;;;;;;;;;;AAoBA,MAAM,KAAK,GAAG;IACV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AAO,CAAC;SACzC,CAAC;KACL,CAAC;CACL;AACD,YAAY,CAAC,OAAO,GAAG,OAAO,CAAC;;;;"}
\ No newline at end of file
+{"version":3,"file":"index.js","sources":["../dist-src/version.js","../dist-src/normalize-paginated-list-response.js","../dist-src/iterator.js","../dist-src/paginate.js","../dist-src/compose-paginate.js","../dist-src/generated/paginating-endpoints.js","../dist-src/paginating-endpoints.js","../dist-src/index.js"],"sourcesContent":["export const VERSION = \"2.21.3\";\n","/**\n * Some “list” response that can be paginated have a different response structure\n *\n * They have a `total_count` key in the response (search also has `incomplete_results`,\n * /installation/repositories also has `repository_selection`), as well as a key with\n * the list of the items which name varies from endpoint to endpoint.\n *\n * Octokit normalizes these responses so that paginated results are always returned following\n * the same structure. One challenge is that if the list response has only one page, no Link\n * header is provided, so this header alone is not sufficient to check wether a response is\n * paginated or not.\n *\n * We check if a \"total_count\" key is present in the response data, but also make sure that\n * a \"url\" property is not, as the \"Get the combined status for a specific ref\" endpoint would\n * otherwise match: https://developer.github.com/v3/repos/statuses/#get-the-combined-status-for-a-specific-ref\n */\nexport function normalizePaginatedListResponse(response) {\n // endpoints can respond with 204 if repository is empty\n if (!response.data) {\n return {\n ...response,\n data: [],\n };\n }\n const responseNeedsNormalization = \"total_count\" in response.data && !(\"url\" in response.data);\n if (!responseNeedsNormalization)\n return response;\n // keep the additional properties intact as there is currently no other way\n // to retrieve the same information.\n const incompleteResults = response.data.incomplete_results;\n const repositorySelection = response.data.repository_selection;\n const totalCount = response.data.total_count;\n delete response.data.incomplete_results;\n delete response.data.repository_selection;\n delete response.data.total_count;\n const namespaceKey = Object.keys(response.data)[0];\n const data = response.data[namespaceKey];\n response.data = data;\n if (typeof incompleteResults !== \"undefined\") {\n response.data.incomplete_results = incompleteResults;\n }\n if (typeof repositorySelection !== \"undefined\") {\n response.data.repository_selection = repositorySelection;\n }\n response.data.total_count = totalCount;\n return response;\n}\n","import { normalizePaginatedListResponse } from \"./normalize-paginated-list-response\";\nexport function iterator(octokit, route, parameters) {\n const options = typeof route === \"function\"\n ? route.endpoint(parameters)\n : octokit.request.endpoint(route, parameters);\n const requestMethod = typeof route === \"function\" ? route : octokit.request;\n const method = options.method;\n const headers = options.headers;\n let url = options.url;\n return {\n [Symbol.asyncIterator]: () => ({\n async next() {\n if (!url)\n return { done: true };\n try {\n const response = await requestMethod({ method, url, headers });\n const normalizedResponse = normalizePaginatedListResponse(response);\n // `response.headers.link` format:\n // '; rel=\"next\", ; rel=\"last\"'\n // sets `url` to undefined if \"next\" URL is not present or `link` header is not set\n url = ((normalizedResponse.headers.link || \"\").match(/<([^>]+)>;\\s*rel=\"next\"/) || [])[1];\n return { value: normalizedResponse };\n }\n catch (error) {\n if (error.status !== 409)\n throw error;\n url = \"\";\n return {\n value: {\n status: 200,\n headers: {},\n data: [],\n },\n };\n }\n },\n }),\n };\n}\n","import { iterator } from \"./iterator\";\nexport function paginate(octokit, route, parameters, mapFn) {\n if (typeof parameters === \"function\") {\n mapFn = parameters;\n parameters = undefined;\n }\n return gather(octokit, [], iterator(octokit, route, parameters)[Symbol.asyncIterator](), mapFn);\n}\nfunction gather(octokit, results, iterator, mapFn) {\n return iterator.next().then((result) => {\n if (result.done) {\n return results;\n }\n let earlyExit = false;\n function done() {\n earlyExit = true;\n }\n results = results.concat(mapFn ? mapFn(result.value, done) : result.value.data);\n if (earlyExit) {\n return results;\n }\n return gather(octokit, results, iterator, mapFn);\n });\n}\n","import { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport const composePaginateRest = Object.assign(paginate, {\n iterator,\n});\n","export const paginatingEndpoints = [\n \"GET /app/hook/deliveries\",\n \"GET /app/installations\",\n \"GET /applications/grants\",\n \"GET /authorizations\",\n \"GET /enterprises/{enterprise}/actions/permissions/organizations\",\n \"GET /enterprises/{enterprise}/actions/runner-groups\",\n \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/organizations\",\n \"GET /enterprises/{enterprise}/actions/runner-groups/{runner_group_id}/runners\",\n \"GET /enterprises/{enterprise}/actions/runners\",\n \"GET /enterprises/{enterprise}/audit-log\",\n \"GET /enterprises/{enterprise}/secret-scanning/alerts\",\n \"GET /enterprises/{enterprise}/settings/billing/advanced-security\",\n \"GET /events\",\n \"GET /gists\",\n \"GET /gists/public\",\n \"GET /gists/starred\",\n \"GET /gists/{gist_id}/comments\",\n \"GET /gists/{gist_id}/commits\",\n \"GET /gists/{gist_id}/forks\",\n \"GET /installation/repositories\",\n \"GET /issues\",\n \"GET /licenses\",\n \"GET /marketplace_listing/plans\",\n \"GET /marketplace_listing/plans/{plan_id}/accounts\",\n \"GET /marketplace_listing/stubbed/plans\",\n \"GET /marketplace_listing/stubbed/plans/{plan_id}/accounts\",\n \"GET /networks/{owner}/{repo}/events\",\n \"GET /notifications\",\n \"GET /organizations\",\n \"GET /orgs/{org}/actions/cache/usage-by-repository\",\n \"GET /orgs/{org}/actions/permissions/repositories\",\n \"GET /orgs/{org}/actions/runner-groups\",\n \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories\",\n \"GET /orgs/{org}/actions/runner-groups/{runner_group_id}/runners\",\n \"GET /orgs/{org}/actions/runners\",\n \"GET /orgs/{org}/actions/secrets\",\n \"GET /orgs/{org}/actions/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/audit-log\",\n \"GET /orgs/{org}/blocks\",\n \"GET /orgs/{org}/code-scanning/alerts\",\n \"GET /orgs/{org}/codespaces\",\n \"GET /orgs/{org}/credential-authorizations\",\n \"GET /orgs/{org}/dependabot/secrets\",\n \"GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories\",\n \"GET /orgs/{org}/events\",\n \"GET /orgs/{org}/external-groups\",\n \"GET /orgs/{org}/failed_invitations\",\n \"GET /orgs/{org}/hooks\",\n \"GET /orgs/{org}/hooks/{hook_id}/deliveries\",\n \"GET /orgs/{org}/installations\",\n \"GET /orgs/{org}/invitations\",\n \"GET /orgs/{org}/invitations/{invitation_id}/teams\",\n \"GET /orgs/{org}/issues\",\n \"GET /orgs/{org}/members\",\n \"GET /orgs/{org}/migrations\",\n \"GET /orgs/{org}/migrations/{migration_id}/repositories\",\n \"GET /orgs/{org}/outside_collaborators\",\n \"GET /orgs/{org}/packages\",\n \"GET /orgs/{org}/packages/{package_type}/{package_name}/versions\",\n \"GET /orgs/{org}/projects\",\n \"GET /orgs/{org}/public_members\",\n \"GET /orgs/{org}/repos\",\n \"GET /orgs/{org}/secret-scanning/alerts\",\n \"GET /orgs/{org}/settings/billing/advanced-security\",\n \"GET /orgs/{org}/team-sync/groups\",\n \"GET /orgs/{org}/teams\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/discussions/{discussion_number}/reactions\",\n \"GET /orgs/{org}/teams/{team_slug}/invitations\",\n \"GET /orgs/{org}/teams/{team_slug}/members\",\n \"GET /orgs/{org}/teams/{team_slug}/projects\",\n \"GET /orgs/{org}/teams/{team_slug}/repos\",\n \"GET /orgs/{org}/teams/{team_slug}/teams\",\n \"GET /projects/columns/{column_id}/cards\",\n \"GET /projects/{project_id}/collaborators\",\n \"GET /projects/{project_id}/columns\",\n \"GET /repos/{owner}/{repo}/actions/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/caches\",\n \"GET /repos/{owner}/{repo}/actions/runners\",\n \"GET /repos/{owner}/{repo}/actions/runs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/artifacts\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/attempts/{attempt_number}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/runs/{run_id}/jobs\",\n \"GET /repos/{owner}/{repo}/actions/secrets\",\n \"GET /repos/{owner}/{repo}/actions/workflows\",\n \"GET /repos/{owner}/{repo}/actions/workflows/{workflow_id}/runs\",\n \"GET /repos/{owner}/{repo}/assignees\",\n \"GET /repos/{owner}/{repo}/branches\",\n \"GET /repos/{owner}/{repo}/check-runs/{check_run_id}/annotations\",\n \"GET /repos/{owner}/{repo}/check-suites/{check_suite_id}/check-runs\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/code-scanning/alerts/{alert_number}/instances\",\n \"GET /repos/{owner}/{repo}/code-scanning/analyses\",\n \"GET /repos/{owner}/{repo}/codespaces\",\n \"GET /repos/{owner}/{repo}/codespaces/devcontainers\",\n \"GET /repos/{owner}/{repo}/codespaces/secrets\",\n \"GET /repos/{owner}/{repo}/collaborators\",\n \"GET /repos/{owner}/{repo}/comments\",\n \"GET /repos/{owner}/{repo}/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/commits\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/comments\",\n \"GET /repos/{owner}/{repo}/commits/{commit_sha}/pulls\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-runs\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/check-suites\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/status\",\n \"GET /repos/{owner}/{repo}/commits/{ref}/statuses\",\n \"GET /repos/{owner}/{repo}/contributors\",\n \"GET /repos/{owner}/{repo}/dependabot/secrets\",\n \"GET /repos/{owner}/{repo}/deployments\",\n \"GET /repos/{owner}/{repo}/deployments/{deployment_id}/statuses\",\n \"GET /repos/{owner}/{repo}/environments\",\n \"GET /repos/{owner}/{repo}/events\",\n \"GET /repos/{owner}/{repo}/forks\",\n \"GET /repos/{owner}/{repo}/git/matching-refs/{ref}\",\n \"GET /repos/{owner}/{repo}/hooks\",\n \"GET /repos/{owner}/{repo}/hooks/{hook_id}/deliveries\",\n \"GET /repos/{owner}/{repo}/invitations\",\n \"GET /repos/{owner}/{repo}/issues\",\n \"GET /repos/{owner}/{repo}/issues/comments\",\n \"GET /repos/{owner}/{repo}/issues/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/comments\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/events\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/labels\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/reactions\",\n \"GET /repos/{owner}/{repo}/issues/{issue_number}/timeline\",\n \"GET /repos/{owner}/{repo}/keys\",\n \"GET /repos/{owner}/{repo}/labels\",\n \"GET /repos/{owner}/{repo}/milestones\",\n \"GET /repos/{owner}/{repo}/milestones/{milestone_number}/labels\",\n \"GET /repos/{owner}/{repo}/notifications\",\n \"GET /repos/{owner}/{repo}/pages/builds\",\n \"GET /repos/{owner}/{repo}/projects\",\n \"GET /repos/{owner}/{repo}/pulls\",\n \"GET /repos/{owner}/{repo}/pulls/comments\",\n \"GET /repos/{owner}/{repo}/pulls/comments/{comment_id}/reactions\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/comments\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/commits\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/files\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/requested_reviewers\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews\",\n \"GET /repos/{owner}/{repo}/pulls/{pull_number}/reviews/{review_id}/comments\",\n \"GET /repos/{owner}/{repo}/releases\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/assets\",\n \"GET /repos/{owner}/{repo}/releases/{release_id}/reactions\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts\",\n \"GET /repos/{owner}/{repo}/secret-scanning/alerts/{alert_number}/locations\",\n \"GET /repos/{owner}/{repo}/stargazers\",\n \"GET /repos/{owner}/{repo}/subscribers\",\n \"GET /repos/{owner}/{repo}/tags\",\n \"GET /repos/{owner}/{repo}/teams\",\n \"GET /repos/{owner}/{repo}/topics\",\n \"GET /repositories\",\n \"GET /repositories/{repository_id}/environments/{environment_name}/secrets\",\n \"GET /search/code\",\n \"GET /search/commits\",\n \"GET /search/issues\",\n \"GET /search/labels\",\n \"GET /search/repositories\",\n \"GET /search/topics\",\n \"GET /search/users\",\n \"GET /teams/{team_id}/discussions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/comments/{comment_number}/reactions\",\n \"GET /teams/{team_id}/discussions/{discussion_number}/reactions\",\n \"GET /teams/{team_id}/invitations\",\n \"GET /teams/{team_id}/members\",\n \"GET /teams/{team_id}/projects\",\n \"GET /teams/{team_id}/repos\",\n \"GET /teams/{team_id}/teams\",\n \"GET /user/blocks\",\n \"GET /user/codespaces\",\n \"GET /user/codespaces/secrets\",\n \"GET /user/emails\",\n \"GET /user/followers\",\n \"GET /user/following\",\n \"GET /user/gpg_keys\",\n \"GET /user/installations\",\n \"GET /user/installations/{installation_id}/repositories\",\n \"GET /user/issues\",\n \"GET /user/keys\",\n \"GET /user/marketplace_purchases\",\n \"GET /user/marketplace_purchases/stubbed\",\n \"GET /user/memberships/orgs\",\n \"GET /user/migrations\",\n \"GET /user/migrations/{migration_id}/repositories\",\n \"GET /user/orgs\",\n \"GET /user/packages\",\n \"GET /user/packages/{package_type}/{package_name}/versions\",\n \"GET /user/public_emails\",\n \"GET /user/repos\",\n \"GET /user/repository_invitations\",\n \"GET /user/starred\",\n \"GET /user/subscriptions\",\n \"GET /user/teams\",\n \"GET /users\",\n \"GET /users/{username}/events\",\n \"GET /users/{username}/events/orgs/{org}\",\n \"GET /users/{username}/events/public\",\n \"GET /users/{username}/followers\",\n \"GET /users/{username}/following\",\n \"GET /users/{username}/gists\",\n \"GET /users/{username}/gpg_keys\",\n \"GET /users/{username}/keys\",\n \"GET /users/{username}/orgs\",\n \"GET /users/{username}/packages\",\n \"GET /users/{username}/projects\",\n \"GET /users/{username}/received_events\",\n \"GET /users/{username}/received_events/public\",\n \"GET /users/{username}/repos\",\n \"GET /users/{username}/starred\",\n \"GET /users/{username}/subscriptions\",\n];\n","import { paginatingEndpoints, } from \"./generated/paginating-endpoints\";\nexport { paginatingEndpoints } from \"./generated/paginating-endpoints\";\nexport function isPaginatingEndpoint(arg) {\n if (typeof arg === \"string\") {\n return paginatingEndpoints.includes(arg);\n }\n else {\n return false;\n }\n}\n","import { VERSION } from \"./version\";\nimport { paginate } from \"./paginate\";\nimport { iterator } from \"./iterator\";\nexport { composePaginateRest } from \"./compose-paginate\";\nexport { isPaginatingEndpoint, paginatingEndpoints, } from \"./paginating-endpoints\";\n/**\n * @param octokit Octokit instance\n * @param options Options passed to Octokit constructor\n */\nexport function paginateRest(octokit) {\n return {\n paginate: Object.assign(paginate.bind(null, octokit), {\n iterator: iterator.bind(null, octokit),\n }),\n };\n}\npaginateRest.VERSION = VERSION;\n"],"names":[],"mappings":"AAAO,MAAM,OAAO,GAAG,mBAAmB;;ACA1C;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,AAAO,SAAS,8BAA8B,CAAC,QAAQ,EAAE;AACzD;AACA,IAAI,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE;AACxB,QAAQ,OAAO;AACf,YAAY,GAAG,QAAQ;AACvB,YAAY,IAAI,EAAE,EAAE;AACpB,SAAS,CAAC;AACV,KAAK;AACL,IAAI,MAAM,0BAA0B,GAAG,aAAa,IAAI,QAAQ,CAAC,IAAI,IAAI,EAAE,KAAK,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;AACnG,IAAI,IAAI,CAAC,0BAA0B;AACnC,QAAQ,OAAO,QAAQ,CAAC;AACxB;AACA;AACA,IAAI,MAAM,iBAAiB,GAAG,QAAQ,CAAC,IAAI,CAAC,kBAAkB,CAAC;AAC/D,IAAI,MAAM,mBAAmB,GAAG,QAAQ,CAAC,IAAI,CAAC,oBAAoB,CAAC;AACnE,IAAI,MAAM,UAAU,GAAG,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC;AACjD,IAAI,OAAO,QA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est/node_modules/@octokit/types/LICENSE b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/LICENSE
deleted file mode 100644
index 57bee5f1..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/LICENSE
+++ /dev/null
@@ -1,7 +0,0 @@
-MIT License Copyright (c) 2019 Octokit contributors
-
-Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md
deleted file mode 100644
index 25b8f03b..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/README.md
+++ /dev/null
@@ -1,65 +0,0 @@
-# types.ts
-
-> Shared TypeScript definitions for Octokit projects
-
-[![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types)
-[![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test)
-[![Greenkeeper](https://badges.greenkeeper.io/octokit/types.ts.svg)](https://greenkeeper.io/)
-
-
-
-- [Usage](#usage)
-- [Examples](#examples)
- - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint)
- - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods)
-- [Contributing](#contributing)
-- [License](#license)
-
-
-
-## Usage
-
-See all exported types at https://octokit.github.io/types.ts
-
-## Examples
-
-### Get parameter and response data types for a REST API endpoint
-
-```ts
-import { Endpoints } from "./src";
-
-type listUserReposParameters = Endpoints["GET /repos/:owner/:repo"]["parameters"];
-type listUserReposResponse = Endpoints["GET /repos/:owner/:repo"]["response"];
-
-async function listRepos(
- options: listUserReposParameters
-): listUserReposResponse["data"] {
- // ...
-}
-```
-
-### Get response types from endpoint methods
-
-```ts
-import {
- GetResponseTypeFromEndpointMethod,
- GetResponseDataTypeFromEndpointMethod,
-} from "@octokit/types";
-import { Octokit } from "@octokit/rest";
-
-const octokit = new Octokit();
-type CreateLabelResponseType = GetResponseTypeFromEndpointMethod<
- typeof octokit.issues.createLabel
->;
-type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod<
- typeof octokit.issues.createLabel
->;
-```
-
-## Contributing
-
-See [CONTRIBUTING.md](CONTRIBUTING.md)
-
-## License
-
-[MIT](LICENSE)
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js
deleted file mode 100644
index 4c5b65fe..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js
+++ /dev/null
@@ -1,8 +0,0 @@
-'use strict';
-
-Object.defineProperty(exports, '__esModule', { value: true });
-
-const VERSION = "2.16.2";
-
-exports.VERSION = VERSION;
-//# sourceMappingURL=index.js.map
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map
deleted file mode 100644
index 2d148d3b..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-node/index.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"file":"index.js","sources":["../dist-src/VERSION.js"],"sourcesContent":["export const VERSION = \"0.0.0-development\";\n"],"names":["VERSION"],"mappings":";;;;MAAaA,OAAO,GAAG;;;;"}
\ No newline at end of file
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/AuthInterface.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointDefaults.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointInterface.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/EndpointOptions.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Fetch.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/OctokitResponse.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestHeaders.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestInterface.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestMethod.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestOptions.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestParameters.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/RequestRequestOptions.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/ResponseHeaders.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Route.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Signal.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/StrategyInterface.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/Url.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js
deleted file mode 100644
index 66bc3f74..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/VERSION.js
+++ /dev/null
@@ -1 +0,0 @@
-export const VERSION = "2.16.2";
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/generated/Endpoints.js
deleted file mode 100644
index e69de29b..00000000
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js
deleted file mode 100644
index 04b21636..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-src/index.js
+++ /dev/null
@@ -1 +0,0 @@
-export * from "./VERSION";
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
deleted file mode 100644
index 0c19b50d..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/AuthInterface.d.ts
+++ /dev/null
@@ -1,31 +0,0 @@
-import { EndpointOptions } from "./EndpointOptions";
-import { OctokitResponse } from "./OctokitResponse";
-import { RequestInterface } from "./RequestInterface";
-import { RequestParameters } from "./RequestParameters";
-import { Route } from "./Route";
-/**
- * Interface to implement complex authentication strategies for Octokit.
- * An object Implementing the AuthInterface can directly be passed as the
- * `auth` option in the Octokit constructor.
- *
- * For the official implementations of the most common authentication
- * strategies, see https://github.com/octokit/auth.js
- */
-export interface AuthInterface {
- (...args: AuthOptions): Promise;
- hook: {
- /**
- * Sends a request using the passed `request` instance
- *
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (request: RequestInterface, options: EndpointOptions): Promise>;
- /**
- * Sends a request using the passed `request` instance
- *
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
- * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (request: RequestInterface, route: Route, parameters?: RequestParameters): Promise>;
- };
-}
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
deleted file mode 100644
index a2c23078..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointDefaults.d.ts
+++ /dev/null
@@ -1,21 +0,0 @@
-import { RequestHeaders } from "./RequestHeaders";
-import { RequestMethod } from "./RequestMethod";
-import { RequestParameters } from "./RequestParameters";
-import { Url } from "./Url";
-/**
- * The `.endpoint()` method is guaranteed to set all keys defined by RequestParameters
- * as well as the method property.
- */
-export declare type EndpointDefaults = RequestParameters & {
- baseUrl: Url;
- method: RequestMethod;
- url?: Url;
- headers: RequestHeaders & {
- accept: string;
- "user-agent": string;
- };
- mediaType: {
- format: string;
- previews: string[];
- };
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
deleted file mode 100644
index df585bef..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointInterface.d.ts
+++ /dev/null
@@ -1,65 +0,0 @@
-import { EndpointDefaults } from "./EndpointDefaults";
-import { RequestOptions } from "./RequestOptions";
-import { RequestParameters } from "./RequestParameters";
-import { Route } from "./Route";
-import { Endpoints } from "./generated/Endpoints";
-export interface EndpointInterface {
- /**
- * Transforms a GitHub REST API endpoint into generic request options
- *
- * @param {object} endpoint Must set `url` unless it's set defaults. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (options: O & {
- method?: string;
- } & ("url" extends keyof D ? {
- url?: string;
- } : {
- url: string;
- })): RequestOptions & Pick;
- /**
- * Transforms a GitHub REST API endpoint into generic request options
- *
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
- * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (route: keyof Endpoints | R, parameters?: P): (R extends keyof Endpoints ? Endpoints[R]["request"] : RequestOptions) & Pick;
- /**
- * Object with current default route and parameters
- */
- DEFAULTS: D & EndpointDefaults;
- /**
- * Returns a new `endpoint` interface with new defaults
- */
- defaults: (newDefaults: O) => EndpointInterface;
- merge: {
- /**
- * Merges current endpoint defaults with passed route and parameters,
- * without transforming them into request options.
- *
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
- * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- *
- */
- (route: keyof Endpoints | R, parameters?: P): D & (R extends keyof Endpoints ? Endpoints[R]["request"] & Endpoints[R]["parameters"] : EndpointDefaults) & P;
- /**
- * Merges current endpoint defaults with passed route and parameters,
- * without transforming them into request options.
- *
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (options: P): EndpointDefaults & D & P;
- /**
- * Returns current default options.
- *
- * @deprecated use endpoint.DEFAULTS instead
- */
- (): D & EndpointDefaults;
- };
- /**
- * Stateless method to turn endpoint options into request options.
- * Calling `endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`.
- *
- * @param {object} options `method`, `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- parse: (options: O) => RequestOptions & Pick;
-}
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
deleted file mode 100644
index b1b91f11..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/EndpointOptions.d.ts
+++ /dev/null
@@ -1,7 +0,0 @@
-import { RequestMethod } from "./RequestMethod";
-import { Url } from "./Url";
-import { RequestParameters } from "./RequestParameters";
-export declare type EndpointOptions = RequestParameters & {
- method: RequestMethod;
- url: Url;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts
deleted file mode 100644
index cbbd5e8f..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Fetch.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Browser's fetch method (or compatible such as fetch-mock)
- */
-export declare type Fetch = any;
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
deleted file mode 100644
index 70e1a8d4..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/GetResponseTypeFromEndpointMethod.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-declare type Unwrap = T extends Promise ? U : T;
-declare type AnyFunction = (...args: any[]) => any;
-export declare type GetResponseTypeFromEndpointMethod = Unwrap>;
-export declare type GetResponseDataTypeFromEndpointMethod = Unwrap>["data"];
-export {};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
deleted file mode 100644
index 9a2dd7f6..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/OctokitResponse.d.ts
+++ /dev/null
@@ -1,17 +0,0 @@
-import { ResponseHeaders } from "./ResponseHeaders";
-import { Url } from "./Url";
-export declare type OctokitResponse = {
- headers: ResponseHeaders;
- /**
- * http response code
- */
- status: number;
- /**
- * URL of response after all redirects
- */
- url: Url;
- /**
- * This is the data you would see in https://developer.Octokit.com/v3/
- */
- data: T;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
deleted file mode 100644
index ac5aae0a..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestHeaders.d.ts
+++ /dev/null
@@ -1,15 +0,0 @@
-export declare type RequestHeaders = {
- /**
- * Avoid setting `headers.accept`, use `mediaType.{format|previews}` option instead.
- */
- accept?: string;
- /**
- * Use `authorization` to send authenticated request, remember `token ` / `bearer ` prefixes. Example: `token 1234567890abcdef1234567890abcdef12345678`
- */
- authorization?: string;
- /**
- * `user-agent` is set do a default and can be overwritten as needed.
- */
- "user-agent"?: string;
- [header: string]: string | number | undefined;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
deleted file mode 100644
index ef4d8d3a..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestInterface.d.ts
+++ /dev/null
@@ -1,34 +0,0 @@
-import { EndpointInterface } from "./EndpointInterface";
-import { OctokitResponse } from "./OctokitResponse";
-import { RequestParameters } from "./RequestParameters";
-import { Route } from "./Route";
-import { Endpoints } from "./generated/Endpoints";
-export interface RequestInterface {
- /**
- * Sends a request based on endpoint options
- *
- * @param {object} endpoint Must set `method` and `url`. Plus URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (options: O & {
- method?: string;
- } & ("url" extends keyof D ? {
- url?: string;
- } : {
- url: string;
- })): Promise>;
- /**
- * Sends a request based on endpoint options
- *
- * @param {string} route Request method + URL. Example: `'GET /orgs/:org'`
- * @param {object} [parameters] URL, query or body parameters, as well as `headers`, `mediaType.{format|previews}`, `request`, or `baseUrl`.
- */
- (route: keyof Endpoints | R, options?: R extends keyof Endpoints ? Endpoints[R]["parameters"] & RequestParameters : RequestParameters): R extends keyof Endpoints ? Promise : Promise>;
- /**
- * Returns a new `request` with updated route and parameters
- */
- defaults: (newDefaults: O) => RequestInterface;
- /**
- * Octokit endpoint API, see {@link https://github.com/octokit/endpoint.js|@octokit/endpoint}
- */
- endpoint: EndpointInterface;
-}
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
deleted file mode 100644
index e999c8d9..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestMethod.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * HTTP Verb supported by GitHub's REST API
- */
-export declare type RequestMethod = "DELETE" | "GET" | "HEAD" | "PATCH" | "POST" | "PUT";
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
deleted file mode 100644
index 97e2181c..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestOptions.d.ts
+++ /dev/null
@@ -1,14 +0,0 @@
-import { RequestHeaders } from "./RequestHeaders";
-import { RequestMethod } from "./RequestMethod";
-import { RequestRequestOptions } from "./RequestRequestOptions";
-import { Url } from "./Url";
-/**
- * Generic request options as they are returned by the `endpoint()` method
- */
-export declare type RequestOptions = {
- method: RequestMethod;
- url: Url;
- headers: RequestHeaders;
- body?: any;
- request?: RequestRequestOptions;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
deleted file mode 100644
index 692d193b..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestParameters.d.ts
+++ /dev/null
@@ -1,45 +0,0 @@
-import { RequestRequestOptions } from "./RequestRequestOptions";
-import { RequestHeaders } from "./RequestHeaders";
-import { Url } from "./Url";
-/**
- * Parameters that can be passed into `request(route, parameters)` or `endpoint(route, parameters)` methods
- */
-export declare type RequestParameters = {
- /**
- * Base URL to be used when a relative URL is passed, such as `/orgs/:org`.
- * If `baseUrl` is `https://enterprise.acme-inc.com/api/v3`, then the request
- * will be sent to `https://enterprise.acme-inc.com/api/v3/orgs/:org`.
- */
- baseUrl?: Url;
- /**
- * HTTP headers. Use lowercase keys.
- */
- headers?: RequestHeaders;
- /**
- * Media type options, see {@link https://developer.github.com/v3/media/|GitHub Developer Guide}
- */
- mediaType?: {
- /**
- * `json` by default. Can be `raw`, `text`, `html`, `full`, `diff`, `patch`, `sha`, `base64`. Depending on endpoint
- */
- format?: string;
- /**
- * Custom media type names of {@link https://developer.github.com/v3/media/|API Previews} without the `-preview` suffix.
- * Example for single preview: `['squirrel-girl']`.
- * Example for multiple previews: `['squirrel-girl', 'mister-fantastic']`.
- */
- previews?: string[];
- };
- /**
- * Pass custom meta information for the request. The `request` object will be returned as is.
- */
- request?: RequestRequestOptions;
- /**
- * Any additional parameter will be passed as follows
- * 1. URL parameter if `':parameter'` or `{parameter}` is part of `url`
- * 2. Query parameter if `method` is `'GET'` or `'HEAD'`
- * 3. Request body if `parameter` is `'data'`
- * 4. JSON in the request body in the form of `body[parameter]` unless `parameter` key is `'data'`
- */
- [parameter: string]: unknown;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
deleted file mode 100644
index 4482a8a4..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/RequestRequestOptions.d.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-import { Agent } from "http";
-import { Fetch } from "./Fetch";
-import { Signal } from "./Signal";
-/**
- * Octokit-specific request options which are ignored for the actual request, but can be used by Octokit or plugins to manipulate how the request is sent or how a response is handled
- */
-export declare type RequestRequestOptions = {
- /**
- * Node only. Useful for custom proxy, certificate, or dns lookup.
- */
- agent?: Agent;
- /**
- * Custom replacement for built-in fetch method. Useful for testing or request hooks.
- */
- fetch?: Fetch;
- /**
- * Use an `AbortController` instance to cancel a request. In node you can only cancel streamed requests.
- */
- signal?: Signal;
- /**
- * Node only. Request/response timeout in ms, it resets on redirect. 0 to disable (OS limit applies). `options.request.signal` is recommended instead.
- */
- timeout?: number;
- [option: string]: any;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
deleted file mode 100644
index c8fbe43f..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/ResponseHeaders.d.ts
+++ /dev/null
@@ -1,20 +0,0 @@
-export declare type ResponseHeaders = {
- "cache-control"?: string;
- "content-length"?: number;
- "content-type"?: string;
- date?: string;
- etag?: string;
- "last-modified"?: string;
- link?: string;
- location?: string;
- server?: string;
- status?: string;
- vary?: string;
- "x-github-mediatype"?: string;
- "x-github-request-id"?: string;
- "x-oauth-scopes"?: string;
- "x-ratelimit-limit"?: string;
- "x-ratelimit-remaining"?: string;
- "x-ratelimit-reset"?: string;
- [header: string]: string | number | undefined;
-};
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts
deleted file mode 100644
index 80790444..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Route.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * String consisting of an optional HTTP method and relative path or absolute URL. Examples: `'/orgs/:org'`, `'PUT /orgs/:org'`, `GET https://example.com/foo/bar`
- */
-export declare type Route = string;
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts
deleted file mode 100644
index 4ebcf24e..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Signal.d.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-/**
- * Abort signal
- *
- * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal
- */
-export declare type Signal = any;
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
deleted file mode 100644
index 405cbd23..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/StrategyInterface.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-import { AuthInterface } from "./AuthInterface";
-export interface StrategyInterface {
- (...args: StrategyOptions): AuthInterface;
-}
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts
deleted file mode 100644
index acaad633..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/Url.d.ts
+++ /dev/null
@@ -1,4 +0,0 @@
-/**
- * Relative or absolute URL. Examples: `'/orgs/:org'`, `https://example.com/foo/bar`
- */
-export declare type Url = string;
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts
deleted file mode 100644
index c24737b2..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/VERSION.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-export declare const VERSION = "2.16.2";
diff --git a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts b/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
deleted file mode 100644
index d10c4c92..00000000
--- a/node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types/dist-types/generated/Endpoints.d.ts
+++ /dev/null
@@ -1,41416 +0,0 @@
-import { OctokitResponse } from "../OctokitResponse";
-import { RequestHeaders } from "../RequestHeaders";
-import { RequestRequestOptions } from "../RequestRequestOptions";
-declare type RequiredPreview = {
- mediaType: {
- previews: [T, ...string[]];
- };
-};
-export interface Endpoints {
- /**
- * @see https://developer.github.com/v3/apps/#delete-an-installation
- */
- "DELETE /app/installations/:installation_id": {
- parameters: AppsDeleteInstallationEndpoint;
- request: AppsDeleteInstallationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/#unsuspend-an-installation
- */
- "DELETE /app/installations/:installation_id/suspended": {
- parameters: AppsUnsuspendInstallationEndpoint;
- request: AppsUnsuspendInstallationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-authorization
- */
- "DELETE /applications/:client_id/grant": {
- parameters: AppsDeleteAuthorizationEndpoint;
- request: AppsDeleteAuthorizationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-a-grant-for-an-application
- */
- "DELETE /applications/:client_id/grants/:access_token": {
- parameters: AppsRevokeGrantForApplicationEndpoint;
- request: AppsRevokeGrantForApplicationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/oauth_applications/#delete-an-app-token
- */
- "DELETE /applications/:client_id/token": {
- parameters: AppsDeleteTokenEndpoint;
- request: AppsDeleteTokenRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/oauth_applications/#revoke-an-authorization-for-an-application
- */
- "DELETE /applications/:client_id/tokens/:access_token": {
- parameters: AppsRevokeAuthorizationForApplicationEndpoint;
- request: AppsRevokeAuthorizationForApplicationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/oauth_authorizations/#delete-a-grant
- */
- "DELETE /applications/grants/:grant_id": {
- parameters: OauthAuthorizationsDeleteGrantEndpoint;
- request: OauthAuthorizationsDeleteGrantRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/oauth_authorizations/#delete-an-authorization
- */
- "DELETE /authorizations/:authorization_id": {
- parameters: OauthAuthorizationsDeleteAuthorizationEndpoint;
- request: OauthAuthorizationsDeleteAuthorizationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/gists/#delete-a-gist
- */
- "DELETE /gists/:gist_id": {
- parameters: GistsDeleteEndpoint;
- request: GistsDeleteRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/gists/comments/#delete-a-comment
- */
- "DELETE /gists/:gist_id/comments/:comment_id": {
- parameters: GistsDeleteCommentEndpoint;
- request: GistsDeleteCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/gists/#unstar-a-gist
- */
- "DELETE /gists/:gist_id/star": {
- parameters: GistsUnstarEndpoint;
- request: GistsUnstarRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/apps/installations/#revoke-an-installation-token
- */
- "DELETE /installation/token": {
- parameters: AppsRevokeInstallationTokenEndpoint;
- request: AppsRevokeInstallationTokenRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/activity/notifications/#delete-a-thread-subscription
- */
- "DELETE /notifications/threads/:thread_id/subscription": {
- parameters: ActivityDeleteThreadSubscriptionEndpoint;
- request: ActivityDeleteThreadSubscriptionRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-an-organization
- */
- "DELETE /orgs/:org/actions/runners/:runner_id": {
- parameters: ActionsDeleteSelfHostedRunnerFromOrgEndpoint;
- request: ActionsDeleteSelfHostedRunnerFromOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/blocking/#unblock-a-user
- */
- "DELETE /orgs/:org/blocks/:username": {
- parameters: OrgsUnblockUserEndpoint;
- request: OrgsUnblockUserRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/#remove-a-credential-authorization-for-an-organization
- */
- "DELETE /orgs/:org/credential-authorizations/:credential_id": {
- parameters: OrgsRemoveCredentialAuthorizationEndpoint;
- request: OrgsRemoveCredentialAuthorizationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/hooks/#delete-a-hook
- */
- "DELETE /orgs/:org/hooks/:hook_id": {
- parameters: OrgsDeleteHookEndpoint;
- request: OrgsDeleteHookRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/interactions/orgs/#remove-interaction-restrictions-for-an-organization
- */
- "DELETE /orgs/:org/interaction-limits": {
- parameters: InteractionsRemoveRestrictionsForOrgEndpoint;
- request: InteractionsRemoveRestrictionsForOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/members/#remove-a-member
- */
- "DELETE /orgs/:org/members/:username": {
- parameters: OrgsRemoveMemberEndpoint;
- request: OrgsRemoveMemberRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/members/#remove-organization-membership
- */
- "DELETE /orgs/:org/memberships/:username": {
- parameters: OrgsRemoveMembershipEndpoint;
- request: OrgsRemoveMembershipRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/migrations/orgs/#delete-an-organization-migration-archive
- */
- "DELETE /orgs/:org/migrations/:migration_id/archive": {
- parameters: MigrationsDeleteArchiveForOrgEndpoint;
- request: MigrationsDeleteArchiveForOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/migrations/orgs/#unlock-an-organization-repository
- */
- "DELETE /orgs/:org/migrations/:migration_id/repos/:repo_name/lock": {
- parameters: MigrationsUnlockRepoForOrgEndpoint;
- request: MigrationsUnlockRepoForOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/outside_collaborators/#remove-outside-collaborator
- */
- "DELETE /orgs/:org/outside_collaborators/:username": {
- parameters: OrgsRemoveOutsideCollaboratorEndpoint;
- request: OrgsRemoveOutsideCollaboratorRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/orgs/members/#conceal-a-users-membership
- */
- "DELETE /orgs/:org/public_members/:username": {
- parameters: OrgsConcealMembershipEndpoint;
- request: OrgsConcealMembershipRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#delete-team
- */
- "DELETE /orgs/:org/teams/:team_slug": {
- parameters: TeamsDeleteInOrgEndpoint;
- request: TeamsDeleteInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion
- */
- "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number": {
- parameters: TeamsDeleteDiscussionInOrgEndpoint;
- request: TeamsDeleteDiscussionInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment
- */
- "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number": {
- parameters: TeamsDeleteDiscussionCommentInOrgEndpoint;
- request: TeamsDeleteDiscussionCommentInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-team-discussion-comment-reaction
- */
- "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/comments/:comment_number/reactions/:reaction_id": {
- parameters: ReactionsDeleteForTeamDiscussionCommentEndpoint;
- request: ReactionsDeleteForTeamDiscussionCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-team-discussion-reaction
- */
- "DELETE /orgs/:org/teams/:team_slug/discussions/:discussion_number/reactions/:reaction_id": {
- parameters: ReactionsDeleteForTeamDiscussionEndpoint;
- request: ReactionsDeleteForTeamDiscussionRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/members/#remove-team-membership
- */
- "DELETE /orgs/:org/teams/:team_slug/memberships/:username": {
- parameters: TeamsRemoveMembershipInOrgEndpoint;
- request: TeamsRemoveMembershipInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#remove-team-project
- */
- "DELETE /orgs/:org/teams/:team_slug/projects/:project_id": {
- parameters: TeamsRemoveProjectInOrgEndpoint;
- request: TeamsRemoveProjectInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#remove-team-repository
- */
- "DELETE /orgs/:org/teams/:team_slug/repos/:owner/:repo": {
- parameters: TeamsRemoveRepoInOrgEndpoint;
- request: TeamsRemoveRepoInOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/projects/#delete-a-project
- */
- "DELETE /projects/:project_id": {
- parameters: ProjectsDeleteEndpoint;
- request: ProjectsDeleteRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/projects/collaborators/#remove-user-as-a-collaborator
- */
- "DELETE /projects/:project_id/collaborators/:username": {
- parameters: ProjectsRemoveCollaboratorEndpoint;
- request: ProjectsRemoveCollaboratorRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/projects/columns/#delete-a-project-column
- */
- "DELETE /projects/columns/:column_id": {
- parameters: ProjectsDeleteColumnEndpoint;
- request: ProjectsDeleteColumnRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/projects/cards/#delete-a-project-card
- */
- "DELETE /projects/columns/cards/:card_id": {
- parameters: ProjectsDeleteCardEndpoint;
- request: ProjectsDeleteCardRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-a-reaction-legacy
- */
- "DELETE /reactions/:reaction_id": {
- parameters: ReactionsDeleteLegacyEndpoint;
- request: ReactionsDeleteLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/#delete-a-repository
- */
- "DELETE /repos/:owner/:repo": {
- parameters: ReposDeleteEndpoint;
- request: ReposDeleteRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/actions/artifacts/#delete-an-artifact
- */
- "DELETE /repos/:owner/:repo/actions/artifacts/:artifact_id": {
- parameters: ActionsDeleteArtifactEndpoint;
- request: ActionsDeleteArtifactRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/actions/self-hosted-runners/#delete-a-self-hosted-runner-from-a-repository
- */
- "DELETE /repos/:owner/:repo/actions/runners/:runner_id": {
- parameters: ActionsDeleteSelfHostedRunnerFromRepoEndpoint;
- request: ActionsDeleteSelfHostedRunnerFromRepoRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/actions/workflow-runs/#delete-workflow-run-logs
- */
- "DELETE /repos/:owner/:repo/actions/runs/:run_id/logs": {
- parameters: ActionsDeleteWorkflowRunLogsEndpoint;
- request: ActionsDeleteWorkflowRunLogsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/actions/secrets/#delete-a-secret-from-a-repository
- */
- "DELETE /repos/:owner/:repo/actions/secrets/:name": {
- parameters: ActionsDeleteSecretFromRepoEndpoint;
- request: ActionsDeleteSecretFromRepoRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/#disable-automated-security-fixes
- */
- "DELETE /repos/:owner/:repo/automated-security-fixes": {
- parameters: ReposDisableAutomatedSecurityFixesEndpoint;
- request: ReposDisableAutomatedSecurityFixesRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-branch-protection
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection": {
- parameters: ReposRemoveBranchProtectionEndpoint;
- request: ReposRemoveBranchProtectionRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-admin-enforcement-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/enforce_admins": {
- parameters: ReposRemoveProtectedBranchAdminEnforcementEndpoint;
- request: ReposRemoveProtectedBranchAdminEnforcementRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-pull-request-review-enforcement-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/required_pull_request_reviews": {
- parameters: ReposRemoveProtectedBranchPullRequestReviewEnforcementEndpoint;
- request: ReposRemoveProtectedBranchPullRequestReviewEnforcementRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-required-signatures-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/required_signatures": {
- parameters: ReposRemoveProtectedBranchRequiredSignaturesEndpoint;
- request: ReposRemoveProtectedBranchRequiredSignaturesRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks": {
- parameters: ReposRemoveProtectedBranchRequiredStatusChecksEndpoint;
- request: ReposRemoveProtectedBranchRequiredStatusChecksRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-required-status-checks-contexts-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/required_status_checks/contexts": {
- parameters: ReposRemoveProtectedBranchRequiredStatusChecksContextsEndpoint;
- request: ReposRemoveProtectedBranchRequiredStatusChecksContextsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-restrictions-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions": {
- parameters: ReposRemoveProtectedBranchRestrictionsEndpoint;
- request: ReposRemoveProtectedBranchRestrictionsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-app-restrictions-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/apps": {
- parameters: ReposRemoveProtectedBranchAppRestrictionsEndpoint;
- request: ReposRemoveProtectedBranchAppRestrictionsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-team-restrictions-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/teams": {
- parameters: ReposRemoveProtectedBranchTeamRestrictionsEndpoint;
- request: ReposRemoveProtectedBranchTeamRestrictionsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/branches/#remove-user-restrictions-of-protected-branch
- */
- "DELETE /repos/:owner/:repo/branches/:branch/protection/restrictions/users": {
- parameters: ReposRemoveProtectedBranchUserRestrictionsEndpoint;
- request: ReposRemoveProtectedBranchUserRestrictionsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/collaborators/#remove-user-as-a-collaborator
- */
- "DELETE /repos/:owner/:repo/collaborators/:username": {
- parameters: ReposRemoveCollaboratorEndpoint;
- request: ReposRemoveCollaboratorRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/comments/#delete-a-commit-comment
- */
- "DELETE /repos/:owner/:repo/comments/:comment_id": {
- parameters: ReposDeleteCommitCommentEndpoint;
- request: ReposDeleteCommitCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-a-commit-comment-reaction
- */
- "DELETE /repos/:owner/:repo/comments/:comment_id/reactions/:reaction_id": {
- parameters: ReactionsDeleteForCommitCommentEndpoint;
- request: ReactionsDeleteForCommitCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/contents/#delete-a-file
- */
- "DELETE /repos/:owner/:repo/contents/:path": {
- parameters: ReposDeleteFileEndpoint;
- request: ReposDeleteFileRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/deployments/#delete-a-deployment
- */
- "DELETE /repos/:owner/:repo/deployments/:deployment_id": {
- parameters: ReposDeleteDeploymentEndpoint;
- request: ReposDeleteDeploymentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/downloads/#delete-a-download
- */
- "DELETE /repos/:owner/:repo/downloads/:download_id": {
- parameters: ReposDeleteDownloadEndpoint;
- request: ReposDeleteDownloadRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/git/refs/#delete-a-reference
- */
- "DELETE /repos/:owner/:repo/git/refs/:ref": {
- parameters: GitDeleteRefEndpoint;
- request: GitDeleteRefRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/hooks/#delete-a-hook
- */
- "DELETE /repos/:owner/:repo/hooks/:hook_id": {
- parameters: ReposDeleteHookEndpoint;
- request: ReposDeleteHookRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/migrations/source_imports/#cancel-an-import
- */
- "DELETE /repos/:owner/:repo/import": {
- parameters: MigrationsCancelImportEndpoint;
- request: MigrationsCancelImportRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/interactions/repos/#remove-interaction-restrictions-for-a-repository
- */
- "DELETE /repos/:owner/:repo/interaction-limits": {
- parameters: InteractionsRemoveRestrictionsForRepoEndpoint;
- request: InteractionsRemoveRestrictionsForRepoRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/invitations/#delete-a-repository-invitation
- */
- "DELETE /repos/:owner/:repo/invitations/:invitation_id": {
- parameters: ReposDeleteInvitationEndpoint;
- request: ReposDeleteInvitationRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/assignees/#remove-assignees-from-an-issue
- */
- "DELETE /repos/:owner/:repo/issues/:issue_number/assignees": {
- parameters: IssuesRemoveAssigneesEndpoint;
- request: IssuesRemoveAssigneesRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/labels/#remove-all-labels-from-an-issue
- */
- "DELETE /repos/:owner/:repo/issues/:issue_number/labels": {
- parameters: IssuesRemoveAllLabelsEndpoint;
- request: IssuesRemoveAllLabelsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/labels/#remove-a-label-from-an-issue
- */
- "DELETE /repos/:owner/:repo/issues/:issue_number/labels/:name": {
- parameters: IssuesRemoveLabelEndpoint;
- request: IssuesRemoveLabelRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/#unlock-an-issue
- */
- "DELETE /repos/:owner/:repo/issues/:issue_number/lock": {
- parameters: IssuesUnlockEndpoint;
- request: IssuesUnlockRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-an-issue-reaction
- */
- "DELETE /repos/:owner/:repo/issues/:issue_number/reactions/:reaction_id": {
- parameters: ReactionsDeleteForIssueEndpoint;
- request: ReactionsDeleteForIssueRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/comments/#delete-a-comment
- */
- "DELETE /repos/:owner/:repo/issues/comments/:comment_id": {
- parameters: IssuesDeleteCommentEndpoint;
- request: IssuesDeleteCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-an-issue-comment-reaction
- */
- "DELETE /repos/:owner/:repo/issues/comments/:comment_id/reactions/:reaction_id": {
- parameters: ReactionsDeleteForIssueCommentEndpoint;
- request: ReactionsDeleteForIssueCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/keys/#remove-a-deploy-key
- */
- "DELETE /repos/:owner/:repo/keys/:key_id": {
- parameters: ReposRemoveDeployKeyEndpoint;
- request: ReposRemoveDeployKeyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/labels/#delete-a-label
- */
- "DELETE /repos/:owner/:repo/labels/:name": {
- parameters: IssuesDeleteLabelEndpoint;
- request: IssuesDeleteLabelRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/issues/milestones/#delete-a-milestone
- */
- "DELETE /repos/:owner/:repo/milestones/:milestone_number": {
- parameters: IssuesDeleteMilestoneEndpoint;
- request: IssuesDeleteMilestoneRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/pages/#disable-a-pages-site
- */
- "DELETE /repos/:owner/:repo/pages": {
- parameters: ReposDisablePagesSiteEndpoint;
- request: ReposDisablePagesSiteRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/pulls/review_requests/#delete-a-review-request
- */
- "DELETE /repos/:owner/:repo/pulls/:pull_number/requested_reviewers": {
- parameters: PullsDeleteReviewRequestEndpoint;
- request: PullsDeleteReviewRequestRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/pulls/reviews/#delete-a-pending-review
- */
- "DELETE /repos/:owner/:repo/pulls/:pull_number/reviews/:review_id": {
- parameters: PullsDeletePendingReviewEndpoint;
- request: PullsDeletePendingReviewRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/pulls/comments/#delete-a-comment
- */
- "DELETE /repos/:owner/:repo/pulls/comments/:comment_id": {
- parameters: PullsDeleteCommentEndpoint;
- request: PullsDeleteCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/reactions/#delete-a-pull-request-comment-reaction
- */
- "DELETE /repos/:owner/:repo/pulls/comments/:comment_id/reactions/:reaction_id": {
- parameters: ReactionsDeleteForPullRequestCommentEndpoint;
- request: ReactionsDeleteForPullRequestCommentRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/releases/#delete-a-release
- */
- "DELETE /repos/:owner/:repo/releases/:release_id": {
- parameters: ReposDeleteReleaseEndpoint;
- request: ReposDeleteReleaseRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/releases/#delete-a-release-asset
- */
- "DELETE /repos/:owner/:repo/releases/assets/:asset_id": {
- parameters: ReposDeleteReleaseAssetEndpoint;
- request: ReposDeleteReleaseAssetRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/activity/watching/#delete-a-repository-subscription
- */
- "DELETE /repos/:owner/:repo/subscription": {
- parameters: ActivityDeleteRepoSubscriptionEndpoint;
- request: ActivityDeleteRepoSubscriptionRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/repos/#disable-vulnerability-alerts
- */
- "DELETE /repos/:owner/:repo/vulnerability-alerts": {
- parameters: ReposDisableVulnerabilityAlertsEndpoint;
- request: ReposDisableVulnerabilityAlertsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/scim/#remove-a-user-from-the-organization
- */
- "DELETE /scim/v2/organizations/:org/Users/:scim_user_id": {
- parameters: ScimRemoveUserFromOrgEndpoint;
- request: ScimRemoveUserFromOrgRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#delete-team-legacy
- */
- "DELETE /teams/:team_id": {
- parameters: TeamsDeleteLegacyEndpoint;
- request: TeamsDeleteLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/discussions/#delete-a-discussion-legacy
- */
- "DELETE /teams/:team_id/discussions/:discussion_number": {
- parameters: TeamsDeleteDiscussionLegacyEndpoint;
- request: TeamsDeleteDiscussionLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/discussion_comments/#delete-a-comment-legacy
- */
- "DELETE /teams/:team_id/discussions/:discussion_number/comments/:comment_number": {
- parameters: TeamsDeleteDiscussionCommentLegacyEndpoint;
- request: TeamsDeleteDiscussionCommentLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/members/#remove-team-member-legacy
- */
- "DELETE /teams/:team_id/members/:username": {
- parameters: TeamsRemoveMemberLegacyEndpoint;
- request: TeamsRemoveMemberLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/members/#remove-team-membership-legacy
- */
- "DELETE /teams/:team_id/memberships/:username": {
- parameters: TeamsRemoveMembershipLegacyEndpoint;
- request: TeamsRemoveMembershipLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#remove-team-project-legacy
- */
- "DELETE /teams/:team_id/projects/:project_id": {
- parameters: TeamsRemoveProjectLegacyEndpoint;
- request: TeamsRemoveProjectLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/teams/#remove-team-repository-legacy
- */
- "DELETE /teams/:team_id/repos/:owner/:repo": {
- parameters: TeamsRemoveRepoLegacyEndpoint;
- request: TeamsRemoveRepoLegacyRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/users/blocking/#unblock-a-user
- */
- "DELETE /user/blocks/:username": {
- parameters: UsersUnblockEndpoint;
- request: UsersUnblockRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/users/emails/#delete-email-addresses
- */
- "DELETE /user/emails": {
- parameters: UsersDeleteEmailsEndpoint;
- request: UsersDeleteEmailsRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/users/followers/#unfollow-a-user
- */
- "DELETE /user/following/:username": {
- parameters: UsersUnfollowEndpoint;
- request: UsersUnfollowRequestOptions;
- response: OctokitResponse;
- };
- /**
- * @see https://developer.github.com/v3/users/gpg_keys/#delete-a-gpg-key
- */
- "DELETE /user/gpg_keys/:gpg_key_id": {
- parameters: UsersDeleteGpgKeyEndpoint;
- request: UsersDeleteGpgKeyRequestOptions;
- response: OctokitResponse