@@ -9054,7 +9054,7 @@ const get_authenticated_octokit_1 = __webpack_require__(956);
9054
9054
* to wait for the magic to happen.
9055
9055
*
9056
9056
* ```js
9057
- * module.exports = ({ app } ) => {
9057
+ * module.exports = (app) => {
9058
9058
* app.on('issues.opened', async context => {
9059
9059
* const octokit = await app.auth();
9060
9060
* });
@@ -12467,7 +12467,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
12467
12467
Object.defineProperty(exports, "__esModule", { value: true });
12468
12468
exports.defaultApp = void 0;
12469
12469
const path_1 = __importDefault(__webpack_require__(622));
12470
- function defaultApp({ app, getRouter, }) {
12470
+ function defaultApp(app, { getRouter }) {
12471
12471
if (!getRouter) {
12472
12472
throw new Error("getRouter() is required for defaultApp");
12473
12473
}
@@ -14012,8 +14012,7 @@ class Server {
14012
14012
this.expressApp.get("/ping", (req, res) => res.end("PONG"));
14013
14013
}
14014
14014
async load(appFn) {
14015
- await appFn({
14016
- app: this.probotApp,
14015
+ await appFn(this.probotApp, {
14017
14016
getRouter: (path) => this.router(path),
14018
14017
});
14019
14018
}
@@ -17572,7 +17571,7 @@ function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'defau
17572
17571
17573
17572
var yaml = _interopDefault(__webpack_require__(186));
17574
17573
17575
- const VERSION = "1.0.0 ";
17574
+ const VERSION = "1.0.1 ";
17576
17575
17577
17576
function _defineProperty(obj, key, value) {
17578
17577
if (key in obj) {
@@ -18168,7 +18167,7 @@ class Command {
18168
18167
*
18169
18168
* @private
18170
18169
* @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
18172
18171
* @memberof Command
18173
18172
*/
18174
18173
_convertValue(resolve) {
@@ -29050,7 +29049,7 @@ module.exports = new Type('tag:yaml.org,2002:omap', {
29050
29049
Object.defineProperty(exports, "__esModule", { value: true });
29051
29050
exports.VERSION = void 0;
29052
29051
// The version is set automatically before publish to npm
29053
- exports.VERSION = "11.0.0-beta.2 ";
29052
+ exports.VERSION = "11.0.0";
29054
29053
//# sourceMappingURL=version.js.map
29055
29054
29056
29055
/***/ }),
@@ -46346,7 +46345,7 @@ class Probot {
46346
46345
}
46347
46346
return;
46348
46347
}
46349
- return appFn({ app: this });
46348
+ return appFn(this, { });
46350
46349
}
46351
46350
}
46352
46351
exports.Probot = Probot;
@@ -51051,6 +51050,7 @@ const standard_as_callback_1 = __webpack_require__(207);
51051
51050
exports.kExec = Symbol("exec");
51052
51051
exports.kCallbacks = Symbol("callbacks");
51053
51052
exports.notAllowedAutoPipelineCommands = [
51053
+ "auth",
51054
51054
"info",
51055
51055
"script",
51056
51056
"quit",
@@ -53912,7 +53912,7 @@ const child_process_1 = __webpack_require__(129);
53912
53912
const update_dotenv_1 = __importDefault(__webpack_require__(157));
53913
53913
const manifest_creation_1 = __webpack_require__(967);
53914
53914
const 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 }) {
53916
53916
const setup = new manifest_creation_1.ManifestCreation();
53917
53917
// If not on Glitch or Production, create a smee URL
53918
53918
if (process.env.NODE_ENV !== "production" &&
@@ -67891,6 +67891,7 @@ Redis.prototype.connect = function (callback) {
67891
67891
reject(new Error("Redis is already connecting/connected"));
67892
67892
return;
67893
67893
}
67894
+ clearInterval(this._addedScriptHashesCleanInterval);
67894
67895
this._addedScriptHashesCleanInterval = setInterval(() => {
67895
67896
this._addedScriptHashes = {};
67896
67897
}, this.options.maxScriptsCachingTime);
@@ -68847,6 +68848,7 @@ class Cluster extends events_1.EventEmitter {
68847
68848
reject(new Error("Redis is already connecting/connected"));
68848
68849
return;
68849
68850
}
68851
+ clearInterval(this._addedScriptHashesCleanInterval);
68850
68852
this._addedScriptHashesCleanInterval = setInterval(() => {
68851
68853
this._addedScriptHashes = {};
68852
68854
}, this.options.maxScriptsCachingTime);
@@ -76689,7 +76691,7 @@ const default_1 = __webpack_require__(202);
76689
76691
const resolve_app_function_1 = __webpack_require__(832);
76690
76692
/**
76691
76693
*
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
76693
76695
*/
76694
76696
async function run(appFnOrArgv, additionalOptions) {
76695
76697
__webpack_require__(175).config();
@@ -76748,7 +76750,7 @@ async function run(appFnOrArgv, additionalOptions) {
76748
76750
}
76749
76751
if (Array.isArray(appFnOrArgv)) {
76750
76752
const pkg = await pkg_conf_1.default("probot");
76751
- const combinedApps = async ({ app } ) => {
76753
+ const combinedApps = async (app) => {
76752
76754
await server.load(default_1.defaultApp);
76753
76755
if (Array.isArray(pkg.apps)) {
76754
76756
for (const appPath of pkg.apps) {
@@ -77977,9 +77979,9 @@ exports.noop = noop;
77977
77979
/***/ (function(module) {
77978
77980
77979
77981
/**
77980
- * @param { {app: import('probot').Probot} } app
77982
+ * @param {import('probot').Probot} app
77981
77983
*/
77982
- module.exports = ({ app } ) => {
77984
+ module.exports = (app) => {
77983
77985
app.log("Yay! The app was loaded!");
77984
77986
77985
77987
app.on("issues.opened", async (context) => {
0 commit comments