@@ -9054,7 +9054,7 @@ const get_authenticated_octokit_1 = __webpack_require__(956);
90549054 * to wait for the magic to happen.
90559055 *
90569056 * ```js
9057- * module.exports = ({ app } ) => {
9057+ * module.exports = (app) => {
90589058 * app.on('issues.opened', async context => {
90599059 * const octokit = await app.auth();
90609060 * });
@@ -12467,7 +12467,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
1246712467Object.defineProperty(exports, "__esModule", { value: true });
1246812468exports.defaultApp = void 0;
1246912469const path_1 = __importDefault(__webpack_require__(622));
12470- function defaultApp({ app, getRouter, }) {
12470+ function defaultApp(app, { getRouter }) {
1247112471 if (!getRouter) {
1247212472 throw new Error("getRouter() is required for defaultApp");
1247312473 }
@@ -14012,8 +14012,7 @@ class Server {
1401214012 this.expressApp.get("/ping", (req, res) => res.end("PONG"));
1401314013 }
1401414014 async load(appFn) {
14015- await appFn({
14016- app: this.probotApp,
14015+ await appFn(this.probotApp, {
1401714016 getRouter: (path) => this.router(path),
1401814017 });
1401914018 }
@@ -17572,7 +17571,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
1757217571
1757317572var yaml = _interopDefault(__webpack_require__(186));
1757417573
17575- const VERSION = "1.0.0 ";
17574+ const VERSION = "1.0.1 ";
1757617575
1757717576function _defineProperty(obj, key, value) {
1757817577 if (key in obj) {
@@ -18168,7 +18167,7 @@ class Command {
1816818167 *
1816918168 * @private
1817018169 * @param {Function} resolve The resolve function of the Promise
18171- * @returns {Function} A funtion to transform and resolve a value
18170+ * @returns {Function} A function to transform and resolve a value
1817218171 * @memberof Command
1817318172 */
1817418173 _convertValue(resolve) {
@@ -29050,7 +29049,7 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
2905029049Object.defineProperty(exports, "__esModule", { value: true });
2905129050exports.VERSION = void 0;
2905229051// The version is set automatically before publish to npm
29053- exports.VERSION = "11.0.0-beta.2 ";
29052+ exports.VERSION = "11.0.0";
2905429053//# sourceMappingURL=version.js.map
2905529054
2905629055/***/ }),
@@ -46346,7 +46345,7 @@ class Probot {
4634646345 }
4634746346 return;
4634846347 }
46349- return appFn({ app: this });
46348+ return appFn(this, { });
4635046349 }
4635146350}
4635246351exports.Probot = Probot;
@@ -51051,6 +51050,7 @@ const standard_as_callback_1 = __webpack_require__(207);
5105151050exports.kExec = Symbol("exec");
5105251051exports.kCallbacks = Symbol("callbacks");
5105351052exports.notAllowedAutoPipelineCommands = [
51053+ "auth",
5105451054 "info",
5105551055 "script",
5105651056 "quit",
@@ -53912,7 +53912,7 @@ const child_process_1 = __webpack_require__(129);
5391253912const update_dotenv_1 = __importDefault(__webpack_require__(157));
5391353913const manifest_creation_1 = __webpack_require__(967);
5391453914const logging_middleware_1 = __webpack_require__(156);
53915- const setupAppFactory = (host, port) => async function setupApp({ app, getRouter, }) {
53915+ const setupAppFactory = (host, port) => async function setupApp(app, { getRouter }) {
5391653916 const setup = new manifest_creation_1.ManifestCreation();
5391753917 // If not on Glitch or Production, create a smee URL
5391853918 if (process.env.NODE_ENV !== "production" &&
@@ -67891,6 +67891,7 @@ Redis.prototype.connect = function (callback) {
6789167891 reject(new Error("Redis is already connecting/connected"));
6789267892 return;
6789367893 }
67894+ clearInterval(this._addedScriptHashesCleanInterval);
6789467895 this._addedScriptHashesCleanInterval = setInterval(() => {
6789567896 this._addedScriptHashes = {};
6789667897 }, this.options.maxScriptsCachingTime);
@@ -68847,6 +68848,7 @@ class Cluster extends events_1.EventEmitter {
6884768848 reject(new Error("Redis is already connecting/connected"));
6884868849 return;
6884968850 }
68851+ clearInterval(this._addedScriptHashesCleanInterval);
6885068852 this._addedScriptHashesCleanInterval = setInterval(() => {
6885168853 this._addedScriptHashes = {};
6885268854 }, this.options.maxScriptsCachingTime);
@@ -76689,7 +76691,7 @@ const default_1 = __webpack_require__(202);
7668976691const resolve_app_function_1 = __webpack_require__(832);
7669076692/**
7669176693 *
76692- * @param appFnOrArgv set to either a probot application function: `({ app } ) => { ... }` or to process.argv
76694+ * @param appFnOrArgv set to either a probot application function: `(app) => { ... }` or to process.argv
7669376695 */
7669476696async function run(appFnOrArgv, additionalOptions) {
7669576697 __webpack_require__(175).config();
@@ -76748,7 +76750,7 @@ async function run(appFnOrArgv, additionalOptions) {
7674876750 }
7674976751 if (Array.isArray(appFnOrArgv)) {
7675076752 const pkg = await pkg_conf_1.default("probot");
76751- const combinedApps = async ({ app } ) => {
76753+ const combinedApps = async (app) => {
7675276754 await server.load(default_1.defaultApp);
7675376755 if (Array.isArray(pkg.apps)) {
7675476756 for (const appPath of pkg.apps) {
@@ -77977,9 +77979,9 @@ exports.noop = noop;
7797777979/***/ (function(module) {
7797877980
7797977981/**
77980- * @param { {app: import('probot').Probot} } app
77982+ * @param {import('probot').Probot} app
7798177983 */
77982- module.exports = ({ app } ) => {
77984+ module.exports = (app) => {
7798377985 app.log("Yay! The app was loaded!");
7798477986
7798577987 app.on("issues.opened", async (context) => {
0 commit comments