Comparing version 13.0.0-beta.6 to 13.0.0-beta.7
@@ -9,3 +9,3 @@ "use strict"; | ||
return (0, webhooks_1.createNodeMiddleware)(probot.webhooks, { | ||
path: webhooksPath || server_1.defaultWebhooksPath, | ||
path: webhooksPath || probot.webhookPath || server_1.defaultWebhooksPath, | ||
}); | ||
@@ -12,0 +12,0 @@ } |
@@ -7,5 +7,7 @@ "use strict"; | ||
const probot_1 = require("./probot"); | ||
const server_1 = require("./server/server"); | ||
const DEFAULTS = { | ||
APP_ID: "", | ||
WEBHOOK_SECRET: "", | ||
WEBHOOK_PATH: server_1.defaultWebhooksPath, | ||
GHE_HOST: "", | ||
@@ -38,2 +40,3 @@ GHE_PROTOCOL: "", | ||
redisConfig: envWithDefaults.REDIS_URL, | ||
webhookPath: envWithDefaults.WEBHOOK_PATH, | ||
baseUrl: envWithDefaults.GHE_HOST | ||
@@ -40,0 +43,0 @@ ? `${envWithDefaults.GHE_PROTOCOL || "https"}://${envWithDefaults.GHE_HOST}/api/v3` |
@@ -14,2 +14,3 @@ import { type LRUCache } from "lru-cache"; | ||
redisConfig?: Redis.RedisOptions | string; | ||
webhookPath?: string; | ||
baseUrl?: string; | ||
@@ -16,0 +17,0 @@ request?: RequestRequestOptions; |
@@ -14,2 +14,3 @@ import type { Logger } from "pino"; | ||
webhooks: ProbotWebhooks; | ||
webhookPath: string; | ||
log: Logger; | ||
@@ -16,0 +17,0 @@ version: String; |
@@ -11,2 +11,3 @@ "use strict"; | ||
const version_1 = require("./version"); | ||
const server_1 = require("./server/server"); | ||
class Probot { | ||
@@ -60,2 +61,3 @@ static defaults(defaults) { | ||
port: options.port, | ||
webhookPath: options.webhookPath || server_1.defaultWebhooksPath, | ||
request: options.request, | ||
@@ -65,2 +67,3 @@ }; | ||
this.webhooks = (0, get_webhooks_1.getWebhooks)(this.state); | ||
this.webhookPath = this.state.webhookPath; | ||
this.on = this.webhooks.on; | ||
@@ -67,0 +70,0 @@ this.onAny = this.webhooks.onAny; |
@@ -25,2 +25,3 @@ import express from "express"; | ||
request?: RequestRequestOptions; | ||
webhookPath?: string; | ||
} | ||
@@ -41,2 +42,3 @@ export type State = { | ||
baseUrl?: string; | ||
webhookPath: string; | ||
request?: RequestRequestOptions; | ||
@@ -43,0 +45,0 @@ }; |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "13.0.0-beta.6"; | ||
export declare const VERSION = "13.0.0-beta.7"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// The version is set automatically before publish to npm | ||
exports.VERSION = "13.0.0-beta.6"; | ||
exports.VERSION = "13.0.0-beta.7"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "probot", | ||
"version": "13.0.0-beta.6", | ||
"version": "13.0.0-beta.7", | ||
"description": "A framework for building GitHub Apps to automate and improve your workflow", | ||
@@ -5,0 +5,0 @@ "repository": "github:probot/probot", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
735500
4010