Skip to content

Commit

Permalink
latest build
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Sep 1, 2021
1 parent 15636da commit 40a9d0d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 22 deletions.
2 changes: 1 addition & 1 deletion dist/client/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,5 @@
</head>
<body>
<div id="app"></div>
<script type="text/javascript" src="/main-6b3f957541322c169fbc.js"></script></body>
<script type="text/javascript" src="/main-a57cf09b16f2cae690f5.js"></script></body>
</html>

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 27 additions & 18 deletions dist/server/twitter.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,24 +63,33 @@ var Twitter = /*#__PURE__*/function () {
this.accessToken = keys.accessToken || process.env.ACCESS_TOKEN;
this.accessTokenSecret = keys.accessTokenSecret || process.env.ACCESS_TOKEN_SECRET; // a client for v1.1 endpoints

this.twit = new _twit["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret,
access_token: this.accessToken,
access_token_secret: this.accessTokenSecret
}); // a client for v2 endpoints

this.twitterV2 = new _twitterV["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret,
access_token_key: this.accessToken,
access_token_secret: this.accessTokenSecret
}); // a app auth client for v2 endpoints

this.twitterV2app = new _twitterV["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret
});
if (this.consumerKey && this.consumerSecret && this.accessToken && this.accessTokenSecret) {
this.twit = new _twit["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret,
access_token: this.accessToken,
access_token_secret: this.accessTokenSecret
}); // a client for v2 endpoints

this.twitterV2 = new _twitterV["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret,
access_token_key: this.accessToken,
access_token_secret: this.accessTokenSecret
});
} else {
_logger["default"].warn('not configuring user client for v1.1 and v2 endpoints since not all keys are present');
} // a app auth client for v2 endpoints


if (this.consumerKey && this.consumerSecret) {
this.twitterV2app = new _twitterV["default"]({
consumer_key: this.consumerKey,
consumer_secret: this.consumerSecret
});
} else {
_logger["default"].warn('unable to configure app client for v2 endpoint since not all keys are present');
}
}

(0, _createClass2["default"])(Twitter, [{
Expand Down

0 comments on commit 40a9d0d

Please sign in to comment.