From d2fb1926a513a991bfc1c408d5e427f674df0f4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=83=9D=E3=83=BC=E3=83=AB=20=E3=82=A6=E3=82=A7=E3=83=83?= =?UTF-8?q?=E3=83=96?= Date: Thu, 24 Jan 2019 15:45:24 -0600 Subject: [PATCH] Updated deps and put code in place to prepare for GitHub module API change --- app/helpers/github.js | 5 +++++ package.json | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/app/helpers/github.js b/app/helpers/github.js index 6f95415..3d5bd88 100644 --- a/app/helpers/github.js +++ b/app/helpers/github.js @@ -30,6 +30,11 @@ String.prototype.escape = function() { let client; 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({ type: "oauth", token: process.env.GITHUB_OAUTH_TOKEN diff --git a/package.json b/package.json index 70eae06..5a6facb 100755 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "dependencies": { "@babel/polyfill": "^7.2.5", "@inc/fastify-ws": "^1.1.0", - "@octokit/rest": "^16.13.0", + "@octokit/rest": "^16.13.1", "@slack/client": "^4.8.0", "app-root-path": "^2.1.0", "async": "^2.6.1", @@ -51,12 +51,12 @@ "@babel/plugin-proposal-throw-expressions": "7.2.0", "@babel/plugin-syntax-dynamic-import": "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", "@inc/eslint-config": "^1.1.2", "@inc/sasslint-config": "^1.1.2", "@lbry/color": "^1.1.0", - "@lbry/components": "^1.8.0", + "@lbry/components": "^1.8.1", "eslint": "^5.12.1", "husky": "^1.3.1", "nodemon": "^1.18.9",