chore(deps): lock file maintenance (#3277)

* chore(deps): lock file maintenance

* chore: update octokit types imports

Co-authored-by: WhiteSource Renovate <renovatebot@gmail.com>
Co-authored-by: Erez Rokah <erezrokah@users.noreply.github.com>
This commit is contained in:
renovate[bot] 2020-02-17 11:10:56 +01:00 committed by GitHub
parent d39aca7853
commit a81ca240f8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 428 additions and 377 deletions

View File

@ -21,22 +21,22 @@ import {
PreviewState,
FetchError,
} from 'netlify-cms-lib-util';
import {
UsersGetAuthenticatedResponse as GitHubUser,
ReposGetResponse as GitHubRepo,
ReposGetBranchResponse as GitHubBranch,
GitGetBlobResponse as GitHubBlob,
GitCreateTreeResponse as GitHubTree,
GitCreateTreeParamsTree,
GitCreateCommitResponse as GitHubCommit,
ReposCompareCommitsResponseCommitsItem as GitHubCompareCommit,
ReposCompareCommitsResponseFilesItem,
ReposCompareCommitsResponse as GitHubCompareResponse,
ReposCompareCommitsResponseBaseCommit as GitHubCompareBaseCommit,
GitCreateCommitResponseAuthor as GitHubAuthor,
GitCreateCommitResponseCommitter as GitHubCommiter,
ReposListStatusesForRefResponseItem,
} from '@octokit/rest';
import { Octokit } from '@octokit/rest';
type GitHubUser = Octokit.UsersGetAuthenticatedResponse;
type GitHubRepo = Octokit.ReposGetResponse;
type GitHubBranch = Octokit.ReposGetBranchResponse;
type GitHubBlob = Octokit.GitGetBlobResponse;
type GitHubTree = Octokit.GitCreateTreeResponse;
type GitCreateTreeParamsTree = Octokit.GitCreateTreeParamsTree;
type GitHubCommit = Octokit.GitCreateCommitResponse;
type GitHubCompareCommit = Octokit.ReposCompareCommitsResponseCommitsItem;
type ReposCompareCommitsResponseFilesItem = Octokit.ReposCompareCommitsResponseFilesItem;
type GitHubCompareResponse = Octokit.ReposCompareCommitsResponse;
type GitHubCompareBaseCommit = Octokit.ReposCompareCommitsResponseBaseCommit;
type GitHubAuthor = Octokit.GitCreateCommitResponseAuthor;
type GitHubCommitter = Octokit.GitCreateCommitResponseCommitter;
type ReposListStatusesForRefResponseItem = Octokit.ReposListStatusesForRefResponseItem;
const CURRENT_METADATA_VERSION = '1';
@ -1223,7 +1223,7 @@ export default class API {
treeSha: string,
parents: string[],
author?: GitHubAuthor,
committer?: GitHubCommiter,
committer?: GitHubCommitter,
): Promise<GitHubCommit> {
return this.request(`${this.repoURL}/git/commits`, {
method: 'POST',

View File

@ -27,10 +27,12 @@ import {
blobToFileObj,
} from 'netlify-cms-lib-util';
import AuthenticationPage from './AuthenticationPage';
import { UsersGetAuthenticatedResponse as GitHubUser } from '@octokit/rest';
import { Octokit } from '@octokit/rest';
import API, { Entry } from './API';
import GraphQLAPI from './GraphQLAPI';
type GitHubUser = Octokit.UsersGetAuthenticatedResponse;
const MAX_CONCURRENT_DOWNLOADS = 10;
export default class GitHub implements Implementation {

767
yarn.lock

File diff suppressed because it is too large Load Diff