Skip to content

Commit

Permalink
fix(deps): update OctoKit
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Aug 23, 2020
1 parent cfbed1d commit 930c874
Show file tree
Hide file tree
Showing 3 changed files with 117 additions and 129 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@
"typescript": "^3.5.1"
},
"dependencies": {
"@octokit/rest": "^16.27.3",
"@octokit/rest": "^18.0.3",
"base-64": "^0.1.0",
"base64-arraybuffer": "^0.2.0",
"base64-js": "^1.3.0",
"base64-js": "^1.3.1",
"debug": "^4.1.1"
}
}
6 changes: 3 additions & 3 deletions src/GitHubAdaptor.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Octokit from "@octokit/rest";
import { Octokit } from "@octokit/rest";
import { KoreFileAdaptor } from "./KoreFileAdaptor";
import { encode as arrayBufferToBase64 } from "base64-arraybuffer";

Expand Down Expand Up @@ -119,7 +119,7 @@ export const getContent = (github: Octokit, { owner, repo, path, ref }: {
path: string;
ref: string;
}) => {
return github.repos.getContents({
return github.repos.getContent({
owner,
repo,
path,
Expand All @@ -144,7 +144,7 @@ export const deleteFile = async (octokit: Octokit, { owner, repo, path, ref, com
ref: string;
commitMessage: string;
}) => {
const { data } = await octokit.repos.getContents({
const { data } = await octokit.repos.getContent({
owner,
repo,
path,
Expand Down
Loading

0 comments on commit 930c874

Please sign in to comment.