Skip to content

Commit 6691244

Browse files
chenyumicfhinkel
authored andcommitted
fix(deps): update dependency pubsub to ^0.28 (#1231)
1 parent da8b213 commit 6691244

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

appengine/pubsub/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ const messages = [];
4646
const PUBSUB_VERIFICATION_TOKEN = process.env.PUBSUB_VERIFICATION_TOKEN;
4747
const TOPIC = process.env.PUBSUB_TOPIC;
4848

49-
const publisher = pubsub.topic(TOPIC).publisher();
49+
const topic = pubsub.topic(TOPIC);
5050

5151
// [START gae_flex_pubsub_index]
5252
app.get('/', (req, res) => {
@@ -61,7 +61,7 @@ app.post('/', formBodyParser, async (req, res, next) => {
6161

6262
const data = Buffer.from(req.body.payload);
6363
try {
64-
const messageId = await publisher.publish(data);
64+
const messageId = await topic.publish(data);
6565
res.status(200).send(`Message ${messageId} sent.`);
6666
} catch (error) {
6767
next(error);

appengine/pubsub/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"test": "repo-tools test app && mocha */*.test.js --timeout=30000 --exit"
1414
},
1515
"dependencies": {
16-
"@google-cloud/pubsub": "^0.22.0",
16+
"@google-cloud/pubsub": "^0.28.0",
1717
"body-parser": "^1.18.3",
1818
"express": "^4.16.3",
1919
"pug": "^2.0.1",

0 commit comments

Comments
 (0)