From a38885db0cb936ef60046501c4dc19450bb23a6c Mon Sep 17 00:00:00 2001 From: Jason3S Date: Wed, 21 Jun 2023 12:01:27 +0000 Subject: [PATCH] fix: Workflow Bot -- Update ALL Dependencies --- action-src/package.json | 4 +- action/node_modules/@octokit/core/README.md | 4 +- .../@octokit/core/dist-node/index.js | 2 +- .../@octokit/core/dist-src/index.js | 2 +- .../@octokit/core/dist-src/version.js | 2 +- .../@octokit/core/dist-web/index.js | 4 +- .../node_modules/@octokit/core/package.json | 8 +- .../node_modules/@octokit/request/README.md | 6 +- .../@octokit/request/dist-node/index.js | 2 +- .../request/dist-src/fetch-wrapper.js | 2 +- .../@octokit/request/dist-src/version.js | 2 +- .../@octokit/request/dist-web/index.js | 4 +- .../@octokit/request/package.json | 6 +- action/node_modules/@octokit/rest/README.md | 4 +- .../@octokit/rest/dist-node/index.js | 2 +- .../@octokit/rest/dist-src/version.js | 2 +- .../@octokit/rest/dist-web/index.js | 2 +- .../dist-node/index.js | 79 ++++--- .../dist-src/endpoints-to-methods.js | 70 ++++-- .../dist-src/index.js | 5 +- .../dist-src/version.js | 2 +- .../dist-web/index.js | 79 ++++--- .../plugin-rest-endpoint-methods/package.json | 4 +- .../rest/node_modules/@octokit/types/LICENSE | 7 + .../node_modules/@octokit/types/README.md | 65 ++++++ .../node_modules/@octokit/types/package.json | 46 ++++ .../node_modules/@octokit/rest/package.json | 6 +- .../@octokit/types/dist-node/index.js | 8 - .../@octokit/types/dist-src/AuthInterface.js | 1 - .../types/dist-src/EndpointDefaults.js | 1 - .../types/dist-src/EndpointInterface.js | 1 - .../types/dist-src/EndpointOptions.js | 1 - .../@octokit/types/dist-src/Fetch.js | 1 - .../GetResponseTypeFromEndpointMethod.js | 1 - .../types/dist-src/OctokitResponse.js | 1 - .../@octokit/types/dist-src/RequestError.js | 1 - .../@octokit/types/dist-src/RequestHeaders.js | 1 - .../types/dist-src/RequestInterface.js | 1 - .../@octokit/types/dist-src/RequestMethod.js | 1 - .../@octokit/types/dist-src/RequestOptions.js | 1 - .../types/dist-src/RequestParameters.js | 1 - .../types/dist-src/RequestRequestOptions.js | 1 - .../types/dist-src/ResponseHeaders.js | 1 - .../@octokit/types/dist-src/Route.js | 1 - .../@octokit/types/dist-src/Signal.js | 1 - .../types/dist-src/StrategyInterface.js | 1 - .../@octokit/types/dist-src/Url.js | 1 - .../@octokit/types/dist-src/VERSION.js | 1 - .../types/dist-src/generated/Endpoints.js | 1 - .../@octokit/types/dist-src/index.js | 21 -- .../@octokit/types/dist-web/index.js | 4 - .../node_modules/@octokit/types/package.json | 44 ++-- .../node_modules/semver/classes/comparator.js | 3 +- action/node_modules/semver/classes/range.js | 64 +++--- action/node_modules/semver/classes/semver.js | 8 +- .../node_modules/semver/functions/coerce.js | 2 +- action/node_modules/semver/functions/diff.js | 51 +++-- action/node_modules/semver/internal/re.js | 11 + action/node_modules/semver/package.json | 8 +- action/package.json | 4 +- package.json | 6 +- yarn.lock | 215 +++++++++--------- 62 files changed, 526 insertions(+), 365 deletions(-) create mode 100644 action/node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE create mode 100644 action/node_modules/@octokit/rest/node_modules/@octokit/types/README.md create mode 100644 action/node_modules/@octokit/rest/node_modules/@octokit/types/package.json delete mode 100644 action/node_modules/@octokit/types/dist-node/index.js delete mode 100644 action/node_modules/@octokit/types/dist-src/AuthInterface.js delete mode 100644 action/node_modules/@octokit/types/dist-src/EndpointDefaults.js delete mode 100644 action/node_modules/@octokit/types/dist-src/EndpointInterface.js delete mode 100644 action/node_modules/@octokit/types/dist-src/EndpointOptions.js delete mode 100644 action/node_modules/@octokit/types/dist-src/Fetch.js delete mode 100644 action/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js delete mode 100644 action/node_modules/@octokit/types/dist-src/OctokitResponse.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestError.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestHeaders.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestInterface.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestMethod.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestOptions.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestParameters.js delete mode 100644 action/node_modules/@octokit/types/dist-src/RequestRequestOptions.js delete mode 100644 action/node_modules/@octokit/types/dist-src/ResponseHeaders.js delete mode 100644 action/node_modules/@octokit/types/dist-src/Route.js delete mode 100644 action/node_modules/@octokit/types/dist-src/Signal.js delete mode 100644 action/node_modules/@octokit/types/dist-src/StrategyInterface.js delete mode 100644 action/node_modules/@octokit/types/dist-src/Url.js delete mode 100644 action/node_modules/@octokit/types/dist-src/VERSION.js delete mode 100644 action/node_modules/@octokit/types/dist-src/generated/Endpoints.js delete mode 100644 action/node_modules/@octokit/types/dist-src/index.js delete mode 100644 action/node_modules/@octokit/types/dist-web/index.js diff --git a/action-src/package.json b/action-src/package.json index 68e332fe9..9d543237c 100644 --- a/action-src/package.json +++ b/action-src/package.json @@ -23,9 +23,9 @@ "dependencies": { "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", - "@octokit/core": "^4.2.1", + "@octokit/core": "^4.2.4", "@octokit/plugin-rest-endpoint-methods": "7.1.3", - "@octokit/rest": "^19.0.11", + "@octokit/rest": "^19.0.13", "cspell": "^6.31.1", "cspell-glob": "^6.31.1", "vscode-uri": "^3.0.7" diff --git a/action/node_modules/@octokit/core/README.md b/action/node_modules/@octokit/core/README.md index 3cc51419b..50eea087b 100644 --- a/action/node_modules/@octokit/core/README.md +++ b/action/node_modules/@octokit/core/README.md @@ -32,11 +32,11 @@ If you don't need the Plugin API then using [`@octokit/request`](https://github. Browsers -Load @octokit/core directly from cdn.skypack.dev +Load @octokit/core directly from esm.sh ```html ``` diff --git a/action/node_modules/@octokit/core/dist-node/index.js b/action/node_modules/@octokit/core/dist-node/index.js index e70aa602a..78ba108bc 100644 --- a/action/node_modules/@octokit/core/dist-node/index.js +++ b/action/node_modules/@octokit/core/dist-node/index.js @@ -30,7 +30,7 @@ var import_graphql = require("@octokit/graphql"); var import_auth_token = require("@octokit/auth-token"); // pkg/dist-src/version.js -var VERSION = "4.2.1"; +var VERSION = "4.2.4"; // pkg/dist-src/index.js var Octokit = class { diff --git a/action/node_modules/@octokit/core/dist-src/index.js b/action/node_modules/@octokit/core/dist-src/index.js index 4da2c0981..ed23a48d5 100644 --- a/action/node_modules/@octokit/core/dist-src/index.js +++ b/action/node_modules/@octokit/core/dist-src/index.js @@ -1,7 +1,7 @@ import { getUserAgent } from "universal-user-agent"; import { Collection } from "before-after-hook"; import { request } from "@octokit/request"; -import { withCustomRequest } from "@octokit/graphql"; +import { graphql, withCustomRequest } from "@octokit/graphql"; import { createTokenAuth } from "@octokit/auth-token"; import { VERSION } from "./version"; class Octokit { diff --git a/action/node_modules/@octokit/core/dist-src/version.js b/action/node_modules/@octokit/core/dist-src/version.js index 962ff3061..6b36c09f8 100644 --- a/action/node_modules/@octokit/core/dist-src/version.js +++ b/action/node_modules/@octokit/core/dist-src/version.js @@ -1,4 +1,4 @@ -const VERSION = "4.2.1"; +const VERSION = "4.2.4"; export { VERSION }; diff --git a/action/node_modules/@octokit/core/dist-web/index.js b/action/node_modules/@octokit/core/dist-web/index.js index bc1238e8c..5a984d275 100644 --- a/action/node_modules/@octokit/core/dist-web/index.js +++ b/action/node_modules/@octokit/core/dist-web/index.js @@ -2,11 +2,11 @@ import { getUserAgent } from "universal-user-agent"; import { Collection } from "before-after-hook"; import { request } from "@octokit/request"; -import { withCustomRequest } from "@octokit/graphql"; +import { graphql, withCustomRequest } from "@octokit/graphql"; import { createTokenAuth } from "@octokit/auth-token"; // pkg/dist-src/version.js -var VERSION = "4.2.1"; +var VERSION = "4.2.4"; // pkg/dist-src/index.js var Octokit = class { diff --git a/action/node_modules/@octokit/core/package.json b/action/node_modules/@octokit/core/package.json index 8e31cd28f..7ecd7ae04 100644 --- a/action/node_modules/@octokit/core/package.json +++ b/action/node_modules/@octokit/core/package.json @@ -1,6 +1,6 @@ { "name": "@octokit/core", - "version": "4.2.1", + "version": "4.2.4", "publishConfig": { "access": "public" }, @@ -26,15 +26,15 @@ }, "devDependencies": { "@octokit/auth": "^3.0.1", - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/fetch-mock": "^7.3.1", "@types/jest": "^29.0.0", "@types/lolex": "^5.1.0", "@types/node": "^18.0.0", - "esbuild": "^0.17.19", + "esbuild": "^0.18.0", "fetch-mock": "^9.0.0", "glob": "^10.2.5", - "http-proxy-agent": "^6.0.0", + "http-proxy-agent": "^7.0.0", "jest": "^29.0.0", "lolex": "^6.0.0", "prettier": "2.8.8", diff --git a/action/node_modules/@octokit/request/README.md b/action/node_modules/@octokit/request/README.md index 82a82a19b..934138db0 100644 --- a/action/node_modules/@octokit/request/README.md +++ b/action/node_modules/@octokit/request/README.md @@ -27,7 +27,7 @@ the passed options and sends the request using [fetch](https://developer.mozilla - [`request.defaults()`](#requestdefaults) - [`request.endpoint`](#requestendpoint) - [Special cases](#special-cases) - - [The `data` parameter – set request body directly](#the-data-parameter--set-request-body-directly) + - [The `data` parameter – set request body directly](#the-data-parameter-%E2%80%93-set-request-body-directly) - [Set parameters for both the URL/query and the request body](#set-parameters-for-both-the-urlquery-and-the-request-body) - [LICENSE](#license) @@ -70,11 +70,11 @@ request("POST /repos/{owner}/{repo}/issues/{number}/labels", { Browsers -Load @octokit/request directly from cdn.skypack.dev +Load @octokit/request directly from esm.sh ```html ``` diff --git a/action/node_modules/@octokit/request/dist-node/index.js b/action/node_modules/@octokit/request/dist-node/index.js index 78d7bc029..56df5ded3 100644 --- a/action/node_modules/@octokit/request/dist-node/index.js +++ b/action/node_modules/@octokit/request/dist-node/index.js @@ -37,7 +37,7 @@ var import_endpoint = require("@octokit/endpoint"); var import_universal_user_agent = require("universal-user-agent"); // pkg/dist-src/version.js -var VERSION = "6.2.5"; +var VERSION = "6.2.8"; // pkg/dist-src/fetch-wrapper.js var import_is_plain_object = require("is-plain-object"); diff --git a/action/node_modules/@octokit/request/dist-src/fetch-wrapper.js b/action/node_modules/@octokit/request/dist-src/fetch-wrapper.js index 4d1f15e5c..49dee5828 100644 --- a/action/node_modules/@octokit/request/dist-src/fetch-wrapper.js +++ b/action/node_modules/@octokit/request/dist-src/fetch-wrapper.js @@ -1,5 +1,5 @@ import { isPlainObject } from "is-plain-object"; -import nodeFetch from "node-fetch"; +import nodeFetch, {} from "node-fetch"; import { RequestError } from "@octokit/request-error"; import getBuffer from "./get-buffer-response"; function fetchWrapper(requestOptions) { diff --git a/action/node_modules/@octokit/request/dist-src/version.js b/action/node_modules/@octokit/request/dist-src/version.js index 47f361b13..842090e0d 100644 --- a/action/node_modules/@octokit/request/dist-src/version.js +++ b/action/node_modules/@octokit/request/dist-src/version.js @@ -1,4 +1,4 @@ -const VERSION = "6.2.5"; +const VERSION = "6.2.8"; export { VERSION }; diff --git a/action/node_modules/@octokit/request/dist-web/index.js b/action/node_modules/@octokit/request/dist-web/index.js index 5078e2a79..43a785e22 100644 --- a/action/node_modules/@octokit/request/dist-web/index.js +++ b/action/node_modules/@octokit/request/dist-web/index.js @@ -3,11 +3,11 @@ import { endpoint } from "@octokit/endpoint"; import { getUserAgent } from "universal-user-agent"; // pkg/dist-src/version.js -var VERSION = "6.2.5"; +var VERSION = "6.2.8"; // pkg/dist-src/fetch-wrapper.js import { isPlainObject } from "is-plain-object"; -import nodeFetch from "node-fetch"; +import nodeFetch, {} from "node-fetch"; import { RequestError } from "@octokit/request-error"; // pkg/dist-src/get-buffer-response.js diff --git a/action/node_modules/@octokit/request/package.json b/action/node_modules/@octokit/request/package.json index 4175fcf26..787976e5c 100644 --- a/action/node_modules/@octokit/request/package.json +++ b/action/node_modules/@octokit/request/package.json @@ -1,6 +1,6 @@ { "name": "@octokit/request", - "version": "6.2.5", + "version": "6.2.8", "publishConfig": { "access": "public" }, @@ -24,14 +24,14 @@ }, "devDependencies": { "@octokit/auth-app": "^4.0.0", - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/fetch-mock": "^7.2.4", "@types/jest": "^29.0.0", "@types/lolex": "^5.1.0", "@types/node": "^18.0.0", "@types/node-fetch": "^2.3.3", "@types/once": "^1.4.0", - "esbuild": "^0.17.19", + "esbuild": "^0.18.0", "fetch-mock": "^9.3.1", "glob": "^10.2.4", "jest": "^29.0.0", diff --git a/action/node_modules/@octokit/rest/README.md b/action/node_modules/@octokit/rest/README.md index 3a46f370d..495a13f66 100644 --- a/action/node_modules/@octokit/rest/README.md +++ b/action/node_modules/@octokit/rest/README.md @@ -12,11 +12,11 @@ Browsers -Load @octokit/rest directly from cdn.skypack.dev +Load @octokit/rest directly from esm.sh ```html ``` diff --git a/action/node_modules/@octokit/rest/dist-node/index.js b/action/node_modules/@octokit/rest/dist-node/index.js index 55bbb45b5..cd08f8c95 100644 --- a/action/node_modules/@octokit/rest/dist-node/index.js +++ b/action/node_modules/@octokit/rest/dist-node/index.js @@ -29,7 +29,7 @@ var import_plugin_paginate_rest = require("@octokit/plugin-paginate-rest"); var import_plugin_rest_endpoint_methods = require("@octokit/plugin-rest-endpoint-methods"); // pkg/dist-src/version.js -var VERSION = "19.0.11"; +var VERSION = "19.0.13"; // pkg/dist-src/index.js var Octokit = import_core.Octokit.plugin( diff --git a/action/node_modules/@octokit/rest/dist-src/version.js b/action/node_modules/@octokit/rest/dist-src/version.js index e8b925c67..3a7ca7580 100644 --- a/action/node_modules/@octokit/rest/dist-src/version.js +++ b/action/node_modules/@octokit/rest/dist-src/version.js @@ -1,4 +1,4 @@ -const VERSION = "19.0.11"; +const VERSION = "19.0.13"; export { VERSION }; diff --git a/action/node_modules/@octokit/rest/dist-web/index.js b/action/node_modules/@octokit/rest/dist-web/index.js index 8e5b0b076..8b8f83af1 100644 --- a/action/node_modules/@octokit/rest/dist-web/index.js +++ b/action/node_modules/@octokit/rest/dist-web/index.js @@ -5,7 +5,7 @@ import { paginateRest } from "@octokit/plugin-paginate-rest"; import { legacyRestEndpointMethods } from "@octokit/plugin-rest-endpoint-methods"; // pkg/dist-src/version.js -var VERSION = "19.0.11"; +var VERSION = "19.0.13"; // pkg/dist-src/index.js var Octokit = Core.plugin( diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js index b6fc50b86..562def76a 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-node/index.js @@ -25,6 +25,9 @@ __export(dist_src_exports, { }); module.exports = __toCommonJS(dist_src_exports); +// pkg/dist-src/version.js +var VERSION = "7.2.3"; + // pkg/dist-src/generated/endpoints.js var Endpoints = { actions: { @@ -1894,36 +1897,54 @@ var Endpoints = { }; var endpoints_default = Endpoints; -// pkg/dist-src/version.js -var VERSION = "7.2.1"; - // pkg/dist-src/endpoints-to-methods.js -function endpointsToMethods(octokit, endpointsMap) { - const newMethods = {}; - for (const [scope, endpoints] of Object.entries(endpointsMap)) { - for (const [methodName, endpoint] of Object.entries(endpoints)) { - const [route, defaults, decorations] = endpoint; - const [method, url] = route.split(/ /); - const endpointDefaults = Object.assign( - { method, url }, - defaults +var endpointMethodsMap = /* @__PURE__ */ new Map(); +for (const [scope, endpoints] of Object.entries(endpoints_default)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign( + { + method, + url + }, + defaults + ); + if (!endpointMethodsMap.has(scope)) { + endpointMethodsMap.set(scope, /* @__PURE__ */ new Map()); + } + endpointMethodsMap.get(scope).set(methodName, { + scope, + methodName, + endpointDefaults, + decorations + }); + } +} +var handler = { + get({ octokit, scope, cache }, methodName) { + if (cache[methodName]) { + return cache[methodName]; + } + const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName); + if (decorations) { + cache[methodName] = decorate( + octokit, + scope, + methodName, + endpointDefaults, + decorations ); - if (!newMethods[scope]) { - newMethods[scope] = {}; - } - const scopeMethods = newMethods[scope]; - if (decorations) { - scopeMethods[methodName] = decorate( - octokit, - scope, - methodName, - endpointDefaults, - decorations - ); - continue; - } - scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } else { + cache[methodName] = octokit.request.defaults(endpointDefaults); } + return cache[methodName]; + } +}; +function endpointsToMethods(octokit) { + const newMethods = {}; + for (const scope of endpointMethodsMap.keys()) { + newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler); } return newMethods; } @@ -1971,14 +1992,14 @@ function decorate(octokit, scope, methodName, defaults, decorations) { // pkg/dist-src/index.js function restEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, endpoints_default); + const api = endpointsToMethods(octokit); return { rest: api }; } restEndpointMethods.VERSION = VERSION; function legacyRestEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, endpoints_default); + const api = endpointsToMethods(octokit); return { ...api, rest: api diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js index 925649b7a..2344d6292 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/endpoints-to-methods.js @@ -1,29 +1,51 @@ -function endpointsToMethods(octokit, endpointsMap) { - const newMethods = {}; - for (const [scope, endpoints] of Object.entries(endpointsMap)) { - for (const [methodName, endpoint] of Object.entries(endpoints)) { - const [route, defaults, decorations] = endpoint; - const [method, url] = route.split(/ /); - const endpointDefaults = Object.assign( - { method, url }, - defaults +import ENDPOINTS from "./generated/endpoints"; +const endpointMethodsMap = /* @__PURE__ */ new Map(); +for (const [scope, endpoints] of Object.entries(ENDPOINTS)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign( + { + method, + url + }, + defaults + ); + if (!endpointMethodsMap.has(scope)) { + endpointMethodsMap.set(scope, /* @__PURE__ */ new Map()); + } + endpointMethodsMap.get(scope).set(methodName, { + scope, + methodName, + endpointDefaults, + decorations + }); + } +} +const handler = { + get({ octokit, scope, cache }, methodName) { + if (cache[methodName]) { + return cache[methodName]; + } + const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName); + if (decorations) { + cache[methodName] = decorate( + octokit, + scope, + methodName, + endpointDefaults, + decorations ); - if (!newMethods[scope]) { - newMethods[scope] = {}; - } - const scopeMethods = newMethods[scope]; - if (decorations) { - scopeMethods[methodName] = decorate( - octokit, - scope, - methodName, - endpointDefaults, - decorations - ); - continue; - } - scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } else { + cache[methodName] = octokit.request.defaults(endpointDefaults); } + return cache[methodName]; + } +}; +function endpointsToMethods(octokit) { + const newMethods = {}; + for (const scope of endpointMethodsMap.keys()) { + newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler); } return newMethods; } diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js index 2d9c8815b..2fe13ac22 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/index.js @@ -1,15 +1,14 @@ -import ENDPOINTS from "./generated/endpoints"; import { VERSION } from "./version"; import { endpointsToMethods } from "./endpoints-to-methods"; function restEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, ENDPOINTS); + const api = endpointsToMethods(octokit); return { rest: api }; } restEndpointMethods.VERSION = VERSION; function legacyRestEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, ENDPOINTS); + const api = endpointsToMethods(octokit); return { ...api, rest: api diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js index 4e88e0ecf..3c1d9ad5b 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-src/version.js @@ -1,4 +1,4 @@ -const VERSION = "7.2.1"; +const VERSION = "7.2.3"; export { VERSION }; diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js index 92d21de84..bf0c51ced 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/dist-web/index.js @@ -1,3 +1,6 @@ +// pkg/dist-src/version.js +var VERSION = "7.2.3"; + // pkg/dist-src/generated/endpoints.js var Endpoints = { actions: { @@ -1867,36 +1870,54 @@ var Endpoints = { }; var endpoints_default = Endpoints; -// pkg/dist-src/version.js -var VERSION = "7.2.1"; - // pkg/dist-src/endpoints-to-methods.js -function endpointsToMethods(octokit, endpointsMap) { - const newMethods = {}; - for (const [scope, endpoints] of Object.entries(endpointsMap)) { - for (const [methodName, endpoint] of Object.entries(endpoints)) { - const [route, defaults, decorations] = endpoint; - const [method, url] = route.split(/ /); - const endpointDefaults = Object.assign( - { method, url }, - defaults +var endpointMethodsMap = /* @__PURE__ */ new Map(); +for (const [scope, endpoints] of Object.entries(endpoints_default)) { + for (const [methodName, endpoint] of Object.entries(endpoints)) { + const [route, defaults, decorations] = endpoint; + const [method, url] = route.split(/ /); + const endpointDefaults = Object.assign( + { + method, + url + }, + defaults + ); + if (!endpointMethodsMap.has(scope)) { + endpointMethodsMap.set(scope, /* @__PURE__ */ new Map()); + } + endpointMethodsMap.get(scope).set(methodName, { + scope, + methodName, + endpointDefaults, + decorations + }); + } +} +var handler = { + get({ octokit, scope, cache }, methodName) { + if (cache[methodName]) { + return cache[methodName]; + } + const { decorations, endpointDefaults } = endpointMethodsMap.get(scope).get(methodName); + if (decorations) { + cache[methodName] = decorate( + octokit, + scope, + methodName, + endpointDefaults, + decorations ); - if (!newMethods[scope]) { - newMethods[scope] = {}; - } - const scopeMethods = newMethods[scope]; - if (decorations) { - scopeMethods[methodName] = decorate( - octokit, - scope, - methodName, - endpointDefaults, - decorations - ); - continue; - } - scopeMethods[methodName] = octokit.request.defaults(endpointDefaults); + } else { + cache[methodName] = octokit.request.defaults(endpointDefaults); } + return cache[methodName]; + } +}; +function endpointsToMethods(octokit) { + const newMethods = {}; + for (const scope of endpointMethodsMap.keys()) { + newMethods[scope] = new Proxy({ octokit, scope, cache: {} }, handler); } return newMethods; } @@ -1944,14 +1965,14 @@ function decorate(octokit, scope, methodName, defaults, decorations) { // pkg/dist-src/index.js function restEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, endpoints_default); + const api = endpointsToMethods(octokit); return { rest: api }; } restEndpointMethods.VERSION = VERSION; function legacyRestEndpointMethods(octokit) { - const api = endpointsToMethods(octokit, endpoints_default); + const api = endpointsToMethods(octokit); return { ...api, rest: api diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/package.json b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/package.json index ce7ce2a3f..bf606d66a 100644 --- a/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/package.json +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/plugin-rest-endpoint-methods/package.json @@ -1,6 +1,6 @@ { "name": "@octokit/plugin-rest-endpoint-methods", - "version": "7.2.1", + "version": "7.2.3", "description": "Octokit plugin adding one method for all of api.github.com REST API endpoints", "repository": "github:octokit/plugin-rest-endpoint-methods.js", "keywords": [ @@ -12,7 +12,7 @@ "author": "Gregor Martynus (https://twitter.com/gr2m)", "license": "MIT", "dependencies": { - "@octokit/types": "^9.3.1" + "@octokit/types": "^10.0.0" }, "devDependencies": { "@gimenete/type-writer": "^0.1.5", diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE b/action/node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE new file mode 100644 index 000000000..57bee5f18 --- /dev/null +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/types/LICENSE @@ -0,0 +1,7 @@ +MIT License Copyright (c) 2019 Octokit contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice (including the next paragraph) shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/types/README.md b/action/node_modules/@octokit/rest/node_modules/@octokit/types/README.md new file mode 100644 index 000000000..c48ce4246 --- /dev/null +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/types/README.md @@ -0,0 +1,65 @@ +# types.ts + +> Shared TypeScript definitions for Octokit projects + +[![@latest](https://img.shields.io/npm/v/@octokit/types.svg)](https://www.npmjs.com/package/@octokit/types) +[![Build Status](https://github.com/octokit/types.ts/workflows/Test/badge.svg)](https://github.com/octokit/types.ts/actions?workflow=Test) + + + +- [Usage](#usage) +- [Examples](#examples) + - [Get parameter and response data types for a REST API endpoint](#get-parameter-and-response-data-types-for-a-rest-api-endpoint) + - [Get response types from endpoint methods](#get-response-types-from-endpoint-methods) +- [Contributing](#contributing) +- [License](#license) + + + +## Usage + +See all exported types at https://octokit.github.io/types.ts + +## Examples + +### Get parameter and response data types for a REST API endpoint + +```ts +import { Endpoints } from "@octokit/types"; + +type listUserReposParameters = + Endpoints["GET /repos/{owner}/{repo}"]["parameters"]; +type listUserReposResponse = Endpoints["GET /repos/{owner}/{repo}"]["response"]; + +async function listRepos( + options: listUserReposParameters +): listUserReposResponse["data"] { + // ... +} +``` + +### Get response types from endpoint methods + +```ts +import { + GetResponseTypeFromEndpointMethod, + GetResponseDataTypeFromEndpointMethod, +} from "@octokit/types"; +import { Octokit } from "@octokit/rest"; + +const octokit = new Octokit(); +type CreateLabelResponseType = GetResponseTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +type CreateLabelResponseDataType = GetResponseDataTypeFromEndpointMethod< + typeof octokit.issues.createLabel +>; +``` + +## Contributing + +See [CONTRIBUTING.md](CONTRIBUTING.md) + +## License + +[MIT](LICENSE) diff --git a/action/node_modules/@octokit/rest/node_modules/@octokit/types/package.json b/action/node_modules/@octokit/rest/node_modules/@octokit/types/package.json new file mode 100644 index 000000000..e663b323f --- /dev/null +++ b/action/node_modules/@octokit/rest/node_modules/@octokit/types/package.json @@ -0,0 +1,46 @@ +{ + "name": "@octokit/types", + "version": "10.0.0", + "publishConfig": { + "access": "public" + }, + "description": "Shared TypeScript definitions for Octokit projects", + "dependencies": { + "@octokit/openapi-types": "^18.0.0" + }, + "repository": "github:octokit/types.ts", + "keywords": [ + "github", + "api", + "sdk", + "toolkit", + "typescript" + ], + "author": "Gregor Martynus (https://twitter.com/gr2m)", + "license": "MIT", + "devDependencies": { + "@octokit/tsconfig": "^1.0.2", + "@types/node": ">= 8", + "github-openapi-graphql-query": "^4.0.0", + "handlebars": "^4.7.6", + "json-schema-to-typescript": "^13.0.0", + "lodash.set": "^4.3.2", + "npm-run-all": "^4.1.5", + "pascal-case": "^3.1.1", + "prettier": "^2.0.0", + "semantic-release": "^21.0.0", + "semantic-release-plugin-update-version-in-files": "^1.0.0", + "sort-keys": "^4.2.0", + "string-to-jsdoc-comment": "^1.0.0", + "typedoc": "^0.24.0", + "typescript": "^5.0.0" + }, + "octokit": { + "openapi-version": "12.0.0" + }, + "files": [ + "dist-types/**" + ], + "types": "dist-types/index.d.ts", + "sideEffects": false +} diff --git a/action/node_modules/@octokit/rest/package.json b/action/node_modules/@octokit/rest/package.json index c0221e75f..ab27012ce 100644 --- a/action/node_modules/@octokit/rest/package.json +++ b/action/node_modules/@octokit/rest/package.json @@ -1,6 +1,6 @@ { "name": "@octokit/rest", - "version": "19.0.11", + "version": "19.0.13", "publishConfig": { "access": "public" }, @@ -42,10 +42,10 @@ "@octokit/auth-app": "^4.0.13", "@octokit/fixtures-server": "^7.0.0", "@octokit/request": "^6.2.5", - "@octokit/tsconfig": "^1.0.2", + "@octokit/tsconfig": "^2.0.0", "@types/jest": "^29.0.0", "@types/node": "^18.0.0", - "esbuild": "^0.17.19", + "esbuild": "^0.18.0", "fetch-mock": "^9.0.0", "glob": "^10.2.5", "jest": "^29.0.0", diff --git a/action/node_modules/@octokit/types/dist-node/index.js b/action/node_modules/@octokit/types/dist-node/index.js deleted file mode 100644 index b302d8696..000000000 --- a/action/node_modules/@octokit/types/dist-node/index.js +++ /dev/null @@ -1,8 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -const VERSION = "9.3.1"; - -exports.VERSION = VERSION; -//# sourceMappingURL=index.js.map diff --git a/action/node_modules/@octokit/types/dist-src/AuthInterface.js b/action/node_modules/@octokit/types/dist-src/AuthInterface.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/AuthInterface.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/EndpointDefaults.js b/action/node_modules/@octokit/types/dist-src/EndpointDefaults.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/EndpointDefaults.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/EndpointInterface.js b/action/node_modules/@octokit/types/dist-src/EndpointInterface.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/EndpointInterface.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/EndpointOptions.js b/action/node_modules/@octokit/types/dist-src/EndpointOptions.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/EndpointOptions.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/Fetch.js b/action/node_modules/@octokit/types/dist-src/Fetch.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/Fetch.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js b/action/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/GetResponseTypeFromEndpointMethod.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/OctokitResponse.js b/action/node_modules/@octokit/types/dist-src/OctokitResponse.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/OctokitResponse.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestError.js b/action/node_modules/@octokit/types/dist-src/RequestError.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestError.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestHeaders.js b/action/node_modules/@octokit/types/dist-src/RequestHeaders.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestHeaders.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestInterface.js b/action/node_modules/@octokit/types/dist-src/RequestInterface.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestInterface.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestMethod.js b/action/node_modules/@octokit/types/dist-src/RequestMethod.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestMethod.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestOptions.js b/action/node_modules/@octokit/types/dist-src/RequestOptions.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestOptions.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestParameters.js b/action/node_modules/@octokit/types/dist-src/RequestParameters.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestParameters.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/RequestRequestOptions.js b/action/node_modules/@octokit/types/dist-src/RequestRequestOptions.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/RequestRequestOptions.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/ResponseHeaders.js b/action/node_modules/@octokit/types/dist-src/ResponseHeaders.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/ResponseHeaders.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/Route.js b/action/node_modules/@octokit/types/dist-src/Route.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/Route.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/Signal.js b/action/node_modules/@octokit/types/dist-src/Signal.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/Signal.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/StrategyInterface.js b/action/node_modules/@octokit/types/dist-src/StrategyInterface.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/StrategyInterface.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/Url.js b/action/node_modules/@octokit/types/dist-src/Url.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/Url.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/VERSION.js b/action/node_modules/@octokit/types/dist-src/VERSION.js deleted file mode 100644 index bb7066d0d..000000000 --- a/action/node_modules/@octokit/types/dist-src/VERSION.js +++ /dev/null @@ -1 +0,0 @@ -export const VERSION = "9.3.1"; diff --git a/action/node_modules/@octokit/types/dist-src/generated/Endpoints.js b/action/node_modules/@octokit/types/dist-src/generated/Endpoints.js deleted file mode 100644 index cb0ff5c3b..000000000 --- a/action/node_modules/@octokit/types/dist-src/generated/Endpoints.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/action/node_modules/@octokit/types/dist-src/index.js b/action/node_modules/@octokit/types/dist-src/index.js deleted file mode 100644 index 004ae9b22..000000000 --- a/action/node_modules/@octokit/types/dist-src/index.js +++ /dev/null @@ -1,21 +0,0 @@ -export * from "./AuthInterface"; -export * from "./EndpointDefaults"; -export * from "./EndpointInterface"; -export * from "./EndpointOptions"; -export * from "./Fetch"; -export * from "./OctokitResponse"; -export * from "./RequestError"; -export * from "./RequestHeaders"; -export * from "./RequestInterface"; -export * from "./RequestMethod"; -export * from "./RequestOptions"; -export * from "./RequestParameters"; -export * from "./RequestRequestOptions"; -export * from "./ResponseHeaders"; -export * from "./Route"; -export * from "./Signal"; -export * from "./StrategyInterface"; -export * from "./Url"; -export * from "./VERSION"; -export * from "./GetResponseTypeFromEndpointMethod"; -export * from "./generated/Endpoints"; diff --git a/action/node_modules/@octokit/types/dist-web/index.js b/action/node_modules/@octokit/types/dist-web/index.js deleted file mode 100644 index a0b6193dd..000000000 --- a/action/node_modules/@octokit/types/dist-web/index.js +++ /dev/null @@ -1,4 +0,0 @@ -const VERSION = "9.3.1"; - -export { VERSION }; -//# sourceMappingURL=index.js.map diff --git a/action/node_modules/@octokit/types/package.json b/action/node_modules/@octokit/types/package.json index 5ef4c982a..a3095ef07 100644 --- a/action/node_modules/@octokit/types/package.json +++ b/action/node_modules/@octokit/types/package.json @@ -1,21 +1,14 @@ { "name": "@octokit/types", + "version": "9.3.2", + "publishConfig": { + "access": "public" + }, "description": "Shared TypeScript definitions for Octokit projects", - "version": "9.3.1", - "license": "MIT", - "files": [ - "dist-*/**", - "bin/**" - ], - "source": "dist-src/index.js", - "types": "dist-types/index.d.ts", - "octokit": { - "openapi-version": "12.0.0" + "dependencies": { + "@octokit/openapi-types": "^18.0.0" }, - "main": "dist-node/index.js", - "module": "dist-web/index.js", - "pika": true, - "sideEffects": false, + "repository": "github:octokit/types.ts", "keywords": [ "github", "api", @@ -23,15 +16,10 @@ "toolkit", "typescript" ], - "repository": "github:octokit/types.ts", - "dependencies": { - "@octokit/openapi-types": "^18.0.0" - }, + "author": "Gregor Martynus (https://twitter.com/gr2m)", + "license": "MIT", "devDependencies": { - "@pika/pack": "^0.3.7", - "@pika/plugin-build-node": "^0.9.0", - "@pika/plugin-build-web": "^0.9.0", - "@pika/plugin-ts-standard-pkg": "^0.9.0", + "@octokit/tsconfig": "^1.0.2", "@types/node": ">= 8", "github-openapi-graphql-query": "^4.0.0", "handlebars": "^4.7.6", @@ -39,7 +27,6 @@ "lodash.set": "^4.3.2", "npm-run-all": "^4.1.5", "pascal-case": "^3.1.1", - "pika-plugin-merge-properties": "^1.0.6", "prettier": "^2.0.0", "semantic-release": "^21.0.0", "semantic-release-plugin-update-version-in-files": "^1.0.0", @@ -48,7 +35,12 @@ "typedoc": "^0.24.0", "typescript": "^5.0.0" }, - "publishConfig": { - "access": "public" - } + "octokit": { + "openapi-version": "12.0.0" + }, + "files": [ + "dist-types/**" + ], + "types": "dist-types/index.d.ts", + "sideEffects": false } diff --git a/action/node_modules/semver/classes/comparator.js b/action/node_modules/semver/classes/comparator.js index 2146c884b..3d39c0eef 100644 --- a/action/node_modules/semver/classes/comparator.js +++ b/action/node_modules/semver/classes/comparator.js @@ -16,6 +16,7 @@ class Comparator { } } + comp = comp.trim().split(/\s+/).join(' ') debug('comparator', comp, options) this.options = options this.loose = !!options.loose @@ -133,7 +134,7 @@ class Comparator { module.exports = Comparator const parseOptions = require('../internal/parse-options') -const { re, t } = require('../internal/re') +const { safeRe: re, t } = require('../internal/re') const cmp = require('../functions/cmp') const debug = require('../internal/debug') const SemVer = require('./semver') diff --git a/action/node_modules/semver/classes/range.js b/action/node_modules/semver/classes/range.js index d9e866de4..53c2540fd 100644 --- a/action/node_modules/semver/classes/range.js +++ b/action/node_modules/semver/classes/range.js @@ -26,19 +26,26 @@ class Range { this.loose = !!options.loose this.includePrerelease = !!options.includePrerelease - // First, split based on boolean or || + // First reduce all whitespace as much as possible so we do not have to rely + // on potentially slow regexes like \s*. This is then stored and used for + // future error messages as well. this.raw = range - this.set = range + .trim() + .split(/\s+/) + .join(' ') + + // First, split on || + this.set = this.raw .split('||') // map the range to a 2d array of comparators - .map(r => this.parseRange(r.trim())) + .map(r => this.parseRange(r)) // throw out any comparator lists that are empty // this generally means that it was not a valid range, which is allowed // in loose mode, but will still throw if the WHOLE range is invalid. .filter(c => c.length) if (!this.set.length) { - throw new TypeError(`Invalid SemVer Range: ${range}`) + throw new TypeError(`Invalid SemVer Range: ${this.raw}`) } // if we have any that are not the null set, throw out null sets. @@ -64,9 +71,7 @@ class Range { format () { this.range = this.set - .map((comps) => { - return comps.join(' ').trim() - }) + .map((comps) => comps.join(' ').trim()) .join('||') .trim() return this.range @@ -77,8 +82,6 @@ class Range { } parseRange (range) { - range = range.trim() - // memoize range parsing for performance. // this is a very hot path, and fully deterministic. const memoOpts = @@ -105,9 +108,6 @@ class Range { // `^ 1.2.3` => `^1.2.3` range = range.replace(re[t.CARETTRIM], caretTrimReplace) - // normalize spaces - range = range.split(/\s+/).join(' ') - // At this point, the range is completely trimmed and // ready to be split into comparators. @@ -203,7 +203,7 @@ const Comparator = require('./comparator') const debug = require('../internal/debug') const SemVer = require('./semver') const { - re, + safeRe: re, t, comparatorTrimReplace, tildeTrimReplace, @@ -257,10 +257,13 @@ const isX = id => !id || id.toLowerCase() === 'x' || id === '*' // ~1.2.3, ~>1.2.3 --> >=1.2.3 <1.3.0-0 // ~1.2.0, ~>1.2.0 --> >=1.2.0 <1.3.0-0 // ~0.0.1 --> >=0.0.1 <0.1.0-0 -const replaceTildes = (comp, options) => - comp.trim().split(/\s+/).map((c) => { - return replaceTilde(c, options) - }).join(' ') +const replaceTildes = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceTilde(c, options)) + .join(' ') +} const replaceTilde = (comp, options) => { const r = options.loose ? re[t.TILDELOOSE] : re[t.TILDE] @@ -298,10 +301,13 @@ const replaceTilde = (comp, options) => { // ^1.2.0 --> >=1.2.0 <2.0.0-0 // ^0.0.1 --> >=0.0.1 <0.0.2-0 // ^0.1.0 --> >=0.1.0 <0.2.0-0 -const replaceCarets = (comp, options) => - comp.trim().split(/\s+/).map((c) => { - return replaceCaret(c, options) - }).join(' ') +const replaceCarets = (comp, options) => { + return comp + .trim() + .split(/\s+/) + .map((c) => replaceCaret(c, options)) + .join(' ') +} const replaceCaret = (comp, options) => { debug('caret', comp, options) @@ -358,9 +364,10 @@ const replaceCaret = (comp, options) => { const replaceXRanges = (comp, options) => { debug('replaceXRanges', comp, options) - return comp.split(/\s+/).map((c) => { - return replaceXRange(c, options) - }).join(' ') + return comp + .split(/\s+/) + .map((c) => replaceXRange(c, options)) + .join(' ') } const replaceXRange = (comp, options) => { @@ -443,12 +450,15 @@ const replaceXRange = (comp, options) => { const replaceStars = (comp, options) => { debug('replaceStars', comp, options) // Looseness is ignored here. star is always as loose as it gets! - return comp.trim().replace(re[t.STAR], '') + return comp + .trim() + .replace(re[t.STAR], '') } const replaceGTE0 = (comp, options) => { debug('replaceGTE0', comp, options) - return comp.trim() + return comp + .trim() .replace(re[options.includePrerelease ? t.GTE0PRE : t.GTE0], '') } @@ -486,7 +496,7 @@ const hyphenReplace = incPr => ($0, to = `<=${to}` } - return (`${from} ${to}`).trim() + return `${from} ${to}`.trim() } const testSet = (set, version, options) => { diff --git a/action/node_modules/semver/classes/semver.js b/action/node_modules/semver/classes/semver.js index 99dbe82db..84e84590e 100644 --- a/action/node_modules/semver/classes/semver.js +++ b/action/node_modules/semver/classes/semver.js @@ -1,6 +1,6 @@ const debug = require('../internal/debug') const { MAX_LENGTH, MAX_SAFE_INTEGER } = require('../internal/constants') -const { re, t } = require('../internal/re') +const { safeRe: re, t } = require('../internal/re') const parseOptions = require('../internal/parse-options') const { compareIdentifiers } = require('../internal/identifiers') @@ -291,8 +291,10 @@ class SemVer { default: throw new Error(`invalid increment argument: ${release}`) } - this.format() - this.raw = this.version + this.raw = this.format() + if (this.build.length) { + this.raw += `+${this.build.join('.')}` + } return this } } diff --git a/action/node_modules/semver/functions/coerce.js b/action/node_modules/semver/functions/coerce.js index 2e01452fd..febbff9c2 100644 --- a/action/node_modules/semver/functions/coerce.js +++ b/action/node_modules/semver/functions/coerce.js @@ -1,6 +1,6 @@ const SemVer = require('../classes/semver') const parse = require('./parse') -const { re, t } = require('../internal/re') +const { safeRe: re, t } = require('../internal/re') const coerce = (version, options) => { if (version instanceof SemVer) { diff --git a/action/node_modules/semver/functions/diff.js b/action/node_modules/semver/functions/diff.js index fafc11c40..fc224e302 100644 --- a/action/node_modules/semver/functions/diff.js +++ b/action/node_modules/semver/functions/diff.js @@ -13,6 +13,35 @@ const diff = (version1, version2) => { const highVersion = v1Higher ? v1 : v2 const lowVersion = v1Higher ? v2 : v1 const highHasPre = !!highVersion.prerelease.length + const lowHasPre = !!lowVersion.prerelease.length + + if (lowHasPre && !highHasPre) { + // Going from prerelease -> no prerelease requires some special casing + + // If the low version has only a major, then it will always be a major + // Some examples: + // 1.0.0-1 -> 1.0.0 + // 1.0.0-1 -> 1.1.1 + // 1.0.0-1 -> 2.0.0 + if (!lowVersion.patch && !lowVersion.minor) { + return 'major' + } + + // Otherwise it can be determined by checking the high version + + if (highVersion.patch) { + // anything higher than a patch bump would result in the wrong version + return 'patch' + } + + if (highVersion.minor) { + // anything higher than a minor bump would result in the wrong version + return 'minor' + } + + // bumping major/minor/patch all have same result + return 'major' + } // add the `pre` prefix if we are going to a prerelease version const prefix = highHasPre ? 'pre' : '' @@ -29,26 +58,8 @@ const diff = (version1, version2) => { return prefix + 'patch' } - // at this point we know stable versions match but overall versions are not equal, - // so either they are both prereleases, or the lower version is a prerelease - - if (highHasPre) { - // high and low are preleases - return 'prerelease' - } - - if (lowVersion.patch) { - // anything higher than a patch bump would result in the wrong version - return 'patch' - } - - if (lowVersion.minor) { - // anything higher than a minor bump would result in the wrong version - return 'minor' - } - - // bumping major/minor/patch all have same result - return 'major' + // high and low are preleases + return 'prerelease' } module.exports = diff diff --git a/action/node_modules/semver/internal/re.js b/action/node_modules/semver/internal/re.js index ed88398a9..f73ef1aa0 100644 --- a/action/node_modules/semver/internal/re.js +++ b/action/node_modules/semver/internal/re.js @@ -4,16 +4,27 @@ exports = module.exports = {} // The actual regexps go on exports.re const re = exports.re = [] +const safeRe = exports.safeRe = [] const src = exports.src = [] const t = exports.t = {} let R = 0 const createToken = (name, value, isGlobal) => { + // Replace all greedy whitespace to prevent regex dos issues. These regex are + // used internally via the safeRe object since all inputs in this library get + // normalized first to trim and collapse all extra whitespace. The original + // regexes are exported for userland consumption and lower level usage. A + // future breaking change could export the safer regex only with a note that + // all input should have extra whitespace removed. + const safe = value + .split('\\s*').join('\\s{0,1}') + .split('\\s+').join('\\s') const index = R++ debug(name, index, value) t[name] = index src[index] = value re[index] = new RegExp(value, isGlobal ? 'g' : undefined) + safeRe[index] = new RegExp(safe, isGlobal ? 'g' : undefined) } // The following Regular Expressions can be used for tokenizing, diff --git a/action/node_modules/semver/package.json b/action/node_modules/semver/package.json index 592404a3c..7d0aff3c0 100644 --- a/action/node_modules/semver/package.json +++ b/action/node_modules/semver/package.json @@ -1,6 +1,6 @@ { "name": "semver", - "version": "7.5.1", + "version": "7.5.2", "description": "The semantic version parser used by npm.", "main": "index.js", "scripts": { @@ -14,7 +14,7 @@ }, "devDependencies": { "@npmcli/eslint-config": "^4.0.0", - "@npmcli/template-oss": "4.14.1", + "@npmcli/template-oss": "4.15.1", "tap": "^16.0.0" }, "license": "ISC", @@ -37,7 +37,7 @@ "range.bnf" ], "tap": { - "check-coverage": true, + "timeout": 30, "coverage-map": "map.js", "nyc-arg": [ "--exclude", @@ -53,7 +53,7 @@ "author": "GitHub Inc.", "templateOSS": { "//@npmcli/template-oss": "This file is partially managed by @npmcli/template-oss. Edits may be overwritten.", - "version": "4.14.1", + "version": "4.15.1", "engines": ">=10", "ciVersions": [ "10.0.0", diff --git a/action/package.json b/action/package.json index 44a1e95bd..2f15c8428 100644 --- a/action/package.json +++ b/action/package.json @@ -11,9 +11,9 @@ "dependencies": { "@actions/core": "^1.10.0", "@actions/github": "^5.1.1", - "@octokit/core": "^4.2.1", + "@octokit/core": "^4.2.4", "@octokit/plugin-rest-endpoint-methods": "7.1.3", - "@octokit/rest": "^19.0.11", + "@octokit/rest": "^19.0.13", "cspell": "^6.31.1", "cspell-glob": "^6.31.1", "vscode-uri": "^3.0.7" diff --git a/package.json b/package.json index d5a1949e2..79a2b42a1 100644 --- a/package.json +++ b/package.json @@ -51,10 +51,10 @@ "@pollyjs/persister-fs": "^6.0.5", "@tsconfig/node12": "^1.0.11", "@types/jest": "^29.5.2", - "@typescript-eslint/eslint-plugin": "^5.59.9", - "@typescript-eslint/parser": "^5.59.9", + "@typescript-eslint/eslint-plugin": "^5.60.0", + "@typescript-eslint/parser": "^5.60.0", "env-cmd": "^10.1.0", - "eslint": "^8.42.0", + "eslint": "^8.43.0", "jest": "^29.5.0", "prettier": "^2.8.8", "shx": "^0.3.4", diff --git a/yarn.lock b/yarn.lock index 8f7802424..a2a415bfc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -667,10 +667,10 @@ minimatch "^3.1.2" strip-json-comments "^3.1.1" -"@eslint/js@8.42.0": - version "8.42.0" - resolved "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz#484a1d638de2911e6f5a30c12f49c7e4a3270fb6" - integrity sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw== +"@eslint/js@8.43.0": + version "8.43.0" + resolved "https://registry.npmjs.org/@eslint/js/-/js-8.43.0.tgz#559ca3d9ddbd6bf907ad524320a0d14b85586af0" + integrity sha512-s2UHCoiXfxMvmfzqoN+vrQ84ahUSYde9qNO1MdxmoEhyHWsfmwOpFlwYV+ePJEVc7gFnATGUi376WowX1N7tFg== "@humanwhocodes/config-array@^0.11.10": version "0.11.10" @@ -982,10 +982,10 @@ before-after-hook "^2.2.0" universal-user-agent "^6.0.0" -"@octokit/core@^4.2.1": - version "4.2.1" - resolved "https://registry.npmjs.org/@octokit/core/-/core-4.2.1.tgz#fee6341ad0ce60c29cc455e056cd5b500410a588" - integrity sha512-tEDxFx8E38zF3gT7sSMDrT1tGumDgsw5yPG6BBh/X+5ClIQfMH/Yqocxz1PnHx6CHyF6pxmovUTOfZAUvQ0Lvw== +"@octokit/core@^4.2.1", "@octokit/core@^4.2.4": + version "4.2.4" + resolved "https://registry.npmjs.org/@octokit/core/-/core-4.2.4.tgz#d8769ec2b43ff37cc3ea89ec4681a20ba58ef907" + integrity sha512-rYKilwgzQ7/imScn3M9/pFfUf4I1AZEH3KhyJmtPdE2zfaXAn2mFfUy4FbKewzc2We5y/LlKLj36fWJLKC2SIQ== dependencies: "@octokit/auth-token" "^3.0.0" "@octokit/graphql" "^5.0.0" @@ -1077,11 +1077,11 @@ deprecation "^2.3.1" "@octokit/plugin-rest-endpoint-methods@^7.1.2": - version "7.2.1" - resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.1.tgz#0e086930c8b4470b0eabaa7d68b67fd1b245bb3a" - integrity sha512-UmlNrrcF+AXxcxhZslTt1a/8aDxUKH0trrt/mJCxEPrWbW1ZEc+6xxcd5/n0iw3b+Xo8UBJQUKDr71+vNCBpRQ== + version "7.2.3" + resolved "https://registry.npmjs.org/@octokit/plugin-rest-endpoint-methods/-/plugin-rest-endpoint-methods-7.2.3.tgz#37a84b171a6cb6658816c82c4082ac3512021797" + integrity sha512-I5Gml6kTAkzVlN7KCtjOM+Ruwe/rQppp0QU372K1GP7kNOYEKe8Xn5BW4sE62JAHdwpq95OQK/qGNyKQMUzVgA== dependencies: - "@octokit/types" "^9.3.1" + "@octokit/types" "^10.0.0" "@octokit/request-error@^2.0.5", "@octokit/request-error@^2.1.0": version "2.1.0" @@ -1114,9 +1114,9 @@ universal-user-agent "^6.0.0" "@octokit/request@^6.0.0": - version "6.2.5" - resolved "https://registry.npmjs.org/@octokit/request/-/request-6.2.5.tgz#7beef1065042998f7455973ef3f818e7b84d6ec2" - integrity sha512-z83E8UIlPNaJUsXpjD8E0V5o/5f+vJJNbNcBwVZsX3/vC650U41cOkTLjq4PKk9BYonQGOnx7N17gvLyNjgGcQ== + version "6.2.8" + resolved "https://registry.npmjs.org/@octokit/request/-/request-6.2.8.tgz#aaf480b32ab2b210e9dadd8271d187c93171d8eb" + integrity sha512-ow4+pkVQ+6XVVsekSYBzJC0VTVvh/FCTUUgTsboGq+DTeWdyIFV8WSCdo0RIxk6wSkBTHqIK1mYuY7nOBXOchw== dependencies: "@octokit/endpoint" "^7.0.0" "@octokit/request-error" "^3.0.0" @@ -1125,10 +1125,10 @@ node-fetch "^2.6.7" universal-user-agent "^6.0.0" -"@octokit/rest@^19.0.11": - version "19.0.11" - resolved "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.11.tgz#2ae01634fed4bd1fca5b642767205ed3fd36177c" - integrity sha512-m2a9VhaP5/tUw8FwfnW2ICXlXpLPIqxtg3XcAiGMLj/Xhw3RSBfZ8le/466ktO1Gcjr8oXudGnHhxV1TXJgFxw== +"@octokit/rest@^19.0.13": + version "19.0.13" + resolved "https://registry.npmjs.org/@octokit/rest/-/rest-19.0.13.tgz#e799393264edc6d3c67eeda9e5bd7832dcf974e4" + integrity sha512-/EzVox5V9gYGdbAI+ovYj3nXQT1TtTHRT+0eZPcuC05UFSWO3mdO9UY1C0i2eLF9Un1ONJkAk+IEtYGAC+TahA== dependencies: "@octokit/core" "^4.2.1" "@octokit/plugin-paginate-rest" "^6.1.2" @@ -1140,6 +1140,13 @@ resolved "https://registry.npmjs.org/@octokit/tsconfig/-/tsconfig-1.0.2.tgz#59b024d6f3c0ed82f00d08ead5b3750469125af7" integrity sha512-I0vDR0rdtP8p2lGMzvsJzbhdOWy405HcGovrspJ8RRibHnyRgggUSNO5AIox5LmqiwmatHKYsvj6VGFHkqS7lA== +"@octokit/types@^10.0.0": + version "10.0.0" + resolved "https://registry.npmjs.org/@octokit/types/-/types-10.0.0.tgz#7ee19c464ea4ada306c43f1a45d444000f419a4a" + integrity sha512-Vm8IddVmhCgU1fxC1eyinpwqzXPEYu0NrYzD3YZjlGjyftdLBTeqNblRC0jmJmgxbJIsQlyogVeGnrNaaMVzIg== + dependencies: + "@octokit/openapi-types" "^18.0.0" + "@octokit/types@^6.0.3", "@octokit/types@^6.16.1", "@octokit/types@^6.39.0", "@octokit/types@^6.40.0": version "6.41.0" resolved "https://registry.npmjs.org/@octokit/types/-/types-6.41.0.tgz#e58ef78d78596d2fb7df9c6259802464b5f84a04" @@ -1147,10 +1154,10 @@ dependencies: "@octokit/openapi-types" "^12.11.0" -"@octokit/types@^9.0.0", "@octokit/types@^9.2.3", "@octokit/types@^9.3.1": - version "9.3.1" - resolved "https://registry.npmjs.org/@octokit/types/-/types-9.3.1.tgz#9eb20390f8cfcc975635d813f9a2094efd4aa2dd" - integrity sha512-zfJzyXLHC42sWcn2kS+oZ/DRvFZBYCCbfInZtwp1Uopl1qh6pRg4NSP/wFX1xCOpXvEkctiG1sxlSlkZmzvxdw== +"@octokit/types@^9.0.0", "@octokit/types@^9.2.3": + version "9.3.2" + resolved "https://registry.npmjs.org/@octokit/types/-/types-9.3.2.tgz#3f5f89903b69f6a2d196d78ec35f888c0013cac5" + integrity sha512-D4iHGTdAnEEVsB8fl95m1hiz7D5YiRdQ9b/OEb3BYRVwbLsGHcRVPz+u+BgRLNk0Q0/4iZCBqDN96j2XNxfXrA== dependencies: "@octokit/openapi-types" "^18.0.0" @@ -1247,9 +1254,9 @@ type-detect "4.0.8" "@sinonjs/fake-timers@^10.0.2": - version "10.2.0" - resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.2.0.tgz#b3e322a34c5f26e3184e7f6115695f299c1b1194" - integrity sha512-OPwQlEdg40HAj5KNF8WW6q2KG4Z+cBCZb3m4ninfTZKaBmbIJodviQsDBoYMPHkOyJJMHnOJo5j2+LKDOhOACg== + version "10.3.0" + resolved "https://registry.npmjs.org/@sinonjs/fake-timers/-/fake-timers-10.3.0.tgz#55fdff1ecab9f354019129daf4df0dd4d923ea66" + integrity sha512-V4BG07kuYSUkTCSBHG8G8TNhM+F19jXFWnQtzj+we8DrkpSBCee9Z3Ms8yiGer/dlmhe35/Xdgyo3/0rQKg7YA== dependencies: "@sinonjs/commons" "^3.0.0" @@ -1331,9 +1338,9 @@ integrity sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA== "@types/node@*": - version "20.3.0" - resolved "https://registry.npmjs.org/@types/node/-/node-20.3.0.tgz#719498898d5defab83c3560f45d8498f58d11938" - integrity sha512-cumHmIAf6On83X7yP+LrsEyUOf/YlociZelmpRYaGFydoaPdxdt80MAbu6vWerQT2COCp2nPvHdsbD7tHn/YlQ== + version "20.3.1" + resolved "https://registry.npmjs.org/@types/node/-/node-20.3.1.tgz#e8a83f1aa8b649377bb1fb5d7bac5cb90e784dfe" + integrity sha512-EhcH/wvidPy1WeML3TtYFGR83UzjxeWRen9V402T8aUGYsCHOmfoisV3ZSg03gAFIbLq8TnWOJ0f4cALtnSEUg== "@types/prettier@^2.1.5": version "2.7.3" @@ -1369,15 +1376,15 @@ dependencies: "@types/yargs-parser" "*" -"@typescript-eslint/eslint-plugin@^5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.9.tgz#2604cfaf2b306e120044f901e20c8ed926debf15" - integrity sha512-4uQIBq1ffXd2YvF7MAvehWKW3zVv/w+mSfRAu+8cKbfj3nwzyqJLNcZJpQ/WZ1HLbJDiowwmQ6NO+63nCA+fqA== +"@typescript-eslint/eslint-plugin@^5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.60.0.tgz#2f4bea6a3718bed2ba52905358d0f45cd3620d31" + integrity sha512-78B+anHLF1TI8Jn/cD0Q00TBYdMgjdOn980JfAVa9yw5sop8nyTfVOQAv6LWywkOGLclDBtv5z3oxN4w7jxyNg== dependencies: "@eslint-community/regexpp" "^4.4.0" - "@typescript-eslint/scope-manager" "5.59.9" - "@typescript-eslint/type-utils" "5.59.9" - "@typescript-eslint/utils" "5.59.9" + "@typescript-eslint/scope-manager" "5.60.0" + "@typescript-eslint/type-utils" "5.60.0" + "@typescript-eslint/utils" "5.60.0" debug "^4.3.4" grapheme-splitter "^1.0.4" ignore "^5.2.0" @@ -1385,72 +1392,72 @@ semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/parser@^5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.9.tgz#a85c47ccdd7e285697463da15200f9a8561dd5fa" - integrity sha512-FsPkRvBtcLQ/eVK1ivDiNYBjn3TGJdXy2fhXX+rc7czWl4ARwnpArwbihSOHI2Peg9WbtGHrbThfBUkZZGTtvQ== +"@typescript-eslint/parser@^5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.60.0.tgz#08f4daf5fc6548784513524f4f2f359cebb4068a" + integrity sha512-jBONcBsDJ9UoTWrARkRRCgDz6wUggmH5RpQVlt7BimSwaTkTjwypGzKORXbR4/2Hqjk9hgwlon2rVQAjWNpkyQ== dependencies: - "@typescript-eslint/scope-manager" "5.59.9" - "@typescript-eslint/types" "5.59.9" - "@typescript-eslint/typescript-estree" "5.59.9" + "@typescript-eslint/scope-manager" "5.60.0" + "@typescript-eslint/types" "5.60.0" + "@typescript-eslint/typescript-estree" "5.60.0" debug "^4.3.4" -"@typescript-eslint/scope-manager@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.9.tgz#eadce1f2733389cdb58c49770192c0f95470d2f4" - integrity sha512-8RA+E+w78z1+2dzvK/tGZ2cpGigBZ58VMEHDZtpE1v+LLjzrYGc8mMaTONSxKyEkz3IuXFM0IqYiGHlCsmlZxQ== +"@typescript-eslint/scope-manager@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.60.0.tgz#ae511967b4bd84f1d5e179bb2c82857334941c1c" + integrity sha512-hakuzcxPwXi2ihf9WQu1BbRj1e/Pd8ZZwVTG9kfbxAMZstKz8/9OoexIwnmLzShtsdap5U/CoQGRCWlSuPbYxQ== dependencies: - "@typescript-eslint/types" "5.59.9" - "@typescript-eslint/visitor-keys" "5.59.9" + "@typescript-eslint/types" "5.60.0" + "@typescript-eslint/visitor-keys" "5.60.0" -"@typescript-eslint/type-utils@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.9.tgz#53bfaae2e901e6ac637ab0536d1754dfef4dafc2" - integrity sha512-ksEsT0/mEHg9e3qZu98AlSrONAQtrSTljL3ow9CGej8eRo7pe+yaC/mvTjptp23Xo/xIf2mLZKC6KPv4Sji26Q== +"@typescript-eslint/type-utils@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.60.0.tgz#69b09087eb12d7513d5b07747e7d47f5533aa228" + integrity sha512-X7NsRQddORMYRFH7FWo6sA9Y/zbJ8s1x1RIAtnlj6YprbToTiQnM6vxcMu7iYhdunmoC0rUWlca13D5DVHkK2g== dependencies: - "@typescript-eslint/typescript-estree" "5.59.9" - "@typescript-eslint/utils" "5.59.9" + "@typescript-eslint/typescript-estree" "5.60.0" + "@typescript-eslint/utils" "5.60.0" debug "^4.3.4" tsutils "^3.21.0" -"@typescript-eslint/types@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.9.tgz#3b4e7ae63718ce1b966e0ae620adc4099a6dcc52" - integrity sha512-uW8H5NRgTVneSVTfiCVffBb8AbwWSKg7qcA4Ot3JI3MPCJGsB4Db4BhvAODIIYE5mNj7Q+VJkK7JxmRhk2Lyjw== +"@typescript-eslint/types@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.60.0.tgz#3179962b28b4790de70e2344465ec97582ce2558" + integrity sha512-ascOuoCpNZBccFVNJRSC6rPq4EmJ2NkuoKnd6LDNyAQmdDnziAtxbCGWCbefG1CNzmDvd05zO36AmB7H8RzKPA== -"@typescript-eslint/typescript-estree@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.9.tgz#6bfea844e468427b5e72034d33c9fffc9557392b" - integrity sha512-pmM0/VQ7kUhd1QyIxgS+aRvMgw+ZljB3eDb+jYyp6d2bC0mQWLzUDF+DLwCTkQ3tlNyVsvZRXjFyV0LkU/aXjA== +"@typescript-eslint/typescript-estree@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.60.0.tgz#4ddf1a81d32a850de66642d9b3ad1e3254fb1600" + integrity sha512-R43thAuwarC99SnvrBmh26tc7F6sPa2B3evkXp/8q954kYL6Ro56AwASYWtEEi+4j09GbiNAHqYwNNZuNlARGQ== dependencies: - "@typescript-eslint/types" "5.59.9" - "@typescript-eslint/visitor-keys" "5.59.9" + "@typescript-eslint/types" "5.60.0" + "@typescript-eslint/visitor-keys" "5.60.0" debug "^4.3.4" globby "^11.1.0" is-glob "^4.0.3" semver "^7.3.7" tsutils "^3.21.0" -"@typescript-eslint/utils@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.9.tgz#adee890107b5ffe02cd46fdaa6c2125fb3c6c7c4" - integrity sha512-1PuMYsju/38I5Ggblaeb98TOoUvjhRvLpLa1DoTOFaLWqaXl/1iQ1eGurTXgBY58NUdtfTXKP5xBq7q9NDaLKg== +"@typescript-eslint/utils@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.60.0.tgz#4667c5aece82f9d4f24a667602f0f300864b554c" + integrity sha512-ba51uMqDtfLQ5+xHtwlO84vkdjrqNzOnqrnwbMHMRY8Tqeme8C2Q8Fc7LajfGR+e3/4LoYiWXUM6BpIIbHJ4hQ== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@types/json-schema" "^7.0.9" "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.59.9" - "@typescript-eslint/types" "5.59.9" - "@typescript-eslint/typescript-estree" "5.59.9" + "@typescript-eslint/scope-manager" "5.60.0" + "@typescript-eslint/types" "5.60.0" + "@typescript-eslint/typescript-estree" "5.60.0" eslint-scope "^5.1.1" semver "^7.3.7" -"@typescript-eslint/visitor-keys@5.59.9": - version "5.59.9" - resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.9.tgz#9f86ef8e95aca30fb5a705bb7430f95fc58b146d" - integrity sha512-bT7s0td97KMaLwpEBckbzj/YohnvXtqbe2XgqNvTl6RJVakY5mvENOTPvw5u66nljfZxthESpDozs86U+oLY8Q== +"@typescript-eslint/visitor-keys@5.60.0": + version "5.60.0" + resolved "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.60.0.tgz#b48b29da3f5f31dd1656281727004589d2722a66" + integrity sha512-wm9Uz71SbCyhUKgcaPRauBdTegUyY/ZWl8gLwD/i/ybJqscrrdVSFImpvUz16BLPChIeKBK5Fa9s6KDQjsjyWw== dependencies: - "@typescript-eslint/types" "5.59.9" + "@typescript-eslint/types" "5.60.0" eslint-visitor-keys "^3.3.0" accepts@~1.3.8: @@ -1467,9 +1474,9 @@ acorn-jsx@^5.3.2: integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== acorn@^8.8.0: - version "8.8.2" - resolved "https://registry.npmjs.org/acorn/-/acorn-8.8.2.tgz#1b2f25db02af965399b9776b0c2c391276d37c4a" - integrity sha512-xjIYgE8HBrkpd/sJqOGNspf8uHG+NOHGOw6a/Urj8taM2EXfdNAH2oFcPeIFfsv3+kz/mJrS5VuMqbNLjCa2vw== + version "8.9.0" + resolved "https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz#78a16e3b2bcc198c10822786fa6679e245db5b59" + integrity sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ== ajv@^6.10.0, ajv@^6.12.4: version "6.12.6" @@ -1686,12 +1693,12 @@ braces@^3.0.2: fill-range "^7.0.1" browserslist@^4.21.3: - version "4.21.7" - resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.7.tgz#e2b420947e5fb0a58e8f4668ae6e23488127e551" - integrity sha512-BauCXrQ7I2ftSqd2mvKHGo85XR0u7Ru3C/Hxsy/0TkfCtjrmAbPdzLGasmoiBxplpDXlPvdjX9u7srIMfgasNA== + version "4.21.9" + resolved "https://registry.npmjs.org/browserslist/-/browserslist-4.21.9.tgz#e11bdd3c313d7e2a9e87e8b4b0c7872b13897635" + integrity sha512-M0MFoZzbUrRU4KNfCrDLnvyE7gub+peetoTid3TBIqtunaDJyXlwhakT+/VkvSXcfIzFfK/nkCs4nmyTmxdNSg== dependencies: - caniuse-lite "^1.0.30001489" - electron-to-chromium "^1.4.411" + caniuse-lite "^1.0.30001503" + electron-to-chromium "^1.4.431" node-releases "^2.0.12" update-browserslist-db "^1.0.11" @@ -1742,10 +1749,10 @@ camelcase@^6.2.0: resolved "https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz#5685b95eb209ac9c0c177467778c9c84df58ba9a" integrity sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA== -caniuse-lite@^1.0.30001489: - version "1.0.30001499" - resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001499.tgz#0235c127d9795c82aaf0a7f43e24018549dac659" - integrity sha512-IhoQqRrW6WiecFcfZgoJS1YLEN1/HR1vHP5WNgjCARRW7KUNToHHTX3FrwCM+y4zkRa48D9rE90WFYc2IWhDWQ== +caniuse-lite@^1.0.30001503: + version "1.0.30001506" + resolved "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001506.tgz#35bd814b310a487970c585430e9e80ee23faf14b" + integrity sha512-6XNEcpygZMCKaufIcgpQNZNf00GEqc7VQON+9Rd0K1bMYo8xhMZRAo5zpbnbMNizi4YNgIDAFrdykWsvY3H4Hw== chalk@^2.0.0: version "2.4.2" @@ -2117,10 +2124,10 @@ ee-first@1.1.1: resolved "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== -electron-to-chromium@^1.4.411: - version "1.4.427" - resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.427.tgz#67e8069f7a864fc092fe2e09f196e68af5cb88a1" - integrity sha512-HK3r9l+Jm8dYAm1ctXEWIC+hV60zfcjS9UA5BDlYvnI5S7PU/yytjpvSrTNrSSRRkuu3tDyZhdkwIczh+0DWaw== +electron-to-chromium@^1.4.431: + version "1.4.435" + resolved "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.4.435.tgz#761c34300603b9f1234f0b6155870d3002435db6" + integrity sha512-B0CBWVFhvoQCW/XtjRzgrmqcgVWg6RXOEM/dK59+wFV93BFGR6AeNKc4OyhM+T3IhJaOOG8o/V+33Y2mwJWtzw== emittery@^0.13.1: version "0.13.1" @@ -2198,15 +2205,15 @@ eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1: resolved "https://registry.npmjs.org/eslint-visitor-keys/-/eslint-visitor-keys-3.4.1.tgz#c22c48f48942d08ca824cc526211ae400478a994" integrity sha512-pZnmmLwYzf+kWaM/Qgrvpen51upAktaaiI01nsJD/Yr3lMOdNtq0cxkrrg16w64VtisN6okbs7Q8AfGqj4c9fA== -eslint@^8.42.0: - version "8.42.0" - resolved "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz#7bebdc3a55f9ed7167251fe7259f75219cade291" - integrity sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A== +eslint@^8.43.0: + version "8.43.0" + resolved "https://registry.npmjs.org/eslint/-/eslint-8.43.0.tgz#3e8c6066a57097adfd9d390b8fc93075f257a094" + integrity sha512-aaCpf2JqqKesMFGgmRPessmVKjcGXqdlAYLLC3THM8t5nBRZRQ+st5WM/hoJXkdioEXLLbXgclUpM0TXo5HX5Q== dependencies: "@eslint-community/eslint-utils" "^4.2.0" "@eslint-community/regexpp" "^4.4.0" "@eslint/eslintrc" "^2.0.3" - "@eslint/js" "8.42.0" + "@eslint/js" "8.43.0" "@humanwhocodes/config-array" "^0.11.10" "@humanwhocodes/module-importer" "^1.0.1" "@nodelib/fs.walk" "^1.2.8" @@ -3673,9 +3680,9 @@ picomatch@^2.0.4, picomatch@^2.2.3, picomatch@^2.3.1: integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== pirates@^4.0.4: - version "4.0.5" - resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.5.tgz#feec352ea5c3268fb23a37c702ab1699f35a5f3b" - integrity sha512-8V9+HQPupnaXMA23c5hvl69zXvTwTzyAYasnkb0Tts4XvO4CliqONMOnvlq26rkhLC3nWDFBJf73LU1e1VZLaQ== + version "4.0.6" + resolved "https://registry.npmjs.org/pirates/-/pirates-4.0.6.tgz#3018ae32ecfcff6c29ba2267cbf21166ac1f36b9" + integrity sha512-saLsH7WeYYPiD25LDuLRRY/i+6HaPYr6G1OUlN39otzkSTxKnubR9RTxS3/Kk50s1g2JTgFwWQDQyplC5/SHZg== pkg-dir@^4.2.0: version "4.2.0" @@ -3888,9 +3895,9 @@ safe-buffer@5.2.1: integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== semver@7.x, semver@^7.3.5, semver@^7.3.7, semver@^7.3.8: - version "7.5.1" - resolved "https://registry.npmjs.org/semver/-/semver-7.5.1.tgz#c90c4d631cf74720e46b21c1d37ea07edfab91ec" - integrity sha512-Wvss5ivl8TMRZXXESstBA4uR5iXgEN/VC5/sOcuXdVLzcdkz4HWetIoRfG5gb5X+ij/G9rw9YoGn3QoQ8OCSpw== + version "7.5.2" + resolved "https://registry.npmjs.org/semver/-/semver-7.5.2.tgz#5b851e66d1be07c1cdaf37dfc856f543325a2beb" + integrity sha512-SoftuTROv/cRjCze/scjGyiDtcUyxw1rgYQSZY7XTmtR5hX+dm76iDbTH8TkLPHCQmlbQVSSbNZCPM2hb0knnQ== dependencies: lru-cache "^6.0.0"