diff --git a/README.md b/README.md index 7e2b0709..e872fc8c 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,12 @@ octokit.rest.repos See https://octokit.github.io/rest.js for full documentation. +> [!IMPORTANT] +> As we use [conditional exports](https://nodejs.org/api/packages.html#conditional-exports), you will need to adapt your `tsconfig.json` by setting `"moduleResolution": "node16", "module": "node16"`. +> +> See the TypeScript docs on [package.json "exports"](https://www.typescriptlang.org/docs/handbook/modules/reference.html#packagejson-exports).
+> See this [helpful guide on transitioning to ESM](https://gist.github.com/sindresorhus/a39789f98801d908bbc7ff3ecc99d99c) from [@sindresorhus](https://github.com/sindresorhus) + ## Contributing We would love you to contribute to `@octokit/rest`, pull requests are very welcome! Please see [CONTRIBUTING.md](CONTRIBUTING.md) for more information. diff --git a/docs/package-lock.json b/docs/package-lock.json index ab365ee3..76ba9b18 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -9848,9 +9848,9 @@ "dev": true }, "node_modules/follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true, "funding": [ { @@ -28330,9 +28330,9 @@ "dev": true }, "follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true }, "for-each": { diff --git a/docs/src/pages/api/00_usage.md b/docs/src/pages/api/00_usage.md index 9c42eefc..0b71420b 100644 --- a/docs/src/pages/api/00_usage.md +++ b/docs/src/pages/api/00_usage.md @@ -24,15 +24,14 @@ Load @octokit/rest directly from esm.shnpm install @octokit/rest ```js -const { Octokit } = require("@octokit/rest"); -// or: import { Octokit } from "@octokit/rest"; +import { Octokit } from "@octokit/rest"; ```
```js -const { Octokit } = require("@octokit/rest"); +import { Octokit } from "@octokit/rest"; ``` Now instantiate your octokit API. All options are optional, but authentication is strongly encouraged. diff --git a/docs/src/pages/api/01_authentication.md b/docs/src/pages/api/01_authentication.md index 529f227a..36c69999 100644 --- a/docs/src/pages/api/01_authentication.md +++ b/docs/src/pages/api/01_authentication.md @@ -16,7 +16,7 @@ Learn more about all official and community [authentication strategies](https:// By default, `@octokit/rest` authenticates using the [token authentication strategy](https://github.com/octokit/auth-token.js). Pass in a token using `options.auth`. It can be a personal access token, an OAuth token, an installation access token or a JSON Web Token for GitHub App authentication. The `Authorization` request header will be set according to the type of token. ```js -const { Octokit } = require("@octokit/rest"); +import { Octokit } from "@octokit/rest"; const octokit = new Octokit({ auth: "mypersonalaccesstoken123", @@ -30,8 +30,8 @@ To use a different authentication strategy, set `options.authStrategy`. Here is an example for GitHub App authentication ```js -const { Octokit } = require("@octokit/rest"); -const { createAppAuth } = require("@octokit/auth-app"); +import { Octokit } from "@octokit/rest"; +import { createAppAuth } from "@octokit/auth-app"; const appOctokit = new Octokit({ authStrategy: createAppAuth, diff --git a/docs/src/pages/api/02_previews.md b/docs/src/pages/api/02_previews.md deleted file mode 100644 index c8a52f64..00000000 --- a/docs/src/pages/api/02_previews.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -title: "Previews" ---- - -To enable any of [GitHub’s API Previews](https://docs.github.com/en/rest/overview/api-previews/), -pass the `previews` option to the GitHub constructor - -```js -const octokit = new Octokit({ - previews: ["mercy-preview"], -}); -``` - -Previews can also be enabled for a single request by passing the `mediaType.preview` option - -```js -const { - data: { topics }, -} = await octokit.rest.repos.get({ - owner: "octokit", - repo: "rest.js", - mediaType: { - previews: ["symmetra"], - }, -}); -``` diff --git a/docs/src/pages/api/03_request_formats.md b/docs/src/pages/api/03_request_formats.md index 230f5292..589b86f3 100644 --- a/docs/src/pages/api/03_request_formats.md +++ b/docs/src/pages/api/03_request_formats.md @@ -17,7 +17,7 @@ const { data: prDiff } = await octokit.rest.pulls.get({ }); ``` -The [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) interface can be used to abort one or more requests as and when desired. When the request is initiated, an [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) instance can be passed as an option inside the request's options object. For usage in Node, the [`abort-controller`](https://github.com/mysticatea/abort-controller) package can be used. +The [AbortController](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) interface can be used to abort one or more requests as and when desired. When the request is initiated, an [AbortSignal](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal) instance can be passed as an option inside the request's options object. ```js const controller = new AbortController(); diff --git a/docs/src/pages/api/07_custom_endpoints.md b/docs/src/pages/api/07_custom_endpoints.md index 9ae94136..645cbcca 100644 --- a/docs/src/pages/api/07_custom_endpoints.md +++ b/docs/src/pages/api/07_custom_endpoints.md @@ -2,71 +2,29 @@ title: "Custom endpoint methods" --- -**Note**: `octokit.registerEndpoints()` has been deprecated. - -Instead of +You can register custom endpoint methods such as `octokit.rest.repos.get()` by extending the octokit object ```js -await octokit.registerEndpoints({ - misc: { - getRoot: { - method: "GET", - url: "/", +Object.assign(octokit.foo, { + bar: { + method: "PATCH", + url: "/repos/{owner}/{repo}/foo", + headers: { + accept: "application/vnd.github.foo-bar-preview+json", }, - }, -}); -``` - -do - -```js -Object.assign(octokit.misc, { - getRoot: octokit.request.defaults({ - method: "GET", - url: "/", - }), -}); -``` - -If you use `octokit.registerEndpoints()` in a plugin, return an object instead: - -```js -function myPlugin(octokit, options) { - return { - misc: { - octokit.request.defaults({ method: "GET", url: "/" }) - } - } -} -``` - ---- - -You can register custom endpoint methods such as `octokit.rest.repos.get()` using the `octokit.registerEndpoints(routes)` method - -```js -octokit.registerEndpoints({ - foo: { - bar: { - method: "PATCH", - url: "/repos/{owner}/{repo}/foo", - headers: { - accept: "application/vnd.github.foo-bar-preview+json", + params: { + owner: { + required: true, + type: "string", + }, + repo: { + required: true, + type: "string", }, - params: { - owner: { - required: true, - type: "string", - }, - repo: { - required: true, - type: "string", - }, - baz: { - required: true, - type: "string", - enum: ["qux", "quux", "quuz"], - }, + baz: { + required: true, + type: "string", + enum: ["qux", "quux", "quuz"], }, }, }, diff --git a/docs/src/pages/api/08_plugins.md b/docs/src/pages/api/08_plugins.md index 2b0a0b9a..656f0db5 100644 --- a/docs/src/pages/api/08_plugins.md +++ b/docs/src/pages/api/08_plugins.md @@ -6,14 +6,14 @@ You can customize and extend Octokit’s functionality using plugins ```js // index.js -const { Octokit } = require("@octokit/rest"); -const MyOctokit = Octokit.plugin( - require("./lib/my-plugin"), - require("octokit-plugin-example"), -); +import { Octokit } from "@octokit/rest"; +import myPlugin from "./lib/my-plugin.js"; +import octokitPluginExample from "octokit-plugin-example"; + +const MyOctokit = Octokit.plugin(myPlugin, octokitPluginExample); // lib/my-plugin.js -module.exports = (octokit, options = { greeting: "Hello" }) => { +const plugin = (octokit, options = { greeting: "Hello" }) => { // hook into the request lifecycle octokit.hook.wrap("request", async (request, options) => { const time = Date.now(); @@ -31,6 +31,7 @@ module.exports = (octokit, options = { greeting: "Hello" }) => { helloWorld: () => console.log(`${options.greeting}, world!`), }; }; +export default plugin; ``` `.plugin` accepts a function or an array of functions. diff --git a/docs/src/pages/api/09_throttling.md b/docs/src/pages/api/09_throttling.md index b5c20dd4..2d5a8c3d 100644 --- a/docs/src/pages/api/09_throttling.md +++ b/docs/src/pages/api/09_throttling.md @@ -11,8 +11,8 @@ The `throttle.onSecondaryRateLimit` and `throttle.onRateLimit` options are requi Return `true` from these functions to automatically retry the request after `retryAfter` seconds. Return `false` or `undefined` to skip retry and throw the error. For rate limit errors, `retryAfter` defaults to seconds until `X-RateLimit-Reset`. For abuse errors, `retryAfter` defaults to the `retry-after` header but is a minimum of five seconds. ```js -const { Octokit } = require("@octokit/rest"); -const { throttling } = require("@octokit/plugin-throttling"); +import { Octokit } from "@octokit/rest"; +import { throttling } from "@octokit/plugin-throttling"; const MyOctokit = Octokit.plugin(throttling); const octokit = new MyOctokit({ diff --git a/docs/src/pages/api/10_retries.md b/docs/src/pages/api/10_retries.md index 44927a07..4398ca23 100644 --- a/docs/src/pages/api/10_retries.md +++ b/docs/src/pages/api/10_retries.md @@ -5,8 +5,8 @@ title: "Automatic retries" Many common request errors can be easily remediated by retrying the request. We recommend installing the [`@octokit/plugin-retry` plugin](https://github.com/octokit/plugin-retry.js) for Automatic retries in these cases ```js -const { Octokit } = require("@octokit/rest"); -const { retry } = require("@octokit/plugin-retry"); +import { Octokit } from "@octokit/rest"; +import { retry } from "@octokit/plugin-retry"; const MyOctokit = Octokit.plugin(retry); const octokit = new MyOctokit(); diff --git a/docs/src/pages/api/12_debug.md b/docs/src/pages/api/12_debug.md index 667d6def..76ca3c92 100644 --- a/docs/src/pages/api/12_debug.md +++ b/docs/src/pages/api/12_debug.md @@ -5,7 +5,8 @@ title: "Debug" The simplest way to receive debug information is to set the `log` client option to `console`. ```js -const octokit = require("@octokit/rest")({ +import { Octokit } from "@octokit/rest"; +const octokit = new Octokit({ log: console, }); @@ -29,8 +30,10 @@ GET / - 200 in 514ms If you like to support a configurable log level, we recommend using the [console-log-level](https://github.com/watson/console-log-level) module ```js -const octokit = require("@octokit/rest")({ - log: require("console-log-level")({ level: "info" }), +import { Octokit } from "@octokit/rest"; +import consoleLogLevel from "console-log-level"; +const octokit = new Octokit({ + log: consoleLogLevel({ level: "info" }), }); octokit.request("/"); diff --git a/package-lock.json b/package-lock.json index 66aa50b2..f00b566a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,16 +9,16 @@ "version": "0.0.0-development", "license": "MIT", "dependencies": { - "@octokit/core": "^6.0.1", - "@octokit/plugin-paginate-rest": "^10.0.0", - "@octokit/plugin-request-log": "^5.0.0", - "@octokit/plugin-rest-endpoint-methods": "^11.0.1" + "@octokit/core": "^6.1.2", + "@octokit/plugin-paginate-rest": "^11.0.0", + "@octokit/plugin-request-log": "^5.1.0", + "@octokit/plugin-rest-endpoint-methods": "^13.0.0" }, "devDependencies": { - "@octokit/auth-action": "^5.0.0", - "@octokit/auth-app": "^7.0.0-beta.4", - "@octokit/fixtures-server": "^8.0.0", - "@octokit/request": "^9.0.1", + "@octokit/auth-action": "^5.1.0", + "@octokit/auth-app": "^7.0.0-beta.8", + "@octokit/fixtures-server": "^8.1.0", + "@octokit/request": "^9.1.1", "@octokit/tsconfig": "^3.0.0", "@types/jest": "^29.5.11", "@types/node": "^20.11.5", @@ -600,262 +600,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@esbuild/aix-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/aix-ppc64/-/aix-ppc64-0.20.0.tgz", - "integrity": "sha512-fGFDEctNh0CcSwsiRPxiaqX0P5rq+AqE0SRhYGZ4PX46Lg1FNR6oCxJghf8YgY0WQEgQuh3lErUFE4KxLeRmmw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "aix" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.20.0.tgz", - "integrity": "sha512-3bMAfInvByLHfJwYPJRlpTeaQA75n8C/QKpEaiS4HrFWFiJlNI0vzq/zCjBrhAYcPyVPG7Eo9dMrcQXuqmNk5g==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.20.0.tgz", - "integrity": "sha512-aVpnM4lURNkp0D3qPoAzSG92VXStYmoVPOgXveAUoQBWRSuQzt51yvSju29J6AHPmwY1BjH49uR29oyfH1ra8Q==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/android-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.20.0.tgz", - "integrity": "sha512-uK7wAnlRvjkCPzh8jJ+QejFyrP8ObKuR5cBIsQZ+qbMunwR8sbd8krmMbxTLSrDhiPZaJYKQAU5Y3iMDcZPhyQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "android" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.20.0.tgz", - "integrity": "sha512-AjEcivGAlPs3UAcJedMa9qYg9eSfU6FnGHJjT8s346HSKkrcWlYezGE8VaO2xKfvvlZkgAhyvl06OJOxiMgOYQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/darwin-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.20.0.tgz", - "integrity": "sha512-bsgTPoyYDnPv8ER0HqnJggXK6RyFy4PH4rtsId0V7Efa90u2+EifxytE9pZnsDgExgkARy24WUQGv9irVbTvIw==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.0.tgz", - "integrity": "sha512-kQ7jYdlKS335mpGbMW5tEe3IrQFIok9r84EM3PXB8qBFJPSc6dpWfrtsC/y1pyrz82xfUIn5ZrnSHQQsd6jebQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/freebsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.20.0.tgz", - "integrity": "sha512-uG8B0WSepMRsBNVXAQcHf9+Ko/Tr+XqmK7Ptel9HVmnykupXdS4J7ovSQUIi0tQGIndhbqWLaIL/qO/cWhXKyQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "freebsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.20.0.tgz", - "integrity": "sha512-2ezuhdiZw8vuHf1HKSf4TIk80naTbP9At7sOqZmdVwvvMyuoDiZB49YZKLsLOfKIr77+I40dWpHVeY5JHpIEIg==", - "cpu": [ - "arm" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.20.0.tgz", - "integrity": "sha512-uTtyYAP5veqi2z9b6Gr0NUoNv9F/rOzI8tOD5jKcCvRUn7T60Bb+42NDBCWNhMjkQzI0qqwXkQGo1SY41G52nw==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.20.0.tgz", - "integrity": "sha512-c88wwtfs8tTffPaoJ+SQn3y+lKtgTzyjkD8NgsyCtCmtoIC8RDL7PrJU05an/e9VuAke6eJqGkoMhJK1RY6z4w==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-loong64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.20.0.tgz", - "integrity": "sha512-lR2rr/128/6svngnVta6JN4gxSXle/yZEZL3o4XZ6esOqhyR4wsKyfu6qXAL04S4S5CgGfG+GYZnjFd4YiG3Aw==", - "cpu": [ - "loong64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-mips64el": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.20.0.tgz", - "integrity": "sha512-9Sycc+1uUsDnJCelDf6ZNqgZQoK1mJvFtqf2MUz4ujTxGhvCWw+4chYfDLPepMEvVL9PDwn6HrXad5yOrNzIsQ==", - "cpu": [ - "mips64el" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-ppc64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.20.0.tgz", - "integrity": "sha512-CoWSaaAXOZd+CjbUTdXIJE/t7Oz+4g90A3VBCHLbfuc5yUQU/nFDLOzQsN0cdxgXd97lYW/psIIBdjzQIwTBGw==", - "cpu": [ - "ppc64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-riscv64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.20.0.tgz", - "integrity": "sha512-mlb1hg/eYRJUpv8h/x+4ShgoNLL8wgZ64SUr26KwglTYnwAWjkhR2GpoKftDbPOCnodA9t4Y/b68H4J9XmmPzA==", - "cpu": [ - "riscv64" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/linux-s390x": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.20.0.tgz", - "integrity": "sha512-fgf9ubb53xSnOBqyvWEY6ukBNRl1mVX1srPNu06B6mNsNK20JfH6xV6jECzrQ69/VMiTLvHMicQR/PgTOgqJUQ==", - "cpu": [ - "s390x" - ], - "dev": true, - "optional": true, - "os": [ - "linux" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@esbuild/linux-x64": { "version": "0.20.0", "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.20.0.tgz", @@ -872,102 +616,6 @@ "node": ">=12" } }, - "node_modules/@esbuild/netbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.20.0.tgz", - "integrity": "sha512-lCT675rTN1v8Fo+RGrE5KjSnfY0x9Og4RN7t7lVrN3vMSjy34/+3na0q7RIfWDAj0e0rCh0OL+P88lu3Rt21MQ==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "netbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/openbsd-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.20.0.tgz", - "integrity": "sha512-HKoUGXz/TOVXKQ+67NhxyHv+aDSZf44QpWLa3I1lLvAwGq8x1k0T+e2HHSRvxWhfJrFxaaqre1+YyzQ99KixoA==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "openbsd" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/sunos-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.20.0.tgz", - "integrity": "sha512-GDwAqgHQm1mVoPppGsoq4WJwT3vhnz/2N62CzhvApFD1eJyTroob30FPpOZabN+FgCjhG+AgcZyOPIkR8dfD7g==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "sunos" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-arm64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.20.0.tgz", - "integrity": "sha512-0vYsP8aC4TvMlOQYozoksiaxjlvUcQrac+muDqj1Fxy6jh9l9CZJzj7zmh8JGfiV49cYLTorFLxg7593pGldwQ==", - "cpu": [ - "arm64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-ia32": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.20.0.tgz", - "integrity": "sha512-p98u4rIgfh4gdpV00IqknBD5pC84LCub+4a3MO+zjqvU5MVXOc3hqR2UgT2jI2nh3h8s9EQxmOsVI3tyzv1iFg==", - "cpu": [ - "ia32" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, - "node_modules/@esbuild/win32-x64": { - "version": "0.20.0", - "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.20.0.tgz", - "integrity": "sha512-NgJnesu1RtWihtTtXGFMU5YSE6JyyHPMxCwBZK7a6/8d31GuSo9l0Ss7w1Jw5QnKUawG6UEehs883kcXf5fYwg==", - "cpu": [ - "x64" - ], - "dev": true, - "optional": true, - "os": [ - "win32" - ], - "engines": { - "node": ">=12" - } - }, "node_modules/@ewoudenberg/difflib": { "version": "0.1.0", "resolved": "https://registry.npmjs.org/@ewoudenberg/difflib/-/difflib-0.1.0.tgz", @@ -977,15 +625,6 @@ "heap": ">= 0.2.0" } }, - "node_modules/@fastify/busboy": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.0.0.tgz", - "integrity": "sha512-JUFJad5lv7jxj926GPgymrWQxxjPYuJNiNjNMzqT+HiuP6Vl3dk5xzG+8sTX96np0ZAluvaMzPsjhHZ5rNuNQQ==", - "dev": true, - "engines": { - "node": ">=14" - } - }, "node_modules/@isaacs/cliui": { "version": "8.0.2", "resolved": "https://registry.npmjs.org/@isaacs/cliui/-/cliui-8.0.2.tgz", @@ -1850,44 +1489,29 @@ "dev": true }, "node_modules/@octokit/auth-action": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@octokit/auth-action/-/auth-action-5.0.0.tgz", - "integrity": "sha512-tllw9B8xNwzWnCnizHmz0eT+LChUFytyMQzEtzlYBbotYz8IO9HrLzTq2p6SJMCyKFSBAGl+KTC2YVfawWoLaQ==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-action/-/auth-action-5.1.0.tgz", + "integrity": "sha512-37Utgi8/r7B6VnCgt0H+mIhpacmE413VfkHvPS2NXHCWe/qnBWtgOiwgPJMFHRVAnPFbLnXast7VmQVXA8TrPg==", "dev": true, "dependencies": { "@octokit/auth-token": "^5.0.0", - "@octokit/types": "^12.6.0" + "@octokit/types": "^13.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/auth-action/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/auth-action/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, "node_modules/@octokit/auth-app": { - "version": "7.0.0-beta.4", - "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.0.0-beta.4.tgz", - "integrity": "sha512-ma6fUCrL6CX4fFIQOZ4Req+EcA7fA5clw0SBSUkbbJ5XFU4gb8AP7XKbSFRQMWTM1g/luQG/QSxqeF8ZXzltrQ==", + "version": "7.0.0-beta.8", + "resolved": "https://registry.npmjs.org/@octokit/auth-app/-/auth-app-7.0.0-beta.8.tgz", + "integrity": "sha512-Mic3k7fpkH5172fzD7OH3jGn7TsAkiNfhlhfE4g03Gz6FeWxpxm5lbCBKUUQ6scEdDZxCyNLmBwEBXJLUYd7PA==", "dev": true, "dependencies": { - "@octokit/auth-oauth-app": "^8.0.1", - "@octokit/auth-oauth-user": "^5.0.1", - "@octokit/request": "^9.0.0", - "@octokit/request-error": "^6.0.1", - "@octokit/types": "^12.0.0", + "@octokit/auth-oauth-app": "^8.1.0", + "@octokit/auth-oauth-user": "^5.1.0", + "@octokit/request": "^9.1.1", + "@octokit/request-error": "^6.1.1", + "@octokit/types": "^13.4.1", "lru-cache": "^10.0.0", "universal-github-app-jwt": "^2.0.6", "universal-user-agent": "^7.0.0" @@ -1896,167 +1520,71 @@ "node": ">= 18" } }, - "node_modules/@octokit/auth-app/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/auth-app/node_modules/@octokit/request-error": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", - "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", - "dev": true, - "dependencies": { - "@octokit/types": "^12.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/auth-app/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/auth-app/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true - }, "node_modules/@octokit/auth-oauth-app": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.0.2.tgz", - "integrity": "sha512-2qlllE8MbaeEbZGbdcjbVsjVWALN5Z4+h36apZYYFyaazYT89eJnFmr0b5U4Y7HgLGmSC/CMZ6B0Q0Z24qqdDg==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-app/-/auth-oauth-app-8.1.0.tgz", + "integrity": "sha512-Y+xoI1QYlStM5wnSiOPUxEqQ/PGxNdUACceppDe74fG1+/4gb8GaSCFFckmmDVUQjeaRn4up+ewEVD1ytapXDQ==", "dev": true, "dependencies": { "@octokit/auth-oauth-device": "^7.0.0", "@octokit/auth-oauth-user": "^5.0.1", "@octokit/request": "^9.0.0", - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/auth-oauth-app/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/auth-oauth-app/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/auth-oauth-app/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true - }, "node_modules/@octokit/auth-oauth-device": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.0.1.tgz", - "integrity": "sha512-xvgklsbNS5YuOsY3pnuudKv56eHblJKZ4s+dRZmKORYUwgiB1Axm+PPiV0cZCZGKZRCiOxodN1dJvVZ74mkSRw==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-device/-/auth-oauth-device-7.1.0.tgz", + "integrity": "sha512-vhXVk8JGAFWMIlukwLEUfRPyWx1qQPWN1MlNzYtzoaXx9s8mxOa1+KhCkKkpl0RTlSk8pGqYwk8CGrr4s4yjoA==", "dev": true, "dependencies": { "@octokit/oauth-methods": "^5.0.0", "@octokit/request": "^9.0.0", - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/auth-oauth-device/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/auth-oauth-device/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/auth-oauth-device/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true - }, "node_modules/@octokit/auth-oauth-user": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.0.1.tgz", - "integrity": "sha512-LTbGC7PqhTDNyFwX2SJc1Qg6m8Jb5OtN0zcqC7zRQqRhBjQrFoUMYtvx0uBqNJHWQ8AIvfAU5xfTGzGRSjPA4A==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-oauth-user/-/auth-oauth-user-5.1.0.tgz", + "integrity": "sha512-mnHuLeKu849/o24ysvR8uptYoyNrw7UG/tu1RHYISOEMTSGis6077elF7uwbPfs1JutrwcD0PhDyBKNr3Auf4Q==", "dev": true, "dependencies": { - "@octokit/auth-oauth-device": "^7.0.0", + "@octokit/auth-oauth-device": "^7.0.1", "@octokit/oauth-methods": "^5.0.0", - "@octokit/request": "^9.0.0", - "@octokit/types": "^12.0.0", + "@octokit/request": "^9.0.1", + "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/auth-oauth-user/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/auth-oauth-user/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/auth-oauth-user/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==", - "dev": true - }, "node_modules/@octokit/auth-token": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.0.1.tgz", - "integrity": "sha512-RTmWsLfig8SBoiSdgvCht4BXl1CHU89Co5xiQ5JF19my/sIRDFCQ1RPrmK0exgqUZuNm39C/bV8+/83+MJEjGg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/auth-token/-/auth-token-5.1.0.tgz", + "integrity": "sha512-JH+5PhVMjpbBuKlykiseCHa2uZdEd8Qm/N9Kpqncx4o/wkGF38gqVjIP2gZqfaP3nxFZPpg0FwGClKzBi6nS2g==", "engines": { "node": ">= 18" } }, "node_modules/@octokit/core": { - "version": "6.0.1", - "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.0.1.tgz", - "integrity": "sha512-MIpPQXu8Y8GjHwXM81JLveiV+DHJZtLMcB5nKekBGOl3iAtk0HT3i12Xl8Biybu+bCS1+k4qbuKEq5d0RxNRnQ==", + "version": "6.1.2", + "resolved": "https://registry.npmjs.org/@octokit/core/-/core-6.1.2.tgz", + "integrity": "sha512-hEb7Ma4cGJGEUNOAVmyfdB/3WirWMg5hDuNFVejGEDFqupeOysLc2sG6HJxY2etBp5YQu5Wtxwi020jS9xlUwg==", "dependencies": { "@octokit/auth-token": "^5.0.0", "@octokit/graphql": "^8.0.0", "@octokit/request": "^9.0.0", "@octokit/request-error": "^6.0.1", - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.0.0", "before-after-hook": "^3.0.2", "universal-user-agent": "^7.0.0" }, @@ -2064,69 +1592,22 @@ "node": ">= 18" } }, - "node_modules/@octokit/core/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/core/node_modules/@octokit/request-error": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", - "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", - "dependencies": { - "@octokit/types": "^12.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/core/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/core/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==" - }, "node_modules/@octokit/endpoint": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.0.0.tgz", - "integrity": "sha512-emBcNDxBdC1y3+knJonS5zhUB/CG6TihubxM2U1/pG/Z1y3a4oV0Gzz3lmkCvWWQI6h3tqBAX9MgCBFp+M68Jw==", + "version": "10.1.0", + "resolved": "https://registry.npmjs.org/@octokit/endpoint/-/endpoint-10.1.0.tgz", + "integrity": "sha512-ogZ5uLMeGBZUzS32fNt9j+dNw3kkEn5CSw4CVkN1EvCNdFYWrQ5diQR6Hh52VrPR0oayIoYTqQFL/l8RqkV0qw==", "dependencies": { - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.2" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/endpoint/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/endpoint/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/endpoint/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==" - }, "node_modules/@octokit/fixtures": { - "version": "22.0.6", - "resolved": "https://registry.npmjs.org/@octokit/fixtures/-/fixtures-22.0.6.tgz", - "integrity": "sha512-fSxpinPEC+6pIm47A3tC7Ur5gguJSIDHNVapUZMvIK5GqTauvdkr0Q5MbXmzXstlyJLWmXTK8jOlHVU1YJ0NcA==", + "version": "23.1.1", + "resolved": "https://registry.npmjs.org/@octokit/fixtures/-/fixtures-23.1.1.tgz", + "integrity": "sha512-smLMM28wXjZWzS6yKZaL/4tPstPrCDyMp4/YexYJpoIiNZ/NhE4U2vYcLbh2UKPoKXmm9Q2wljTm1Iqa2JYKew==", "dev": true, "dependencies": { "json-diff": "^1.0.0", @@ -2136,12 +1617,12 @@ } }, "node_modules/@octokit/fixtures-server": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/@octokit/fixtures-server/-/fixtures-server-8.0.0.tgz", - "integrity": "sha512-m9VIHqU57jQZXArCri6YZ2mXGYzbpdF58YIZ5XjIGiJFnr4rZSzDb/LOnuSs2+pIkQoLpgD0+3GjTGj+zyarsQ==", + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/@octokit/fixtures-server/-/fixtures-server-8.1.1.tgz", + "integrity": "sha512-z7840sbBx+LL+OvHy10z6EubAKz/HQO85vk8nF9Skgk3ru48T+wgT2Q75HfDVHcCFvQEPTuPKV17WsKLGkRMCg==", "dev": true, "dependencies": { - "@octokit/fixtures": "22.0.6", + "@octokit/fixtures": "23.1.1", "cachimo": "^2.0.1", "console-log-level": "^1.4.0", "cors": "^2.8.4", @@ -2156,93 +1637,53 @@ } }, "node_modules/@octokit/graphql": { - "version": "8.0.1", - "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.0.1.tgz", - "integrity": "sha512-lLDb6LhC1gBj2CxEDa5Xk10+H/boonhs+3Mi6jpRyetskDKNHe6crMeKmUE2efoLofMP8ruannLlCUgpTFmVzQ==", + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/@octokit/graphql/-/graphql-8.1.0.tgz", + "integrity": "sha512-XDvj6GcUnQYgbCLXElt3vZDzNIPGvGiwxQO2XzsvfVUjebGh0E5eCD/1My9zUGSNKaGVZitVuO8LMziGmoFryg==", "dependencies": { "@octokit/request": "^9.0.0", - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.0.0", "universal-user-agent": "^7.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/graphql/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/graphql/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/graphql/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==" - }, "node_modules/@octokit/oauth-authorization-url": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.0.1.tgz", - "integrity": "sha512-CyxA8JClqnsE5xCLTw+7eI/T/KK/vldjmTuWlqSGjJRDrPiQB1RyP2L4xTnZQJZ13hGnIlDT2Y9grgoEpFVvHw==", + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/@octokit/oauth-authorization-url/-/oauth-authorization-url-7.1.0.tgz", + "integrity": "sha512-Tz67AtSxOS4VfcvKPaUtFfwDpIFSkfbBz2PRh89+OtH3rz8aiXScHC6fellYKMkyG6lG3511XlqGhy4QuDgS/Q==", "dev": true, "engines": { "node": ">= 18" } }, "node_modules/@octokit/oauth-methods": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.0.0.tgz", - "integrity": "sha512-atKKkzwR0ke0z0mFFTMHg8PEmoFDWa5sxdzX5b6wy8poMfAKny2dh5/KtsEbIqAWh8gfYVqNRwwUDMiw6cZ7pg==", + "version": "5.1.1", + "resolved": "https://registry.npmjs.org/@octokit/oauth-methods/-/oauth-methods-5.1.1.tgz", + "integrity": "sha512-9B4QQaRb6L+/qtn5PpnZ8fcD3c1euoHkmoS5rEJcbZB/k+LY/QlDtAMO7BoDmLrG0RgRsZBLf7TaLH3M4qAeXw==", "dev": true, "dependencies": { "@octokit/oauth-authorization-url": "^7.0.0", - "@octokit/request": "^9.0.0", - "@octokit/request-error": "^6.0.0", - "@octokit/types": "^12.0.0" + "@octokit/request": "^9.1.0", + "@octokit/request-error": "^6.1.0", + "@octokit/types": "^13.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/oauth-methods/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==", - "dev": true - }, - "node_modules/@octokit/oauth-methods/node_modules/@octokit/request-error": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", - "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", - "dev": true, - "dependencies": { - "@octokit/types": "^12.0.0" - }, - "engines": { - "node": ">= 18" - } - }, - "node_modules/@octokit/oauth-methods/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dev": true, - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } + "node_modules/@octokit/openapi-types": { + "version": "22.1.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-22.1.0.tgz", + "integrity": "sha512-pGUdSP+eEPfZiQHNkZI0U01HLipxncisdJQB4G//OAmfeO8sqTQ9KRa0KF03TUPCziNsoXUrTg4B2Q1EX++T0Q==" }, "node_modules/@octokit/plugin-paginate-rest": { - "version": "10.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-10.0.0.tgz", - "integrity": "sha512-G1Z67qOiFneKDJyMafHQkWnKm1kU3FfbRZLzxgsFg4dOa3pRNdABbdk+xo/oev6P88lnbt7GKdBNB6dJZuPphA==", + "version": "11.1.1", + "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-11.1.1.tgz", + "integrity": "sha512-joUIZu9TupD4pRXLmWShD1Ur/oxYf/bJjYcnaopmGTReNrmWwcW7DUGSrWOjoTeihnlDig+a79m8koiafc4XQw==", "dependencies": { - "@octokit/types": "^12.6.0" + "@octokit/types": "^13.4.0" }, "engines": { "node": ">= 18" @@ -2251,23 +1692,10 @@ "@octokit/core": ">=6" } }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, "node_modules/@octokit/plugin-request-log": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.0.0.tgz", - "integrity": "sha512-PunRpuyr4sxn22N5Qg0howIxrU1f3TQw7LAMCK5eUougC8IYLVkcgY0/vSmcDc44y/PNL8akM8OWtEsYp0Acvg==", + "version": "5.1.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-request-log/-/plugin-request-log-5.1.0.tgz", + "integrity": "sha512-ZFJC8UnzQd+eML43k069J4RNfpePKE7q37JC8WssTRZv3Fkqi9VRGqKkOzyNJ8cIu4vU1Dnci1yFgWhS6Dw+UQ==", "engines": { "node": ">= 18" }, @@ -2276,11 +1704,11 @@ } }, "node_modules/@octokit/plugin-rest-endpoint-methods": { - "version": "11.0.1", - "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-11.0.1.tgz", - "integrity": "sha512-OcuMW0Ftkhad14vPfE0pK7uQK9qzvIZUvcMy71GZOAqlE39hvPwOUz4ylCPgr4YUVdFUc7bY8SjdcG1r8dVGDA==", + "version": "13.0.0", + "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-13.0.0.tgz", + "integrity": "sha512-n70fv4ip6j9Q9O+yWH8wZ3vwAKTucjQVZVJLoz50wVk6bF/Ke8xYji7DAd3OKTYNt+lkWwK6SGZKOKtUiJeTTw==", "dependencies": { - "@octokit/types": "^12.6.0" + "@octokit/types": "^13.4.0" }, "engines": { "node": ">= 18" @@ -2289,68 +1717,45 @@ "@octokit/core": ">=6" } }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/plugin-rest-endpoint-methods/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, "node_modules/@octokit/request": { - "version": "9.0.1", - "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.0.1.tgz", - "integrity": "sha512-kL+cAcbSl3dctYLuJmLfx6Iku2MXXy0jszhaEIjQNaCp4zjHXrhVAHeuaRdNvJjW9qjl3u1MJ72+OuBP0YW/pg==", + "version": "9.1.1", + "resolved": "https://registry.npmjs.org/@octokit/request/-/request-9.1.1.tgz", + "integrity": "sha512-pyAguc0p+f+GbQho0uNetNQMmLG1e80WjkIaqqgUkihqUp0boRU6nKItXO4VWnr+nbZiLGEyy4TeKRwqaLvYgw==", "dependencies": { "@octokit/endpoint": "^10.0.0", "@octokit/request-error": "^6.0.1", - "@octokit/types": "^12.0.0", + "@octokit/types": "^13.1.0", "universal-user-agent": "^7.0.2" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/request/node_modules/@octokit/openapi-types": { - "version": "20.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-20.0.0.tgz", - "integrity": "sha512-EtqRBEjp1dL/15V7WiX5LJMIxxkdiGJnabzYx5Apx4FkQIFgAfKumXeYAqqJCj1s+BMX4cPFIFC4OLCR6stlnA==" - }, - "node_modules/@octokit/request/node_modules/@octokit/request-error": { - "version": "6.0.2", - "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.0.2.tgz", - "integrity": "sha512-WtRVpoHcNXs84+s9s/wqfHaxM68NGMg8Av7h59B50OVO0PwwMx+2GgQ/OliUd0iQBSNWgR6N8afi/KjSHbXHWw==", + "node_modules/@octokit/request-error": { + "version": "6.1.1", + "resolved": "https://registry.npmjs.org/@octokit/request-error/-/request-error-6.1.1.tgz", + "integrity": "sha512-1mw1gqT3fR/WFvnoVpY/zUM2o/XkMs/2AszUUG9I69xn0JFLv6PGkPhNk5lbfvROs79wiS0bqiJNxfCZcRJJdg==", "dependencies": { - "@octokit/types": "^12.0.0" + "@octokit/types": "^13.0.0" }, "engines": { "node": ">= 18" } }, - "node_modules/@octokit/request/node_modules/@octokit/types": { - "version": "12.6.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.6.0.tgz", - "integrity": "sha512-1rhSOfRa6H9w4YwK0yrf5faDaDTb+yLyBUKOCV4xtCDB5VmIPqd/v9yr9o6SAzOAlRxMiRiCic6JVM1/kunVkw==", - "dependencies": { - "@octokit/openapi-types": "^20.0.0" - } - }, - "node_modules/@octokit/request/node_modules/universal-user-agent": { - "version": "7.0.2", - "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", - "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==" - }, "node_modules/@octokit/tsconfig": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-3.0.0.tgz", - "integrity": "sha512-tQLwgXYfBq9iUbOq26kWCzsJL6DY7qjOLzqcg5tCFQ4ob48H47iX98NudHW7S5OQ/fpSKYJhb3eQehyBNzYjfA==", + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-3.1.0.tgz", + "integrity": "sha512-3jGTGqDnnh/MZlg/sf21J/0cghsmaSnG+ZPK+o++sQwUwgrLVtfbUi/BANHgf22SRnxhdYtOoRX90I9/cP+9BA==", "dev": true }, + "node_modules/@octokit/types": { + "version": "13.4.1", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-13.4.1.tgz", + "integrity": "sha512-Y73oOAzRBAUzR/iRAbGULzpNkX8vaxKCqEtg6K74Ff3w9f5apFnWtE/2nade7dMWWW3bS5Kkd6DJS4HF04xreg==", + "dependencies": { + "@octokit/openapi-types": "^22.1.0" + } + }, "node_modules/@pkgjs/parseargs": { "version": "0.11.0", "resolved": "https://registry.npmjs.org/@pkgjs/parseargs/-/parseargs-0.11.0.tgz", @@ -3745,9 +3150,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", "dev": true, "funding": [ { @@ -3804,20 +3209,6 @@ "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", "dev": true }, - "node_modules/fsevents": { - "version": "2.3.3", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", - "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", - "dev": true, - "hasInstallScript": true, - "optional": true, - "os": [ - "darwin" - ], - "engines": { - "node": "^8.16.0 || ^10.6.0 || >=11.0.0" - } - }, "node_modules/function-bind": { "version": "1.1.2", "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz", @@ -7006,9 +6397,9 @@ "dev": true }, "node_modules/semver": { - "version": "6.3.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.1.tgz", - "integrity": "sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA==", + "version": "6.3.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", + "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", "dev": true, "bin": { "semver": "bin/semver.js" @@ -7612,13 +7003,10 @@ } }, "node_modules/undici": { - "version": "6.6.1", - "resolved": "https://registry.npmjs.org/undici/-/undici-6.6.1.tgz", - "integrity": "sha512-J0GaEp0ztu/grIE2Uq57AbK6TRb+bWbOlxu0POCzhFKA6LKbwSAev+hDQaQcgUUA9CPs8Ky+cauzTHnQrtAQEA==", + "version": "6.11.1", + "resolved": "https://registry.npmjs.org/undici/-/undici-6.11.1.tgz", + "integrity": "sha512-KyhzaLJnV1qa3BSHdj4AZ2ndqI0QWPxYzaIOio0WzcEJB9gvuysprJSLtpvc2D9mhR9jPDUk7xlJlZbH2KR5iw==", "dev": true, - "dependencies": { - "@fastify/busboy": "^2.0.0" - }, "engines": { "node": ">=18.0" } @@ -7635,6 +7023,11 @@ "integrity": "sha512-mSP8DSSQYmG3EUZwYS1kmF0MqtW8OAHoGdyeAJUO1XT42qcJZqmAMPqVsh/oQTvNKG/zT26v/fp4UZC4Due8Uw==", "dev": true }, + "node_modules/universal-user-agent": { + "version": "7.0.2", + "resolved": "https://registry.npmjs.org/universal-user-agent/-/universal-user-agent-7.0.2.tgz", + "integrity": "sha512-0JCqzSKnStlRRQfCdowvqy3cy0Dvtlb8xecj/H8JFZuCze4rwjPZQOgvFvn0Ws/usCHQFGpyr+pB9adaGwXn4Q==" + }, "node_modules/unpipe": { "version": "1.0.0", "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", @@ -7675,9 +7068,9 @@ } }, "node_modules/url-template": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/url-template/-/url-template-3.1.0.tgz", - "integrity": "sha512-vB/eHWttzhN+NZzk9FcQB2h1cSEgb7zDYyvyxPhw02LYw7YqIzO+w1AqkcKvZ51gPH8o4+nyiWve/xuQqMdJZw==", + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/url-template/-/url-template-3.1.1.tgz", + "integrity": "sha512-4oszoaEKE/mQOtAmdMWqIRHmkxWkUZMnXFnjQ5i01CuRSK3uluxcH1MRVVVWmhlnzT1SCDfKxxficm2G37qzCA==", "dev": true, "engines": { "node": "^12.20.0 || ^14.13.1 || >=16.0.0" diff --git a/package.json b/package.json index c08e8a4f..a84cbb20 100644 --- a/package.json +++ b/package.json @@ -33,16 +33,16 @@ ], "repository": "github:octokit/rest.js", "dependencies": { - "@octokit/core": "^6.0.1", - "@octokit/plugin-paginate-rest": "^10.0.0", - "@octokit/plugin-request-log": "^5.0.0", - "@octokit/plugin-rest-endpoint-methods": "^11.0.1" + "@octokit/core": "^6.1.2", + "@octokit/plugin-paginate-rest": "^11.0.0", + "@octokit/plugin-request-log": "^5.1.0", + "@octokit/plugin-rest-endpoint-methods": "^13.0.0" }, "devDependencies": { - "@octokit/auth-action": "^5.0.0", - "@octokit/auth-app": "^7.0.0-beta.4", - "@octokit/fixtures-server": "^8.0.0", - "@octokit/request": "^9.0.1", + "@octokit/auth-action": "^5.1.0", + "@octokit/auth-app": "^7.0.0-beta.8", + "@octokit/fixtures-server": "^8.1.0", + "@octokit/request": "^9.1.1", "@octokit/tsconfig": "^3.0.0", "@types/jest": "^29.5.11", "@types/node": "^20.11.5", diff --git a/scripts/build.mjs b/scripts/build.mjs index 396130d3..6fc2c1be 100644 --- a/scripts/build.mjs +++ b/scripts/build.mjs @@ -53,12 +53,13 @@ async function main() { { ...pkg, files: ["dist-*/**"], - main: "dist-src/index.js", types: "dist-types/index.d.ts", exports: { ".": { types: "./dist-types/index.d.ts", import: "./dist-src/index.js", + // Tooling currently are having issues with the "exports" field when there is no "default", ex: TypeScript, eslint + default: "./dist-src/index.js", } }, sideEffects: false, diff --git a/test/scenarios/add-and-remove-repository-collaborator.test.ts b/test/scenarios/add-and-remove-repository-collaborator.test.ts index adfb62b2..0f273f9d 100644 --- a/test/scenarios/add-and-remove-repository-collaborator.test.ts +++ b/test/scenarios/add-and-remove-repository-collaborator.test.ts @@ -1,4 +1,4 @@ -import { loadFixture, fixtureToInstance, OctokitType } from "../util.ts"; +import { loadFixture, fixtureToInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let githubUserA: OctokitType; diff --git a/test/scenarios/add-labels-to-issue.test.ts b/test/scenarios/add-labels-to-issue.test.ts index e01144ec..3b15959f 100644 --- a/test/scenarios/add-labels-to-issue.test.ts +++ b/test/scenarios/add-labels-to-issue.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/branch-protection.test.ts b/test/scenarios/branch-protection.test.ts index 99bc80b6..a249dbb5 100644 --- a/test/scenarios/branch-protection.test.ts +++ b/test/scenarios/branch-protection.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/create-file.test.ts b/test/scenarios/create-file.test.ts index 86fe2f85..79f968d7 100644 --- a/test/scenarios/create-file.test.ts +++ b/test/scenarios/create-file.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/create-status.test.ts b/test/scenarios/create-status.test.ts index 1819c569..b77dfc54 100644 --- a/test/scenarios/create-status.test.ts +++ b/test/scenarios/create-status.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/errors.test.ts b/test/scenarios/errors.test.ts index fc6dac75..e58b9bd0 100644 --- a/test/scenarios/errors.test.ts +++ b/test/scenarios/errors.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; @@ -21,8 +21,10 @@ describe("api.github.com", () => { }) .catch((error) => { - expect(error.message).toEqual( - `Validation Failed: {"resource":"Label","code":"invalid","field":"color"}`, + expect(error.message).toMatch( + new RegExp( + `Validation Failed: {\\"resource\\":\\"Label\\",\\"code\\":\\"invalid\\",\\"field\\":\\"color\\"} - http://localhost:3000/docs.github.com/[a-z0-9]{10,11}/rest/reference/issues#create-a-label`, + ), ); expect(error.response.data.errors).toEqual([ { diff --git a/test/scenarios/get-archive.test.ts b/test/scenarios/get-archive.test.ts index 330643b7..4a6d6afc 100644 --- a/test/scenarios/get-archive.test.ts +++ b/test/scenarios/get-archive.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/get-content.test.ts b/test/scenarios/get-content.test.ts index 3bf48a08..347961c2 100644 --- a/test/scenarios/get-content.test.ts +++ b/test/scenarios/get-content.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/get-organization.test.ts b/test/scenarios/get-organization.test.ts index dca20de8..5fbf64d3 100644 --- a/test/scenarios/get-organization.test.ts +++ b/test/scenarios/get-organization.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/get-repository.test.ts b/test/scenarios/get-repository.test.ts index e38c878d..8e0c0573 100644 --- a/test/scenarios/get-repository.test.ts +++ b/test/scenarios/get-repository.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/labels.test.ts b/test/scenarios/labels.test.ts index bccdcff1..09cdd916 100644 --- a/test/scenarios/labels.test.ts +++ b/test/scenarios/labels.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/lock-issue.test.ts b/test/scenarios/lock-issue.test.ts index 4d9716b0..a2e67999 100644 --- a/test/scenarios/lock-issue.test.ts +++ b/test/scenarios/lock-issue.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/mark-notifications-as-read.test.ts b/test/scenarios/mark-notifications-as-read.test.ts index a94793f8..55a608c6 100644 --- a/test/scenarios/mark-notifications-as-read.test.ts +++ b/test/scenarios/mark-notifications-as-read.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/markdown.test.ts b/test/scenarios/markdown.test.ts index 378ab7b8..0161189c 100644 --- a/test/scenarios/markdown.test.ts +++ b/test/scenarios/markdown.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/paginate-issues-async-await.test.ts b/test/scenarios/paginate-issues-async-await.test.ts index 406958a2..884e099b 100644 --- a/test/scenarios/paginate-issues-async-await.test.ts +++ b/test/scenarios/paginate-issues-async-await.test.ts @@ -1,7 +1,7 @@ // this file is not run directly but instead required in paginate-issues-test.js // for Node v10 and higher only -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/paginate-issues.test.ts b/test/scenarios/paginate-issues.test.ts index 731be9ab..de869077 100644 --- a/test/scenarios/paginate-issues.test.ts +++ b/test/scenarios/paginate-issues.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; type IteratorResult = { value: { diff --git a/test/scenarios/project-cards.test.ts b/test/scenarios/project-cards.test.ts index d930f2ae..aedf7293 100644 --- a/test/scenarios/project-cards.test.ts +++ b/test/scenarios/project-cards.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/release-assets.test.ts b/test/scenarios/release-assets.test.ts index c3d93c10..48c37342 100644 --- a/test/scenarios/release-assets.test.ts +++ b/test/scenarios/release-assets.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/rename-repository.test.ts b/test/scenarios/rename-repository.test.ts index 1ff05aba..dc746b17 100644 --- a/test/scenarios/rename-repository.test.ts +++ b/test/scenarios/rename-repository.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/scenarios/search-issues.test.ts b/test/scenarios/search-issues.test.ts index 5139d2c8..d0a12c5d 100644 --- a/test/scenarios/search-issues.test.ts +++ b/test/scenarios/search-issues.test.ts @@ -1,4 +1,4 @@ -import { getInstance, OctokitType } from "../util.ts"; +import { getInstance, type OctokitType } from "../util.ts"; describe("api.github.com", () => { let octokit: OctokitType; diff --git a/test/tsconfig.test.json b/test/tsconfig.test.json index 5e8dc248..cf1f2005 100644 --- a/test/tsconfig.test.json +++ b/test/tsconfig.test.json @@ -3,7 +3,6 @@ "compilerOptions": { "emitDeclarationOnly": false, "noEmit": true, - "verbatimModuleSyntax": false, "allowImportingTsExtensions": true }, "include": ["src/**/*"]