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:
parent
d39aca7853
commit
a81ca240f8
@ -21,22 +21,22 @@ import {
|
|||||||
PreviewState,
|
PreviewState,
|
||||||
FetchError,
|
FetchError,
|
||||||
} from 'netlify-cms-lib-util';
|
} from 'netlify-cms-lib-util';
|
||||||
import {
|
import { Octokit } from '@octokit/rest';
|
||||||
UsersGetAuthenticatedResponse as GitHubUser,
|
|
||||||
ReposGetResponse as GitHubRepo,
|
type GitHubUser = Octokit.UsersGetAuthenticatedResponse;
|
||||||
ReposGetBranchResponse as GitHubBranch,
|
type GitHubRepo = Octokit.ReposGetResponse;
|
||||||
GitGetBlobResponse as GitHubBlob,
|
type GitHubBranch = Octokit.ReposGetBranchResponse;
|
||||||
GitCreateTreeResponse as GitHubTree,
|
type GitHubBlob = Octokit.GitGetBlobResponse;
|
||||||
GitCreateTreeParamsTree,
|
type GitHubTree = Octokit.GitCreateTreeResponse;
|
||||||
GitCreateCommitResponse as GitHubCommit,
|
type GitCreateTreeParamsTree = Octokit.GitCreateTreeParamsTree;
|
||||||
ReposCompareCommitsResponseCommitsItem as GitHubCompareCommit,
|
type GitHubCommit = Octokit.GitCreateCommitResponse;
|
||||||
ReposCompareCommitsResponseFilesItem,
|
type GitHubCompareCommit = Octokit.ReposCompareCommitsResponseCommitsItem;
|
||||||
ReposCompareCommitsResponse as GitHubCompareResponse,
|
type ReposCompareCommitsResponseFilesItem = Octokit.ReposCompareCommitsResponseFilesItem;
|
||||||
ReposCompareCommitsResponseBaseCommit as GitHubCompareBaseCommit,
|
type GitHubCompareResponse = Octokit.ReposCompareCommitsResponse;
|
||||||
GitCreateCommitResponseAuthor as GitHubAuthor,
|
type GitHubCompareBaseCommit = Octokit.ReposCompareCommitsResponseBaseCommit;
|
||||||
GitCreateCommitResponseCommitter as GitHubCommiter,
|
type GitHubAuthor = Octokit.GitCreateCommitResponseAuthor;
|
||||||
ReposListStatusesForRefResponseItem,
|
type GitHubCommitter = Octokit.GitCreateCommitResponseCommitter;
|
||||||
} from '@octokit/rest';
|
type ReposListStatusesForRefResponseItem = Octokit.ReposListStatusesForRefResponseItem;
|
||||||
|
|
||||||
const CURRENT_METADATA_VERSION = '1';
|
const CURRENT_METADATA_VERSION = '1';
|
||||||
|
|
||||||
@ -1223,7 +1223,7 @@ export default class API {
|
|||||||
treeSha: string,
|
treeSha: string,
|
||||||
parents: string[],
|
parents: string[],
|
||||||
author?: GitHubAuthor,
|
author?: GitHubAuthor,
|
||||||
committer?: GitHubCommiter,
|
committer?: GitHubCommitter,
|
||||||
): Promise<GitHubCommit> {
|
): Promise<GitHubCommit> {
|
||||||
return this.request(`${this.repoURL}/git/commits`, {
|
return this.request(`${this.repoURL}/git/commits`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
@ -27,10 +27,12 @@ import {
|
|||||||
blobToFileObj,
|
blobToFileObj,
|
||||||
} from 'netlify-cms-lib-util';
|
} from 'netlify-cms-lib-util';
|
||||||
import AuthenticationPage from './AuthenticationPage';
|
import AuthenticationPage from './AuthenticationPage';
|
||||||
import { UsersGetAuthenticatedResponse as GitHubUser } from '@octokit/rest';
|
import { Octokit } from '@octokit/rest';
|
||||||
import API, { Entry } from './API';
|
import API, { Entry } from './API';
|
||||||
import GraphQLAPI from './GraphQLAPI';
|
import GraphQLAPI from './GraphQLAPI';
|
||||||
|
|
||||||
|
type GitHubUser = Octokit.UsersGetAuthenticatedResponse;
|
||||||
|
|
||||||
const MAX_CONCURRENT_DOWNLOADS = 10;
|
const MAX_CONCURRENT_DOWNLOADS = 10;
|
||||||
|
|
||||||
export default class GitHub implements Implementation {
|
export default class GitHub implements Implementation {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user