{"_id":"@octokit-next/endpoint","_rev":"2957304","name":"@octokit-next/endpoint","description":"Turns REST API endpoints into generic request options","dist-tags":{"latest":"2.7.0"},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"time":{"modified":"2023-04-27T07:42:45.000Z","created":"2021-10-06T20:45:35.763Z","2.7.0":"2022-12-22T07:40:31.842Z","2.6.1":"2022-12-21T23:22:46.038Z","2.6.0":"2022-10-13T23:17:00.871Z","2.5.2":"2022-10-11T05:18:00.513Z","2.5.1":"2022-10-10T22:06:14.662Z","2.5.0":"2022-10-08T22:22:35.089Z","2.4.1":"2022-10-06T05:06:56.412Z","2.4.0":"2022-10-05T06:19:04.581Z","2.3.1":"2022-10-03T22:21:02.355Z","2.3.0":"2022-09-28T21:01:30.892Z","2.2.0":"2022-09-27T00:42:27.346Z","2.1.1":"2022-09-23T23:08:27.296Z","2.1.0":"2022-09-23T23:04:02.414Z","2.0.1":"2022-09-21T16:26:46.144Z","2.0.0":"2022-09-14T22:19:08.035Z","1.15.6":"2022-09-14T20:45:35.302Z","1.15.5":"2022-07-31T23:23:53.124Z","1.15.4":"2022-07-19T22:46:12.500Z","1.15.3":"2022-07-12T20:07:45.806Z","1.15.2":"2022-07-06T15:37:50.336Z","1.15.1":"2022-07-06T15:25:24.603Z","1.15.0":"2021-10-11T19:56:48.646Z","1.14.0":"2021-10-06T20:45:35.763Z"},"users":{},"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"versions":{"2.7.0":{"name":"@octokit-next/endpoint","version":"2.7.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 --100 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.7.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"gitHead":"8cfde9b5ffb479b2eaa2ca3a0b475fe6e05037c0","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.7.0","_nodeVersion":"16.18.1","_npmVersion":"8.19.3","dist":{"shasum":"193e48a065f4a5ada9cae666e5100d9d327ae159","size":12621,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.7.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.7.0.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.7.0_1671694831722_0.4530258918275438"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-22T07:40:42.137Z","publish_time":1671694831842,"_cnpm_publish_time":1671694831842},"2.6.1":{"name":"@octokit-next/endpoint","version":"2.6.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 --100 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.6.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"gitHead":"6be94a4d92334f34618f7b76e33b1f9e1f85f398","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.6.1","_nodeVersion":"16.18.1","_npmVersion":"8.19.3","dist":{"shasum":"118debeb645936dbda2efe31dca3d777fd1e516c","size":12651,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.6.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.6.1.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.6.1_1671664965875_0.30395035329028675"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-21T23:32:59.844Z","publish_time":1671664966038,"_cnpm_publish_time":1671664966038},"2.6.0":{"name":"@octokit-next/endpoint","version":"2.6.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 --100 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.6.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"gitHead":"58490d8e7896dd2567cec3c14804dbd4ec9eaa50","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.6.0","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"c54a510d64c44b2911fd2af392ab90453e65ceda","size":12649,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.6.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.6.0.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.6.0_1665703020709_0.5069811175356671"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-12-21T23:32:58.296Z","publish_time":1665703020871,"_cnpm_publish_time":1665703020871},"2.5.2":{"name":"@octokit-next/endpoint","version":"2.5.2","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 --100 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.5.2","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"gitHead":"86690aab9a72a86c0af518e241679f589746b884","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.5.2","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"c671f51881c238b845ae962e9b22b39435e9f74d","size":12651,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.5.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.5.2.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.5.2_1665465480318_0.6240443536913001"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-11T05:22:10.309Z","publish_time":1665465480513,"_cnpm_publish_time":1665465480513},"2.5.1":{"name":"@octokit-next/endpoint","version":"2.5.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.5.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"25a0f3991f09351e8c129801bbf23519df0a35aa","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.5.1","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"76d8f58bdf9b5c329f1d465522a8a2478b17fea8","size":12819,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.5.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.5.1.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.5.1_1665439574320_0.351972133682138"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-10T22:11:40.443Z","publish_time":1665439574662,"_cnpm_publish_time":1665439574662},"2.5.0":{"name":"@octokit-next/endpoint","version":"2.5.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.5.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"a9a2439dd6efe6ae95f8d9ad015b3733162cf177","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.5.0","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"3088c748f4942f17a92e8727144cbed4127c2e46","size":12817,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.5.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.5.0.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.5.0_1665267754867_0.24066586199720907"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-08T22:23:44.493Z","publish_time":1665267755089,"_cnpm_publish_time":1665267755089},"2.4.1":{"name":"@octokit-next/endpoint","version":"2.4.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.4.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"c591f0679524fede19e6aa6a703afd91d7f365cc","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.4.1","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"89ed63d800fa087866248937f25664d0d3308b04","size":12816,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.4.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.4.1.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.4.1_1665032816213_0.7868347823441579"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-06T05:07:06.272Z","publish_time":1665032816412,"_cnpm_publish_time":1665032816412},"2.4.0":{"name":"@octokit-next/endpoint","version":"2.4.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.4.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"8c6001d27e21f8d2028d3c1fc632634556dfc259","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.4.0","_nodeVersion":"16.17.1","_npmVersion":"8.19.2","dist":{"shasum":"00cccc81270aefff20468d3d8a51d88c28132fc9","size":12813,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.4.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.4.0.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.4.0_1664950744358_0.8456445111268545"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-05T06:19:09.416Z","publish_time":1664950744581,"_cnpm_publish_time":1664950744581},"2.3.1":{"name":"@octokit-next/endpoint","version":"2.3.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 ava test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.3.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"80f7b7c3e9dfa6c338e28d5d9625602af3ca3eab","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.3.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"f526625062f59738207fb750333482423fd27e65","size":12816,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.3.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.3.1.tgz"},"_npmUser":{"name":"octokit-next-bot","email":"octokit-next-bot@martynus.net"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.3.1_1664835662165_0.94533223857554"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-10-03T22:21:26.424Z","publish_time":1664835662355,"_cnpm_publish_time":1664835662355},"2.3.0":{"name":"@octokit-next/endpoint","version":"2.3.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.3.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"3cb962c8a66f26033a5f6b66e75605c31f9439b8","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.3.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"00f219a95f0dfd3e31e66019a5c0d606a6f23730","size":12886,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.3.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.3.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.3.0_1664398890663_0.3641978672639812"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-30T00:10:37.477Z","publish_time":1664398890892,"_cnpm_publish_time":1664398890892},"2.2.0":{"name":"@octokit-next/endpoint","version":"2.2.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"dependencies":{"@octokit-next/types":"2.2.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"2c51138f57e26528b652c64abb2ef93e89819a0b","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.2.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"6644243baf68f2730958f2981d3dc4321d09a5b2","size":12798,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.2.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.2.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.2.0_1664239347131_0.939477548279344"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-30T00:10:35.894Z","publish_time":1664239347346,"_cnpm_publish_time":1664239347346},"2.1.1":{"name":"@octokit-next/endpoint","version":"2.1.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"2.1.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"e6f5d748e51f86e1fbebe0b74b08116a03e1b043","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.1.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"e1944ffb86b688555c4d5e1578ba62cc26dd5bb5","size":12797,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.1.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.1.1.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.1.1_1663974507031_0.7521129141612393"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-23T23:08:45.638Z","publish_time":1663974507296,"_cnpm_publish_time":1663974507296},"2.1.0":{"name":"@octokit-next/endpoint","version":"2.1.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"2.1.0","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"488576570955dd2f252f9814361894df62772428","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.1.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"15a006ac39ff175e22fd5578fdde85ee1b422cd1","size":12795,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.1.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.1.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.1.0_1663974242209_0.779645712456017"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-23T23:04:45.344Z","publish_time":1663974242414,"_cnpm_publish_time":1663974242414},"2.0.1":{"name":"@octokit-next/endpoint","version":"2.0.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"2.0.1","is-plain-obj":"^4.0.0","type-fest":"^3.0.0","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"75707238c8c9e7856b316912aa0b9aeb612ebb35","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.0.1","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"3cb1e0f54738ea40759e9833de486e21cf11d613","size":12796,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.0.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.0.1.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.0.1_1663777605929_0.43935966835919293"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-21T17:13:47.482Z","publish_time":1663777606144,"_cnpm_publish_time":1663777606144},"2.0.0":{"name":"@octokit-next/endpoint","version":"2.0.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"2.0.0","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"511e8390664b6a8d69c9b162d24134ead968246a","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@2.0.0","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"bc9886cf21938e54d27c52b2e1ccdc53407311a6","size":12798,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-2.0.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-2.0.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_2.0.0_1663193947826_0.14064592156082"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-14T22:19:17.416Z","publish_time":1663193948035,"_cnpm_publish_time":1663193948035},"1.15.6":{"name":"@octokit-next/endpoint","version":"1.15.6","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.6","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"af7fdecc699591c4045f9e96b8d1c41869f60703","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.6","_nodeVersion":"16.17.0","_npmVersion":"8.19.2","dist":{"shasum":"cafa5ff5223115a003d7d87820564095da13ccaf","size":12803,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.6.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.6.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.6_1663188335062_0.5093524385142458"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-09-14T20:45:51.576Z","publish_time":1663188335302,"_cnpm_publish_time":1663188335302},"1.15.5":{"name":"@octokit-next/endpoint","version":"1.15.5","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.5","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"1c521a0110e9490b39e501cd27f05b281f7f32e7","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.5","_nodeVersion":"16.16.0","_npmVersion":"8.15.1","dist":{"shasum":"7c3bde1428ac63eff2a6345b2d90dc8a0cb73bbf","size":12802,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.5.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.5.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.5_1659309832917_0.16271555952826944"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-31T23:23:57.791Z","publish_time":1659309833124,"_cnpm_publish_time":1659309833124},"1.15.4":{"name":"@octokit-next/endpoint","version":"1.15.4","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.4","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"319e49b4aa9f01eb7fc48e02eae3b647b6bb375f","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.4","_nodeVersion":"16.16.0","_npmVersion":"8.14.0","dist":{"shasum":"1dc9411f42eb737e56a04f8f2b313e6147301ea7","size":12801,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.4.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.4.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.4_1658270772369_0.338672461098835"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-19T22:46:40.755Z","publish_time":1658270772500,"_cnpm_publish_time":1658270772500},"1.15.3":{"name":"@octokit-next/endpoint","version":"1.15.3","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.3","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"e12016071eb722f7eeb44391464a0273b8f5e733","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.3","_nodeVersion":"16.16.0","_npmVersion":"8.13.2","dist":{"shasum":"5a9aa187388c6e49292ae74b3840709ac991ab1c","size":12803,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.3.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.3.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.3_1657656465661_0.3733134078270097"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-12T20:08:27.585Z","publish_time":1657656465806,"_cnpm_publish_time":1657656465806},"1.15.2":{"name":"@octokit-next/endpoint","version":"1.15.2","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.2","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"5bb6e7433e36cc568c6b9b4fc6fcb1ca602aa179","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.2","_nodeVersion":"16.15.1","_npmVersion":"8.13.2","dist":{"shasum":"6b35c222df3ee2208e024220a3a24308ee965183","size":12803,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.2.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.2.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.2_1657121870177_0.23570700928280686"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-06T16:29:53.536Z","publish_time":1657121870336,"_cnpm_publish_time":1657121870336},"1.15.1":{"name":"@octokit-next/endpoint","version":"1.15.1","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.1","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"023602870f4bb54f019b2b833c8d366f484ca41d","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.1","_nodeVersion":"16.15.1","_npmVersion":"8.13.2","dist":{"shasum":"282bb6196704d6c25ec65319c3d71face87c14a7","size":12803,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.1.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.1.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.1_1657121124432_0.9828580017229351"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2022-07-06T16:29:51.827Z","publish_time":1657121124603,"_cnpm_publish_time":1657121124603},"1.15.0":{"name":"@octokit-next/endpoint","version":"1.15.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.15.0","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"bc823233ea4f8798604f863280d4d48b3b575f0f","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.15.0","_nodeVersion":"16.11.0","_npmVersion":"7.24.2","dist":{"shasum":"88d4460af5776da958db75db80f679070dfe1029","size":12801,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.15.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.15.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.15.0_1633982208451_0.8131290284463"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T21:28:06.988Z","publish_time":1633982208646,"_cnpm_publish_time":1633982208646},"1.14.0":{"name":"@octokit-next/endpoint","version":"1.14.0","publishConfig":{"access":"public"},"type":"module","description":"Turns REST API endpoints into generic request options","exports":"./index.js","types":"./index.d.ts","scripts":{"test":"npm run test:code && npm run test:types","test:code":"c8 uvu test","test:types":"tsd"},"repository":{"type":"git","url":"git+https://github.com/octokit/octokit-next.js.git","directory":"packages/endpoint"},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","keywords":["octokit","github","api"],"author":{"name":"Gregor Martynus","url":"https://github.com/gr2m"},"license":"MIT","dependencies":{"@octokit-next/types":"1.14.0","is-plain-obj":"^4.0.0","type-fest":"^2.3.4","universal-user-agent":"^7.0.0"},"c8":{"check-coverage":true,"lines":100,"functions":100,"branches":100,"statements":100},"gitHead":"95d06cf1bb31ce90aabd4cd08ee728ff5a79ab41","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"_id":"@octokit-next/endpoint@1.14.0","_nodeVersion":"16.10.0","_npmVersion":"7.24.2","dist":{"shasum":"82f7b5bb1c70bbd7bde82421f1df9b83d4b4cb91","size":12106,"noattachment":false,"key":"/@octokit-next/endpoint/-/@octokit-next/endpoint-1.14.0.tgz","tarball":"http://registry.cnpm.dingdandao.com/@octokit-next/endpoint/download/@octokit-next/endpoint-1.14.0.tgz"},"_npmUser":{"name":"octokitbot","email":"security+octokitbot@github.com"},"directories":{},"maintainers":[{"name":"gr2m","email":"gregor@martynus.net"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/endpoint_1.14.0_1633553135590_0.752054358273569"},"_hasShrinkwrap":false,"_cnpmcore_publish_time":"2021-12-27T21:28:05.331Z","publish_time":1633553135763,"_cnpm_publish_time":1633553135763}},"readme":"# endpoint.js\n\n> Turns GitHub REST API endpoints into generic request options\n\n[![@latest](https://img.shields.io/npm/v/@octokit-next/endpoint.svg)](https://www.npmjs.com/package/@octokit-next/endpoint)\n[![Build Status](https://github.com/octokit-next/endpoint.js/workflows/Test/badge.svg)](https://github.com/octokit-next/endpoint.js/actions/workflows/test.yml?query=branch%3Amaster)\n\n`@octokit-next/endpoint` combines [GitHub REST API routes](https://docs.github.com/rest) with parameters and turns them into generic request options that can be used in any request library.\n\n## Usage\n\n<table>\n<tbody valign=top align=left>\n<tr><th>\nBrowsers\n</th><td width=100%>\nLoad <code>@octokit-next/endpoint</code> directly from <a href=\"https://cdn.skypack.dev\">cdn.skypack.dev</a>\n        \n```html\n<script type=\"module\">\nimport { endpoint } from \"https://cdn.skypack.dev/@octokit-next/endpoint\";\n</script>\n```\n\n</td></tr>\n<tr><th>\nNode\n</th><td>\n\nInstall with <code>npm install @octokit-next/endpoint</code>\n\n```js\nimport { endpoint } from \"@octokit-next/endpoint\";\n```\n\n</td></tr>\n<tr><th>\nDeno\n</th><td>\n\nLoad <code>@octokit-next/endpoint</code> directly from <a href=\"https://cdn.skypack.dev\">cdn.skypack.dev</a>, including types.\n\n```js\nimport { endpoint } from \"https://cdn.skypack.dev/@octokit-next/endpoint?dts\";\n```\n\n</td></tr>\n</tbody>\n</table>\n\nExample for [List organization repositories](https://docs.github.com/rest/reference/repos#list-organization-repositories)\n\n```js\nconst requestOptions = endpoint(\"GET /orgs/{org}/repos\", {\n  headers: {\n    authorization: \"token 0000000000000000000000000000000000000001\",\n  },\n  org: \"octokit\",\n  type: \"private\",\n});\n```\n\nThe resulting `requestOptions` looks as follows\n\n```json\n{\n  \"method\": \"GET\",\n  \"url\": \"https://api.github.com/orgs/octokit/repos?type=private\",\n  \"headers\": {\n    \"accept\": \"application/vnd.github.v3+json\",\n    \"authorization\": \"token 0000000000000000000000000000000000000001\",\n    \"user-agent\": \"octokit-next/endpoint.js v1.2.3\"\n  }\n}\n```\n\nYou can pass `requestOptions` to common request libraries\n\n```js\nconst { url, ...options } = requestOptions;\n// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\nfetch(url, options);\n// https://github.com/sindresorhus/got\ngot[options.method](url, options);\n// https://github.com/axios/axios\naxios(requestOptions);\n```\n\nFor `PUT/POST` endpoints with request body parameters, the code is slightly different\n\n```js\nconst { url, data, ...options } = requestOptions;\n// https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API/Using_Fetch\nfetch(url, { ...options, body: JSON.stringify(data) });\n// https://github.com/sindresorhus/got\ngot[options.method](url, { ...options, json: data });\n// https://github.com/axios/axios\naxios(requestOptions);\n```\n\n## API\n\n### `endpoint(route, options)` or `endpoint(options)`\n\n<table>\n  <thead align=left>\n    <tr>\n      <th>\n        name\n      </th>\n      <th>\n        type\n      </th>\n      <th width=100%>\n        description\n      </th>\n    </tr>\n  </thead>\n  <tbody align=left valign=top>\n    <tr>\n      <th>\n        <code>route</code>\n      </th>\n      <td>\n        String\n      </td>\n      <td>\n        If set, it has to be a string consisting of URL and the request method, e.g., <code>GET /orgs/{org}</code>. If it’s set to a URL, only the method defaults to <code>GET</code>.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.method</code>\n      </th>\n      <td>\n        String\n      </td>\n      <td>\n        <strong>Required unless <code>route</code> is set.</strong> Any supported <a href=\"https://docs.github.com/rest/overview/resources-in-the-rest-api#http-verbs\">http verb</a>. <em>Defaults to <code>GET</code></em>.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.url</code>\n      </th>\n      <td>\n        String\n      </td>\n      <td>\n        <strong>Required unless <code>route</code> is set.</strong> A path or full URL which may contain <code>:variable</code> or <code>{variable}</code> placeholders,\n        e.g., <code>/orgs/{org}/repos</code>.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.baseUrl</code>\n      </th>\n      <td>\n        String\n      </td>\n      <td>\n        <em>Defaults to <code>https://api.github.com</code></em>.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.headers</code>\n      </th>\n      <td>\n        Object\n      </td>\n      <td>\n        Custom headers. Passed headers are merged with defaults:<br>\n        <em><code>headers['user-agent']</code> defaults to <code>octokit-endpoint.js/1.2.3</code> (where <code>1.2.3</code> is the released version)</em>.<br>\n        <em><code>headers['accept']</code> defaults to <code>application/vnd.github.v3+json</code></em>.<br>\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.mediaType.format</code>\n      </th>\n      <td>\n        String\n      </td>\n      <td>\n        Media type param, such as <code>raw</code>, <code>diff</code>, or <code>text+json</code>. See <a href=\"https://docs.github.com/rest/overview/media-types\">Media Types</a>. Setting <code>options.mediaType.format</code> will amend the <code>headers.accept</code> value.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.mediaType.previews</code>\n      </th>\n      <td>\n        Array of Strings\n      </td>\n      <td>\n        Name of previews, such as <code>mercy</code>, <code>symmetra</code>, or <code>scarlet-witch</code>. See <a href=\"https://docs.github.com/rest/overview/api-previews\">API Previews</a>. If <code>options.mediaType.previews</code> was set as default, the new previews will be merged into the default ones. Setting <code>options.mediaType.previews</code> will amend the <code>headers.accept</code> value. <code>options.mediaType.previews</code> will be merged with an existing array set using <code>.withDefaults()</code>.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.data</code>\n      </th>\n      <td>\n        Any\n      </td>\n      <td>\n        Set request body directly instead of setting it to JSON based on additional parameters. See <a href=\"#data-parameter\">\"The <code>data</code> parameter\"</a> below.\n      </td>\n    </tr>\n    <tr>\n      <th>\n        <code>options.request</code>\n      </th>\n      <td>\n        Object\n      </td>\n      <td>\n        Pass custom meta information for the request. The <code>request</code> object will be returned as is.\n      </td>\n    </tr>\n  </tbody>\n</table>\n\nAll other options will be passed depending on the `method` and `url` options.\n\n1. If the option key has a placeholder in the `url`, it will be used as the replacement. For example, if the passed options are `{url: '/orgs/{org}/repos', org: 'foo'}` the returned `options.url` is `https://api.github.com/orgs/foo/repos`.\n2. If the `method` is `GET` or `HEAD`, the option is passed as a query parameter.\n3. Otherwise, the parameter is passed in the request body as a JSON key.\n\n**Result**\n\n`endpoint()` is a synchronous method and returns an object with the following keys:\n\n<table>\n  <thead align=left>\n    <tr>\n      <th>\n        key\n      </th>\n      <th>\n        type\n      </th>\n      <th width=100%>\n        description\n      </th>\n    </tr>\n  </thead>\n  <tbody align=left valign=top>\n    <tr>\n      <th><code>method</code></th>\n      <td>String</td>\n      <td>The http method. Always lowercase.</td>\n    </tr>\n    <tr>\n      <th><code>url</code></th>\n      <td>String</td>\n      <td>The url with placeholders replaced with passed parameters.</td>\n    </tr>\n    <tr>\n      <th><code>headers</code></th>\n      <td>Object</td>\n      <td>All header names are lowercased.</td>\n    </tr>\n    <tr>\n      <th><code>body</code></th>\n      <td>Any</td>\n      <td>The request body if one is present. Only for <code>PATCH</code>, <code>POST</code>, <code>PUT</code>, <code>DELETE</code> requests.</td>\n    </tr>\n    <tr>\n      <th><code>request</code></th>\n      <td>Object</td>\n      <td>Request meta option, it will be returned as it was passed into <code>endpoint()</code></td>\n    </tr>\n  </tbody>\n</table>\n\n### `endpoint.withDefaults()`\n\nOverride or set default options. Example:\n\n```js\nconst myEndpoint = endpoint.withDefaults({\n  baseUrl: \"https://github-enterprise.acme-inc.com/api/v3\",\n  headers: {\n    \"user-agent\": \"myApp/1.2.3\",\n    authorization: `token 0000000000000000000000000000000000000001`,\n  },\n});\n\nconst options = myEndpoint(`GET /orgs/{org}/repos`, {\n  org: \"my-project\",\n  per_page: 100,\n});\n// {\n//   \"method\": \"GET\",\n//   \"url\": \"https://api.github.com/orgs/my-project/repos?per_page=100\",\n//   \"headers\": {\n//     \"accept\": \"application/vnd.github.v3+json\",\n//     \"authorization\": \"token 0000000000000000000000000000000000000001\",\n//     \"user-agent\": \"myApp/1.2.3\"\n//   }\n// }\n```\n\nYou can call `.withDefaults()` again on the returned method, the defaults will cascade.\n\n```js\nconst myEndpointWithToken2 = myEndpoint.withDefaults({\n  headers: {\n    authorization: `token 0000000000000000000000000000000000000002`,\n  },\n});\n\nconst options2 = myEndpointWithToken2(`GET /orgs/{org}/repos`, {\n  org: \"my-project\",\n  per_page: 100,\n});\n// {\n//   \"method\": \"GET\",\n//   \"url\": \"https://api.github.com/orgs/my-project/repos?per_page=100\",\n//   \"headers\": {\n//     \"accept\": \"application/vnd.github.v3+json\",\n//     \"authorization\": \"token 0000000000000000000000000000000000000002\",\n//     \"user-agent\": \"myApp/1.2.3\"\n//   }\n// }\n```\n\n### `endpoint.DEFAULTS`\n\nThe current default options.\n\n```js\nendpoint.DEFAULTS.baseUrl; // https://api.github.com\nconst myEndpoint = endpoint.withDefaults({\n  baseUrl: \"https://github-enterprise.acme-inc.com/api/v3\",\n});\nmyEndpoint.DEFAULTS.baseUrl; // https://github-enterprise.acme-inc.com/api/v3\n```\n\n### `endpoint.merge(route, options)` or `endpoint.merge(options)`\n\nGet the defaulted endpoint options, but without parsing them into request options:\n\n```js\nconst myProjectEndpoint = endpoint.withDefaults({\n  baseUrl: \"https://github-enterprise.acme-inc.com/api/v3\",\n  headers: {\n    \"user-agent\": \"myApp/1.2.3\",\n  },\n  org: \"my-project\",\n});\nmyProjectEndpoint.merge(\"GET /orgs/{org}/repos\", {\n  headers: {\n    authorization: `token 0000000000000000000000000000000000000001`,\n  },\n  org: \"my-secret-project\",\n  type: \"private\",\n});\n\n// {\n//   baseUrl: 'https://github-enterprise.acme-inc.com/api/v3',\n//   method: 'GET',\n//   url: '/orgs/{org}/repos',\n//   headers: {\n//     accept: 'application/vnd.github.v3+json',\n//     authorization: `token 0000000000000000000000000000000000000001`,\n//     'user-agent': 'myApp/1.2.3'\n//   },\n//   org: 'my-secret-project',\n//   type: 'private'\n// }\n```\n\n### `endpoint.parse()`\n\nStateless method to turn endpoint options into request options. Calling\n`endpoint(options)` is the same as calling `endpoint.parse(endpoint.merge(options))`.\n\n## Types\n\n`@octokit-next/endpoint` supports types for all REST API endpoints across all supported targets (github.com, GitHub AE, GitHub Enterprise Server).\n\nIn order to take advantage of the types, you have to install the `@octokit-next/types-rest-api*` packages for the platform(s) you want to target.\n\nFor example, to get types for all of github.com's REST API endpoints, use `@octokit-next/types-rest-api`.\n\n```js\n/// <reference types=\"@octokit-next/types-rest-api\" />\n\nimport { endpoint } from \"@octokit-next/endpoint\";\n\nendpoint(\"\");\n// Set cursor in the route argument and press `Ctrl + Space` to get a type ahead for all 700+ REST API endpoints\n\nconst requestOptions = endpoint(\"GET /orgs/{org}/repos\", { org: \"octokit\" });\n// requestOptions.method is now typed as `\"GET\"` instead of `string`\n// requestOptions.url is now typed as `\"/orgs/{org}/repos\"` instead of `string`\n// requestOptions.data does not exist on types.\n```\n\nTo support GitHub Enterprise Server 3.0 and all new versions, import `@octokit-next/types-rest-api-ghes-3.0` and set the request version:\n\n```js\n/// <reference types=\"@octokit-next/types-rest-api-ghes-3.0\" />\n\nimport { endpoint } from \"@octokit-next/endpoint\";\n\nendpoint(\"\", {\n  request: {\n    version: \"ghes-3.0\",\n  },\n});\n// Set cursor in the route argument and press `Ctrl + Space` to get a type ahead for all GHES 3.0 REST API endpoints\n\nconst requestOptions = endpoint(\"GET /admin/users/{username}\", {\n  request: {\n    version: \"ghes-3.0\",\n  },\n  username: \"octocat\",\n});\n// requestOptions.method is now typed as `\"GET\"` instead of `string`\n// requestOptions.url is now typed as `\"/admin/users/{username}\"` instead of `string`\n// requestOptions.data does not exist on types.\n```\n\nTypes in the `@octokit-next/types-rest-api-ghes` packages are additive. So you can set `request.version` to `ghes-3.1` and `ghes-3.2` as well.\n\nThe version can be set using `endpoint.withDefaults()` as well. You can override the version in each `endpoint()` call.\n\n```js\n/// <reference types=\"@octokit-next/types-rest-api-ghes-3.0\" />\n\nimport { endpoint } from \"@octokit-next/endpoint\";\n\nconst ghes30endpoint = endpoint.withDefaults({\n  request: {\n    version: \"ghes-3.0\",\n  },\n});\n\nendpoint(\"\");\n// Set cursor in the route argument and press `Ctrl + Space` to get a type ahead for all GHES 3.0 REST API endpoints\n```\n\nIf you need your script to work across github.com and a minimal GitHub Enterprise Server version, you can use any of the `@octokit-next/types-rest-api-ghes-*-compatible` packages.\n\n```js\n/// <reference types=\"@octokit-next/types-rest-api-ghes-3.0-compatible\" />\n\nimport { endpoint } from \"@octokit-next/endpoint\";\n\nconst ghes30endpoint = endpoint.withDefaults({\n  request: {\n    version: \"ghes-3.0\",\n  },\n});\n\nendpoint(\"\");\n// Set cursor in the route argument and press `Ctrl + Space` to get a type ahead for all REST API endpoints\n// that exist in both github.com and GitHub Enterprise Server 3.0\n```\n\n## Special cases\n\n<a name=\"data-parameter\"></a>\n\n### The `data` parameter – set request body directly\n\nSome endpoints such as [Render a Markdown document in raw mode](https://docs.github.com/rest/reference/markdown#render-a-markdown-document-in-raw-mode) don’t have parameters that are sent as request body keys, instead, the request body needs to be set directly. In these cases, set the `data` parameter.\n\n```js\nconst options = endpoint(\"POST /markdown/raw\", {\n  data: \"Hello world github/linguist#1 **cool**, and #1!\",\n  headers: {\n    accept: \"text/html;charset=utf-8\",\n    \"content-type\": \"text/plain\",\n  },\n});\n\n// options is\n// {\n//   method: 'post',\n//   url: 'https://api.github.com/markdown/raw',\n//   headers: {\n//     accept: 'text/html;charset=utf-8',\n//     'content-type': 'text/plain',\n//     'user-agent': userAgent\n//   },\n//   body: 'Hello world github/linguist#1 **cool**, and #1!'\n// }\n```\n\n### Set parameters for both the URL/query and the request body\n\nThere are API endpoints that accept both query parameters as well as a body. In that case, you need to add the query parameters as templates to `options.url`, as defined in the [RFC 6570 URI Template specification](https://tools.ietf.org/html/rfc6570).\n\nExample\n\n```js\nendpoint(\n  \"POST https://uploads.github.com/repos/octocat/Hello-World/releases/1/assets{?name,label}\",\n  {\n    name: \"example.zip\",\n    label: \"short description\",\n    headers: {\n      \"content-type\": \"text/plain\",\n      \"content-length\": 14,\n      authorization: `token 0000000000000000000000000000000000000001`,\n    },\n    data: \"Hello, world!\",\n  }\n);\n```\n\n## LICENSE\n\n[MIT](LICENSE)\n","_attachments":{},"homepage":"https://github.com/octokit/octokit-next.js/tree/main/packages/endpoint#readme","bugs":{"url":"https://github.com/octokit/octokit-next.js/issues"},"license":"MIT"}