From 565c77c2f7796aa01491bc2afbd710add0a6985c Mon Sep 17 00:00:00 2001 From: "bfra-me[bot]" <118100583+bfra-me[bot]@users.noreply.github.com> Date: Wed, 1 May 2024 01:11:36 +0000 Subject: [PATCH] fix(deps): update dependency probot to v12.3.4 | datasource | package | from | to | | ---------- | ------- | ------ | ------ | | npm | probot | 12.3.3 | 12.3.4 | --- dist/index.js | 150 +++++++++++++++++++++++++------------------------ package.json | 2 +- pnpm-lock.yaml | 10 ++-- 3 files changed, 82 insertions(+), 80 deletions(-) diff --git a/dist/index.js b/dist/index.js index 79e0782..b121135 100644 --- a/dist/index.js +++ b/dist/index.js @@ -7556,7 +7556,7 @@ exports.emitterEventNames = emitterEventNames; /***/ 19243: /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { -const ProbotExports = __nccwpck_require__(81493); +const ProbotExports = __nccwpck_require__(44607); const pino = __nccwpck_require__(39918); const { transport } = __nccwpck_require__(15984); @@ -81114,7 +81114,7 @@ module.exports.sync = sync; /***/ }), -/***/ 66032: +/***/ 10096: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81147,7 +81147,7 @@ exports.defaultApp = defaultApp; /***/ }), -/***/ 41016: +/***/ 57191: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81160,9 +81160,9 @@ exports.setupAppFactory = void 0; const body_parser_1 = __importDefault(__nccwpck_require__(24921)); const child_process_1 = __nccwpck_require__(32081); const update_dotenv_1 = __importDefault(__nccwpck_require__(29662)); -const manifest_creation_1 = __nccwpck_require__(3236); -const logging_middleware_1 = __nccwpck_require__(83833); -const is_production_1 = __nccwpck_require__(23756); +const manifest_creation_1 = __nccwpck_require__(73985); +const logging_middleware_1 = __nccwpck_require__(37213); +const is_production_1 = __nccwpck_require__(33970); const setupAppFactory = (host, port) => async function setupApp(app, { getRouter }) { const setup = new manifest_creation_1.ManifestCreation(); // If not on Glitch or Production, create a smee URL @@ -81261,14 +81261,14 @@ function getBaseUrl(req) { /***/ }), -/***/ 54831: +/***/ 35202: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.auth = void 0; -const get_authenticated_octokit_1 = __nccwpck_require__(60841); +const get_authenticated_octokit_1 = __nccwpck_require__(60587); /** * Authenticate and get a GitHub client that can be used to make API calls. * @@ -81302,7 +81302,7 @@ exports.auth = auth; /***/ }), -/***/ 46480: +/***/ 38172: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81346,7 +81346,7 @@ exports.readCliOptions = readCliOptions; /***/ }), -/***/ 46387: +/***/ 45521: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81382,7 +81382,7 @@ exports.readEnvOptions = readEnvOptions; /***/ }), -/***/ 29369: +/***/ 78194: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81394,7 +81394,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Context = void 0; const path_1 = __importDefault(__nccwpck_require__(71017)); const deepmerge_1 = __importDefault(__nccwpck_require__(67583)); -const alias_log_1 = __nccwpck_require__(75482); +const alias_log_1 = __nccwpck_require__(9982); /** * The context of the event that was triggered, including the payload and * helpers for extracting information can be passed to GitHub API calls. @@ -81561,7 +81561,7 @@ exports.Context = Context; /***/ }), -/***/ 64719: +/***/ 84530: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81580,7 +81580,7 @@ exports.createNodeMiddleware = createNodeMiddleware; /***/ }), -/***/ 47873: +/***/ 46811: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81588,8 +81588,8 @@ exports.createNodeMiddleware = createNodeMiddleware; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createProbot = void 0; const get_private_key_1 = __nccwpck_require__(53415); -const get_log_1 = __nccwpck_require__(67466); -const probot_1 = __nccwpck_require__(44378); +const get_log_1 = __nccwpck_require__(66900); +const probot_1 = __nccwpck_require__(67566); const DEFAULTS = { APP_ID: "", WEBHOOK_SECRET: "", @@ -81647,7 +81647,7 @@ exports.createProbot = createProbot; /***/ }), -/***/ 75482: +/***/ 9982: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -81676,7 +81676,7 @@ exports.aliasLog = aliasLog; /***/ }), -/***/ 38742: +/***/ 56778: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -81711,7 +81711,7 @@ exports.getErrorHandler = getErrorHandler; /***/ }), -/***/ 67466: +/***/ 66900: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81747,7 +81747,7 @@ function getLog(options = {}) { messageKey: logMessageKey || "msg", }; const transform = (0, pino_2.getTransformStream)(getTransformStreamOptions); - // @ts-ignore TODO: check out what's wrong here + // @ts-expect-error TODO: check out what's wrong here transform.pipe(pino_1.default.destination(1)); const log = (0, pino_1.default)(pinoOptions, transform); return log; @@ -81757,7 +81757,7 @@ exports.getLog = getLog; /***/ }), -/***/ 23756: +/***/ 33970: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -81772,7 +81772,7 @@ exports.isProduction = isProduction; /***/ }), -/***/ 54753: +/***/ 77340: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81819,7 +81819,7 @@ exports.resolveAppFunction = resolveAppFunction; /***/ }), -/***/ 46689: +/***/ 44435: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -81846,32 +81846,32 @@ exports.createWebhookProxy = createWebhookProxy; /***/ }), -/***/ 81493: +/***/ 44607: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.createProbot = exports.createNodeMiddleware = exports.Server = exports.Probot = exports.run = exports.ProbotOctokit = exports.Context = void 0; -const context_1 = __nccwpck_require__(29369); +const context_1 = __nccwpck_require__(78194); Object.defineProperty(exports, "Context", ({ enumerable: true, get: function () { return context_1.Context; } })); -const probot_1 = __nccwpck_require__(44378); +const probot_1 = __nccwpck_require__(67566); Object.defineProperty(exports, "Probot", ({ enumerable: true, get: function () { return probot_1.Probot; } })); -const server_1 = __nccwpck_require__(67736); +const server_1 = __nccwpck_require__(96496); Object.defineProperty(exports, "Server", ({ enumerable: true, get: function () { return server_1.Server; } })); -const probot_octokit_1 = __nccwpck_require__(8662); +const probot_octokit_1 = __nccwpck_require__(99372); Object.defineProperty(exports, "ProbotOctokit", ({ enumerable: true, get: function () { return probot_octokit_1.ProbotOctokit; } })); -const run_1 = __nccwpck_require__(55182); +const run_1 = __nccwpck_require__(18247); Object.defineProperty(exports, "run", ({ enumerable: true, get: function () { return run_1.run; } })); -const create_node_middleware_1 = __nccwpck_require__(64719); +const create_node_middleware_1 = __nccwpck_require__(84530); Object.defineProperty(exports, "createNodeMiddleware", ({ enumerable: true, get: function () { return create_node_middleware_1.createNodeMiddleware; } })); -const create_probot_1 = __nccwpck_require__(47873); +const create_probot_1 = __nccwpck_require__(46811); Object.defineProperty(exports, "createProbot", ({ enumerable: true, get: function () { return create_probot_1.createProbot; } })); //# sourceMappingURL=index.js.map /***/ }), -/***/ 3236: +/***/ 73985: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -81885,7 +81885,7 @@ const fs_1 = __importDefault(__nccwpck_require__(57147)); const js_yaml_1 = __importDefault(__nccwpck_require__(77827)); const path_1 = __importDefault(__nccwpck_require__(71017)); const update_dotenv_1 = __importDefault(__nccwpck_require__(29662)); -const probot_octokit_1 = __nccwpck_require__(8662); +const probot_octokit_1 = __nccwpck_require__(99372); class ManifestCreation { get pkg() { let pkg; @@ -81975,7 +81975,7 @@ exports.ManifestCreation = ManifestCreation; /***/ }), -/***/ 60841: +/***/ 60587: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -82021,7 +82021,7 @@ exports.getAuthenticatedOctokit = getAuthenticatedOctokit; /***/ }), -/***/ 37236: +/***/ 91046: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -82057,15 +82057,15 @@ function getRedisClient({ log, redisConfig }) { /***/ }), -/***/ 96209: +/***/ 82980: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getProbotOctokitWithDefaults = void 0; -const get_octokit_throttle_options_1 = __nccwpck_require__(37236); -const alias_log_1 = __nccwpck_require__(75482); +const get_octokit_throttle_options_1 = __nccwpck_require__(91046); +const alias_log_1 = __nccwpck_require__(9982); /** * Returns an Octokit instance with default settings for authentication. If * a `githubToken` is passed explicitly, the Octokit instance will be @@ -82119,7 +82119,7 @@ exports.getProbotOctokitWithDefaults = getProbotOctokitWithDefaults; /***/ }), -/***/ 81112: +/***/ 29113: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82127,14 +82127,15 @@ exports.getProbotOctokitWithDefaults = getProbotOctokitWithDefaults; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.getWebhooks = void 0; const webhooks_1 = __nccwpck_require__(29652); -const get_error_handler_1 = __nccwpck_require__(38742); -const octokit_webhooks_transform_1 = __nccwpck_require__(29074); +const get_error_handler_1 = __nccwpck_require__(56778); +const octokit_webhooks_transform_1 = __nccwpck_require__(22485); // import { Context } from "../context"; function getWebhooks(state) { // TODO: This should be webhooks = new Webhooks({...}) but fails with // > The context of the event that was triggered, including the payload and // helpers for extracting information can be passed to GitHub API calls const webhooks = new webhooks_1.Webhooks({ + log: state.log, secret: state.webhooks.secret, transform: octokit_webhooks_transform_1.webhookTransform.bind(null, state), }); @@ -82146,7 +82147,7 @@ exports.getWebhooks = getWebhooks; /***/ }), -/***/ 70196: +/***/ 71341: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -82175,14 +82176,14 @@ exports.probotRequestLogging = probotRequestLogging; /***/ }), -/***/ 29074: +/***/ 22485: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.webhookTransform = void 0; -const context_1 = __nccwpck_require__(29369); +const context_1 = __nccwpck_require__(78194); /** * Probot's transform option, which extends the `event` object that is passed * to webhook event handlers by `@octokit/webhooks` @@ -82201,7 +82202,7 @@ exports.webhookTransform = webhookTransform; /***/ }), -/***/ 8662: +/***/ 99372: /***/ ((__unused_webpack_module, exports, __nccwpck_require__) => { "use strict"; @@ -82216,8 +82217,8 @@ const plugin_retry_1 = __nccwpck_require__(32872); const plugin_throttling_1 = __nccwpck_require__(85787); const octokit_plugin_config_1 = __nccwpck_require__(59253); const octokit_auth_probot_1 = __nccwpck_require__(90274); -const octokit_plugin_probot_request_logging_1 = __nccwpck_require__(70196); -const version_1 = __nccwpck_require__(47638); +const octokit_plugin_probot_request_logging_1 = __nccwpck_require__(71341); +const version_1 = __nccwpck_require__(44579); const defaultOptions = { authStrategy: octokit_auth_probot_1.createProbotAuth, throttle: { @@ -82245,7 +82246,7 @@ exports.ProbotOctokit = core_1.Octokit.plugin(plugin_throttling_1.throttling, pl /***/ }), -/***/ 44378: +/***/ 67566: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -82256,19 +82257,20 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.Probot = void 0; const lru_cache_1 = __importDefault(__nccwpck_require__(63918)); -const alias_log_1 = __nccwpck_require__(75482); -const auth_1 = __nccwpck_require__(54831); -const get_log_1 = __nccwpck_require__(67466); -const get_probot_octokit_with_defaults_1 = __nccwpck_require__(96209); -const get_webhooks_1 = __nccwpck_require__(81112); -const probot_octokit_1 = __nccwpck_require__(8662); -const version_1 = __nccwpck_require__(47638); +const alias_log_1 = __nccwpck_require__(9982); +const auth_1 = __nccwpck_require__(35202); +const get_log_1 = __nccwpck_require__(66900); +const get_probot_octokit_with_defaults_1 = __nccwpck_require__(82980); +const get_webhooks_1 = __nccwpck_require__(29113); +const probot_octokit_1 = __nccwpck_require__(99372); +const version_1 = __nccwpck_require__(44579); class Probot { constructor(options = {}) { options.secret = options.secret || "development"; let level = options.logLevel; const logMessageKey = options.logMessageKey; - this.log = (0, alias_log_1.aliasLog)(options.log || (0, get_log_1.getLog)({ level, logMessageKey })); + this._logger = options.log || (0, get_log_1.getLog)({ level, logMessageKey }); + this.log = (0, alias_log_1.aliasLog)(this._logger); // TODO: support redis backend for access token cache if `options.redisConfig` const cache = new lru_cache_1.default({ // cache max. 15000 tokens, that will use less than 10mb memory @@ -82337,7 +82339,7 @@ Probot.version = version_1.VERSION; /***/ }), -/***/ 55182: +/***/ 18247: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -82348,15 +82350,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) { Object.defineProperty(exports, "__esModule", ({ value: true })); exports.run = void 0; const pkg_conf_1 = __importDefault(__nccwpck_require__(74228)); -const index_1 = __nccwpck_require__(81493); -const setup_1 = __nccwpck_require__(41016); -const get_log_1 = __nccwpck_require__(67466); -const read_cli_options_1 = __nccwpck_require__(46480); -const read_env_options_1 = __nccwpck_require__(46387); -const server_1 = __nccwpck_require__(67736); -const default_1 = __nccwpck_require__(66032); -const resolve_app_function_1 = __nccwpck_require__(54753); -const is_production_1 = __nccwpck_require__(23756); +const index_1 = __nccwpck_require__(44607); +const setup_1 = __nccwpck_require__(57191); +const get_log_1 = __nccwpck_require__(66900); +const read_cli_options_1 = __nccwpck_require__(38172); +const read_env_options_1 = __nccwpck_require__(45521); +const server_1 = __nccwpck_require__(96496); +const default_1 = __nccwpck_require__(10096); +const resolve_app_function_1 = __nccwpck_require__(77340); +const is_production_1 = __nccwpck_require__(33970); /** * * @param appFnOrArgv set to either a probot application function: `(app) => { ... }` or to process.argv @@ -82459,7 +82461,7 @@ exports.run = run; /***/ }), -/***/ 83833: +/***/ 37213: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -82495,7 +82497,7 @@ exports.getLoggingMiddleware = getLoggingMiddleware; /***/ }), -/***/ 67736: +/***/ 96496: /***/ (function(__unused_webpack_module, exports, __nccwpck_require__) { "use strict"; @@ -82528,10 +82530,10 @@ exports.Server = void 0; const express_1 = __importStar(__nccwpck_require__(85017)); const path_1 = __nccwpck_require__(71017); const webhooks_1 = __nccwpck_require__(29652); -const get_log_1 = __nccwpck_require__(67466); -const logging_middleware_1 = __nccwpck_require__(83833); -const webhook_proxy_1 = __nccwpck_require__(46689); -const version_1 = __nccwpck_require__(47638); +const get_log_1 = __nccwpck_require__(66900); +const logging_middleware_1 = __nccwpck_require__(37213); +const webhook_proxy_1 = __nccwpck_require__(44435); +const version_1 = __nccwpck_require__(44579); const express_handlebars_1 = __nccwpck_require__(74058); class Server { constructor(options = {}) { @@ -82612,7 +82614,7 @@ Server.version = version_1.VERSION; /***/ }), -/***/ 47638: +/***/ 44579: /***/ ((__unused_webpack_module, exports) => { "use strict"; @@ -82620,7 +82622,7 @@ Server.version = version_1.VERSION; Object.defineProperty(exports, "__esModule", ({ value: true })); exports.VERSION = void 0; // The version is set automatically before publish to npm -exports.VERSION = "12.3.3"; +exports.VERSION = "12.3.4"; //# sourceMappingURL=version.js.map /***/ }), diff --git a/package.json b/package.json index dbd845a..74a5a8a 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ }, "dependencies": { "@probot/adapter-github-actions": "3.1.3", - "probot": "12.3.3" + "probot": "12.3.4" }, "devDependencies": { "@semantic-release/git": "10.0.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 6dd7332..bc9ca2d 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ dependencies: specifier: 3.1.3 version: 3.1.3 probot: - specifier: 12.3.3 - version: 12.3.3 + specifier: 12.3.4 + version: 12.3.4 devDependencies: '@semantic-release/git': @@ -502,7 +502,7 @@ packages: dependencies: '@actions/core': 1.10.1 pino: 8.21.0 - probot: 12.3.3 + probot: 12.3.4 through2: 4.0.2 transitivePeerDependencies: - encoding @@ -3252,8 +3252,8 @@ packages: hasBin: true dev: true - /probot@12.3.3: - resolution: {integrity: sha512-cdtKd+xISzi8sw6++BYBXleRknCA6hqUMoHj/sJqQBrjbNxQLhfeFCq9O2d0Z4eShsy5YFRR3MWwDKJ9uAE0CA==} + /probot@12.3.4: + resolution: {integrity: sha512-XgOqvaX/sL2eGHb2FH1l1ceET1mp30Q6WogzIahOZDjj7cdCOuGsSUYXnr1lQ9zAAoubKh0g/7DH/EvRQ0XqXg==} engines: {node: '>=10.21'} hasBin: true dependencies: