Updated deps and put code in place to prepare for GitHub module API change

This commit is contained in:
ポール ウェッブ 2019-01-24 15:45:24 -06:00
parent 9f7904540b
commit d2fb1926a5
2 changed files with 8 additions and 3 deletions

View file

@ -30,6 +30,11 @@ String.prototype.escape = function() {
let client; let client;
if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") { if (typeof process.env.GITHUB_OAUTH_TOKEN !== "undefined") {
// new octokit({
// auth: `token ${process.env.GITHUB_OAUTH_TOKEN}`
// });
// https://github.com/octokit/rest.js/issues/1207
octokit.authenticate({ octokit.authenticate({
type: "oauth", type: "oauth",
token: process.env.GITHUB_OAUTH_TOKEN token: process.env.GITHUB_OAUTH_TOKEN

View file

@ -3,7 +3,7 @@
"dependencies": { "dependencies": {
"@babel/polyfill": "^7.2.5", "@babel/polyfill": "^7.2.5",
"@inc/fastify-ws": "^1.1.0", "@inc/fastify-ws": "^1.1.0",
"@octokit/rest": "^16.13.0", "@octokit/rest": "^16.13.1",
"@slack/client": "^4.8.0", "@slack/client": "^4.8.0",
"app-root-path": "^2.1.0", "app-root-path": "^2.1.0",
"async": "^2.6.1", "async": "^2.6.1",
@ -51,12 +51,12 @@
"@babel/plugin-proposal-throw-expressions": "7.2.0", "@babel/plugin-proposal-throw-expressions": "7.2.0",
"@babel/plugin-syntax-dynamic-import": "7.2.0", "@babel/plugin-syntax-dynamic-import": "7.2.0",
"@babel/plugin-syntax-import-meta": "7.2.0", "@babel/plugin-syntax-import-meta": "7.2.0",
"@babel/preset-env": "^7.3.0", "@babel/preset-env": "^7.3.1",
"@babel/register": "^7.0.0", "@babel/register": "^7.0.0",
"@inc/eslint-config": "^1.1.2", "@inc/eslint-config": "^1.1.2",
"@inc/sasslint-config": "^1.1.2", "@inc/sasslint-config": "^1.1.2",
"@lbry/color": "^1.1.0", "@lbry/color": "^1.1.0",
"@lbry/components": "^1.8.0", "@lbry/components": "^1.8.1",
"eslint": "^5.12.1", "eslint": "^5.12.1",
"husky": "^1.3.1", "husky": "^1.3.1",
"nodemon": "^1.18.9", "nodemon": "^1.18.9",