From e7666fb8401b6ea1836e64bead28ec96eb7e4ee4 Mon Sep 17 00:00:00 2001
From: AkiraFukushima
Date: Wed, 12 Jun 2019 23:16:27 +0900
Subject: [PATCH] refs #940 Update megalodon for User Agent and add User Agent
in streaming
---
package-lock.json | 6 +++---
package.json | 2 +-
src/main/streaming.ts | 2 +-
3 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index 2177fcb5..da3bc3ac 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -13242,9 +13242,9 @@
"dev": true
},
"megalodon": {
- "version": "0.7.2",
- "resolved": "https://registry.npmjs.org/megalodon/-/megalodon-0.7.2.tgz",
- "integrity": "sha512-4engsYXY9ptpFD6K4oO0nENbuM6yqExhQtC/4OHMPeCz/jOSEULo4TSH2bfDSQdM0OrxY7O8oTekteKPxKQ29Q==",
+ "version": "0.7.3",
+ "resolved": "https://registry.npmjs.org/megalodon/-/megalodon-0.7.3.tgz",
+ "integrity": "sha512-n9gg8H7YhvqRW3fS0dBNb1iXyIl4PnNIYIyPo85s8zLI7Vk5pUH7DJaCysZoQuj47GLR08topPv/z/ZT5MkTpw==",
"requires": {
"@types/oauth": "0.9.1",
"@types/request": "2.48.1",
diff --git a/package.json b/package.json
index 4c2e3816..f92ff388 100644
--- a/package.json
+++ b/package.json
@@ -173,7 +173,7 @@
"i18next": "^12.1.0",
"i18next-sync-fs-backend": "^1.1.0",
"lodash": "^4.17.11",
- "megalodon": "0.7.2",
+ "megalodon": "0.7.3",
"moment": "^2.21.0",
"mousetrap": "^1.6.2",
"nedb": "^1.8.0",
diff --git a/src/main/streaming.ts b/src/main/streaming.ts
index 832a488f..2b887543 100644
--- a/src/main/streaming.ts
+++ b/src/main/streaming.ts
@@ -7,7 +7,7 @@ export default class Streaming {
private listener: StreamListener | null
constructor(account: LocalAccount) {
- this.client = new Mastodon(account.accessToken!, account.baseURL + '/api/v1')
+ this.client = new Mastodon(account.accessToken!, account.baseURL + '/api/v1', 'Whalebird')
this.listener = null
}