Skip to content

Commit a463030

Browse files
committed
meta: bump version, lint
1 parent 2de3fc2 commit a463030

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ghostposter",
3-
"version": "0.9.3",
3+
"version": "1.0.0",
44
"description": "Ingest a Ghost webhook and post to the major social media platforms.",
55
"main": "src/app.js",
66
"scripts": {

src/app.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,13 @@ function verifyWebhook(body, signatureHeader, secret) {
4949
return computedSignature === signature;
5050
}
5151

52-
app.get('/hook', (req, res) => {
53-
res.status(200).send('ghostposter is listening for webhooks here! https://github.com/gitlimes/ghostposter')
54-
})
52+
app.get("/hook", (req, res) => {
53+
res
54+
.status(200)
55+
.send(
56+
"ghostposter is listening for webhooks here! https://github.com/gitlimes/ghostposter"
57+
);
58+
});
5559

5660
app.post("/hook", express.json(), (req, res) => {
5761
const signatureHeader = req.headers["x-ghost-signature"];

0 commit comments

Comments
 (0)