diff --git a/package-lock.json b/package-lock.json index 0959de06..43dd109e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -12,7 +12,7 @@ "@actions/core": "1.10.1", "@actions/github": "6.0.0", "@octokit/plugin-paginate-rest": "9.0.0", - "@octokit/types": "9.3.0", + "@octokit/types": "12.0.0", "@types/semver": "7.5.3", "assert": "2.1.0" }, @@ -1469,7 +1469,7 @@ "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz", "integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==", "dependencies": { - "@octokit/types": "^12.0.0" + "@octokit/types": "12.0.0" }, "engines": { "node": ">= 18" @@ -1478,19 +1478,6 @@ "@octokit/core": ">=5" } }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/openapi-types": { - "version": "19.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz", - "integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==" - }, - "node_modules/@octokit/plugin-paginate-rest/node_modules/@octokit/types": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz", - "integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==", - "dependencies": { - "@octokit/openapi-types": "^19.0.0" - } - }, "node_modules/@octokit/plugin-rest-endpoint-methods": { "version": "10.0.1", "resolved": "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-10.0.1.tgz", @@ -1563,13 +1550,18 @@ } }, "node_modules/@octokit/types": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.0.tgz", - "integrity": "sha512-ZNO1In0QuWZLDngSLcn5H4ExRhYOd1rDcWnwc/LuR55cO1d6Sex6+T6RiSQwp/tyEg7eNWx+MUdJGL7Fu1kMjw==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz", + "integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==", "dependencies": { - "@octokit/openapi-types": "^18.0.0" + "@octokit/openapi-types": "^19.0.0" } }, + "node_modules/@octokit/types/node_modules/@octokit/openapi-types": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz", + "integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==" + }, "node_modules/@sinclair/typebox": { "version": "0.24.40", "resolved": "https://registry.npmjs.org/@sinclair/typebox/-/typebox-0.24.40.tgz", @@ -8672,22 +8664,7 @@ "resolved": "https://registry.npmjs.org/@octokit/plugin-paginate-rest/-/plugin-paginate-rest-9.0.0.tgz", "integrity": "sha512-oIJzCpttmBTlEhBmRvb+b9rlnGpmFgDtZ0bB6nq39qIod6A5DP+7RkVLMOixIgRCYSHDTeayWqmiJ2SZ6xgfdw==", "requires": { - "@octokit/types": "^12.0.0" - }, - "dependencies": { - "@octokit/openapi-types": { - "version": "19.0.0", - "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz", - "integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==" - }, - "@octokit/types": { - "version": "12.0.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz", - "integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==", - "requires": { - "@octokit/openapi-types": "^19.0.0" - } - } + "@octokit/types": "12.0.0" } }, "@octokit/plugin-rest-endpoint-methods": { @@ -8756,11 +8733,18 @@ } }, "@octokit/types": { - "version": "9.3.0", - "resolved": "https://registry.npmjs.org/@octokit/types/-/types-9.3.0.tgz", - "integrity": "sha512-ZNO1In0QuWZLDngSLcn5H4ExRhYOd1rDcWnwc/LuR55cO1d6Sex6+T6RiSQwp/tyEg7eNWx+MUdJGL7Fu1kMjw==", + "version": "12.0.0", + "resolved": "https://registry.npmjs.org/@octokit/types/-/types-12.0.0.tgz", + "integrity": "sha512-EzD434aHTFifGudYAygnFlS1Tl6KhbTynEWELQXIbTY8Msvb5nEqTZIm7sbPEt4mQYLZwu3zPKVdeIrw0g7ovg==", "requires": { - "@octokit/openapi-types": "^18.0.0" + "@octokit/openapi-types": "^19.0.0" + }, + "dependencies": { + "@octokit/openapi-types": { + "version": "19.0.0", + "resolved": "https://registry.npmjs.org/@octokit/openapi-types/-/openapi-types-19.0.0.tgz", + "integrity": "sha512-PclQ6JGMTE9iUStpzMkwLCISFn/wDeRjkZFIKALpvJQNBGwDoYYi2fFvuHwssoQ1rXI5mfh6jgTgWuddeUzfWw==" + } } }, "@sinclair/typebox": { diff --git a/package.json b/package.json index 6577ec4c..52f8e2d9 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@actions/core": "1.10.1", "@actions/github": "6.0.0", "@octokit/plugin-paginate-rest": "9.0.0", - "@octokit/types": "9.3.0", + "@octokit/types": "12.0.0", "@types/semver": "7.5.3", "assert": "2.1.0" }, diff --git a/src/functions/get-rate-limit.ts b/src/functions/get-rate-limit.ts index 3cd5f786..a8b45741 100644 --- a/src/functions/get-rate-limit.ts +++ b/src/functions/get-rate-limit.ts @@ -1,6 +1,6 @@ import * as assert from 'assert' import * as core from '@actions/core' -// eslint-disable-next-line import/named +// eslint-disable-next-line import/no-unresolved import {GetResponseTypeFromEndpointMethod} from '@octokit/types' import {RateLimit} from '../types/rate-limit' import {getMinutes} from './utils/get-time'