Comparing version 12.2.1 to 12.2.2
@@ -21,3 +21,3 @@ "use strict"; | ||
} | ||
res.render("probot.hbs", pkg); | ||
res.render("probot.handlebars", pkg); | ||
}); | ||
@@ -24,0 +24,0 @@ router.get("/", (req, res, next) => res.redirect("/probot")); |
@@ -34,3 +34,3 @@ "use strict"; | ||
// Pass the manifest to be POST'd | ||
res.render("setup.hbs", { pkg, createAppUrl, manifest }); | ||
res.render("setup.handlebars", { pkg, createAppUrl, manifest }); | ||
}); | ||
@@ -56,3 +56,3 @@ route.get("/probot/setup", async (req, res) => { | ||
const GH_HOST = `https://${GHE_HOST !== null && GHE_HOST !== void 0 ? GHE_HOST : "github.com"}`; | ||
res.render("import.hbs", { WEBHOOK_PROXY_URL, GH_HOST }); | ||
res.render("import.handlebars", { WEBHOOK_PROXY_URL, GH_HOST }); | ||
}); | ||
@@ -74,3 +74,3 @@ route.post("/probot/import", body_parser_1.default.json(), async (req, res) => { | ||
route.get("/probot/success", async (req, res) => { | ||
res.render("success.hbs"); | ||
res.render("success.handlebars"); | ||
}); | ||
@@ -77,0 +77,0 @@ route.get("/", (req, res, next) => res.redirect("/probot")); |
@@ -30,2 +30,3 @@ "use strict"; | ||
const version_1 = require("../version"); | ||
const express_handlebars_1 = require("express-handlebars"); | ||
class Server { | ||
@@ -48,3 +49,6 @@ constructor(options = {}) { | ||
})); | ||
this.expressApp.set("view engine", "hbs"); | ||
this.expressApp.engine("handlebars", express_handlebars_1.engine({ | ||
defaultLayout: false, | ||
})); | ||
this.expressApp.set("view engine", "handlebars"); | ||
this.expressApp.set("views", path_1.join(__dirname, "..", "..", "views")); | ||
@@ -51,0 +55,0 @@ this.expressApp.get("/ping", (req, res) => res.end("PONG")); |
@@ -1,1 +0,1 @@ | ||
export declare const VERSION = "12.2.1"; | ||
export declare const VERSION = "12.2.2"; |
@@ -5,3 +5,3 @@ "use strict"; | ||
// The version is set automatically before publish to npm | ||
exports.VERSION = "12.2.1"; | ||
exports.VERSION = "12.2.2"; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "probot", | ||
"version": "12.2.1", | ||
"version": "12.2.2", | ||
"description": "A framework for building GitHub Apps to automate and improve your workflow", | ||
@@ -60,3 +60,3 @@ "repository": "github:probot/probot", | ||
"express": "^4.17.1", | ||
"hbs": "^4.2.0", | ||
"express-handlebars": "^6.0.3", | ||
"ioredis": "^4.27.8", | ||
@@ -63,0 +63,0 @@ "js-yaml": "^3.14.1", |
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
713961
3819
+ Addedexpress-handlebars@^6.0.3
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@2.0.1(transitive)
+ Addedexpress-handlebars@6.0.7(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedglob@8.1.0(transitive)
+ Addedhandlebars@4.7.8(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedminimatch@5.1.6(transitive)
- Removedhbs@^4.2.0
- Removedforeachasync@3.0.0(transitive)
- Removedhandlebars@4.7.7(transitive)
- Removedhbs@4.2.0(transitive)
- Removedwalk@2.3.15(transitive)