Comparing version 3.0.5 to 3.0.8
@@ -8,10 +8,3 @@ # Important Changes | ||
- Changed **[@typescript-eslint/eslint-plugin](https://www.npmjs.com/package/@typescript-eslint/eslint-plugin)** from `^5.9.0` to `^5.9.1` | ||
- Changed **[@typescript-eslint/parser](https://www.npmjs.com/package/@typescript-eslint/parser)** from `^5.9.0` to `^5.9.1` | ||
- Changed **[cspell](https://www.npmjs.com/package/cspell)** from `^5.15.1` to `^5.15.2` | ||
- Changed **[eslint](https://www.npmjs.com/package/eslint)** from `^8.6.0` to `^8.7.0` | ||
- Changed **[eslint-plugin-jest](https://www.npmjs.com/package/eslint-plugin-jest)** from `^25.3.4` to `^25.7.0` | ||
- Changed **[figma-portal](https://www.npmjs.com/package/figma-portal)** from `^0.10.1` to `^0.10.2` | ||
- Changed **[ghinfo](https://www.npmjs.com/package/ghinfo)** from `^3.0.1` to `^3.0.2` | ||
- Changed **[ts-jest](https://www.npmjs.com/package/ts-jest)** from `^27.1.2` to `^27.1.3` | ||
- Changed **[@tagproject/ts-package-shared-config](https://www.npmjs.com/package/@tagproject/ts-package-shared-config)** from `^7.2.3` to `^7.2.4` | ||
@@ -18,0 +11,0 @@ </details> |
@@ -1,4 +0,4 @@ | ||
import * as Types from '../types'; | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
import * as Types from "../types"; | ||
import { GraphQLClient } from "graphql-request"; | ||
import * as Dom from "graphql-request/dist/types.dom"; | ||
export declare type ICommitsHistoryFragment = { | ||
@@ -15,15 +15,15 @@ edges: Array<{ | ||
user: { | ||
databaseId: number | null | undefined; | ||
databaseId: number | null; | ||
login: string; | ||
url: string; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined> | null | undefined; | ||
} | null; | ||
} | null; | ||
} | null; | ||
} | null> | null; | ||
}; | ||
export declare type IGetCountQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
branch: Types.Scalars['String']; | ||
since: Types.Scalars['GitTimestamp']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
branch: Types.Scalars["String"]; | ||
since: Types.Scalars["GitTimestamp"]; | ||
}>; | ||
@@ -37,13 +37,13 @@ export declare type IGetCountQuery = { | ||
}; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | {} | null; | ||
} | null; | ||
} | null; | ||
}; | ||
export declare type IGetFromQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
branch: Types.Scalars['String']; | ||
limit: Types.Scalars['Int']; | ||
since: Types.Scalars['GitTimestamp']; | ||
cursor: Types.Scalars['String']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
branch: Types.Scalars["String"]; | ||
limit: Types.Scalars["Int"]; | ||
since: Types.Scalars["GitTimestamp"]; | ||
cursor: Types.Scalars["String"]; | ||
}>; | ||
@@ -65,18 +65,18 @@ export declare type IGetFromQuery = { | ||
user: { | ||
databaseId: number | null | undefined; | ||
databaseId: number | null; | ||
login: string; | ||
url: string; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined> | null | undefined; | ||
} | null; | ||
} | null; | ||
} | null; | ||
} | null> | null; | ||
}; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | {} | null; | ||
} | null; | ||
} | null; | ||
}; | ||
export declare type IGetLastCommitQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
branch: Types.Scalars['String']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
branch: Types.Scalars["String"]; | ||
}>; | ||
@@ -92,16 +92,16 @@ export declare type IGetLastCommitQuery = { | ||
committer: { | ||
name: string | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined> | null | undefined; | ||
name: string | null; | ||
} | null; | ||
} | null; | ||
} | null> | null; | ||
}; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
} | {} | null; | ||
} | null; | ||
}; | ||
export declare type IGetListQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
branch: Types.Scalars['String']; | ||
limit: Types.Scalars['Int']; | ||
since: Types.Scalars['GitTimestamp']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
branch: Types.Scalars["String"]; | ||
limit: Types.Scalars["Int"]; | ||
since: Types.Scalars["GitTimestamp"]; | ||
}>; | ||
@@ -115,3 +115,3 @@ export declare type IGetListQuery = { | ||
pageInfo: { | ||
endCursor: string | null | undefined; | ||
endCursor: string | null; | ||
hasNextPage: boolean; | ||
@@ -129,13 +129,13 @@ }; | ||
user: { | ||
databaseId: number | null | undefined; | ||
databaseId: number | null; | ||
login: string; | ||
url: string; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined> | null | undefined; | ||
} | null; | ||
} | null; | ||
} | null; | ||
} | null> | null; | ||
}; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | {} | null; | ||
} | null; | ||
} | null; | ||
}; | ||
@@ -149,7 +149,7 @@ export declare const CommitsHistoryFragmentDoc: import("graphql/language/ast").DocumentNode; | ||
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { | ||
getCount(variables: IGetCountQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetCountQuery>; | ||
getFrom(variables: IGetFromQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetFromQuery>; | ||
getLastCommit(variables: IGetLastCommitQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetLastCommitQuery>; | ||
getList(variables: IGetListQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetListQuery>; | ||
getCount(variables: IGetCountQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetCountQuery>; | ||
getFrom(variables: IGetFromQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetFromQuery>; | ||
getLastCommit(variables: IGetLastCommitQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetLastCommitQuery>; | ||
getList(variables: IGetListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetListQuery>; | ||
}; | ||
export declare type Sdk = ReturnType<typeof getSdk>; |
@@ -1,2 +0,2 @@ | ||
import gql from 'graphql-tag'; | ||
import gql from "graphql-tag"; | ||
export const CommitsHistoryFragmentDoc = gql ` | ||
@@ -24,3 +24,8 @@ fragment CommitsHistory on CommitHistoryConnection { | ||
export const GetCountDocument = gql ` | ||
query getCount($owner: String!, $repository: String!, $branch: String!, $since: GitTimestamp!) { | ||
query getCount( | ||
$owner: String! | ||
$repository: String! | ||
$branch: String! | ||
$since: GitTimestamp! | ||
) { | ||
repository(owner: $owner, name: $repository) { | ||
@@ -84,3 +89,9 @@ ref(qualifiedName: $branch) { | ||
export const GetListDocument = gql ` | ||
query getList($owner: String!, $repository: String!, $branch: String!, $limit: Int!, $since: GitTimestamp!) { | ||
query getList( | ||
$owner: String! | ||
$repository: String! | ||
$branch: String! | ||
$limit: Int! | ||
$since: GitTimestamp! | ||
) { | ||
repository(owner: $owner, name: $repository) { | ||
@@ -109,17 +120,23 @@ ref(qualifiedName: $branch) { | ||
getCount(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetCountDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getCount'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetCountDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getCount"); | ||
}, | ||
getFrom(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetFromDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getFrom'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetFromDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getFrom"); | ||
}, | ||
getLastCommit(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetLastCommitDocument, variables, { | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetLastCommitDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), "getLastCommit"); | ||
}, | ||
getList(variables, requestHeaders) { | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetListDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), 'getLastCommit'); | ||
}), "getList"); | ||
}, | ||
getList(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetListDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getList'); | ||
}, | ||
}; | ||
} |
@@ -1,8 +0,8 @@ | ||
import * as Types from '../types'; | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
import * as Types from "../types"; | ||
import { GraphQLClient } from "graphql-request"; | ||
import * as Dom from "graphql-request/dist/types.dom"; | ||
export declare type IGetContentQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
expression: Types.Scalars['String']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
expression: Types.Scalars["String"]; | ||
}>; | ||
@@ -12,12 +12,12 @@ export declare type IGetContentQuery = { | ||
object: { | ||
text: string | null | undefined; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
text: string | null; | ||
} | {} | null; | ||
} | null; | ||
}; | ||
export declare type IGetIdQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
branch: Types.Scalars['String']; | ||
until: Types.Scalars['GitTimestamp']; | ||
filePath: Types.Scalars['String']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
branch: Types.Scalars["String"]; | ||
until: Types.Scalars["GitTimestamp"]; | ||
filePath: Types.Scalars["String"]; | ||
}>; | ||
@@ -31,7 +31,7 @@ export declare type IGetIdQuery = { | ||
oid: string; | ||
} | null | undefined> | null | undefined; | ||
} | null> | null; | ||
}; | ||
} | {} | null | undefined; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | {} | null; | ||
} | null; | ||
} | null; | ||
}; | ||
@@ -42,5 +42,5 @@ export declare const GetContentDocument: import("graphql/language/ast").DocumentNode; | ||
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { | ||
getContent(variables: IGetContentQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetContentQuery>; | ||
getId(variables: IGetIdQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetIdQuery>; | ||
getContent(variables: IGetContentQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetContentQuery>; | ||
getId(variables: IGetIdQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetIdQuery>; | ||
}; | ||
export declare type Sdk = ReturnType<typeof getSdk>; |
@@ -1,4 +0,8 @@ | ||
import gql from 'graphql-tag'; | ||
import gql from "graphql-tag"; | ||
export const GetContentDocument = gql ` | ||
query getContent($owner: String!, $repository: String!, $expression: String!) { | ||
query getContent( | ||
$owner: String! | ||
$repository: String! | ||
$expression: String! | ||
) { | ||
repository(owner: $owner, name: $repository) { | ||
@@ -14,3 +18,9 @@ object(expression: $expression) { | ||
export const GetIdDocument = gql ` | ||
query getId($owner: String!, $repository: String!, $branch: String!, $until: GitTimestamp!, $filePath: String!) { | ||
query getId( | ||
$owner: String! | ||
$repository: String! | ||
$branch: String! | ||
$until: GitTimestamp! | ||
$filePath: String! | ||
) { | ||
repository(owner: $owner, name: $repository) { | ||
@@ -35,11 +45,14 @@ ref(qualifiedName: $branch) { | ||
getContent(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetContentDocument, variables, { | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetContentDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), 'getContent'); | ||
}), "getContent"); | ||
}, | ||
getId(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetIdDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getId'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetIdDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getId"); | ||
}, | ||
}; | ||
} |
@@ -1,7 +0,7 @@ | ||
import * as Types from '../types'; | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
import * as Types from "../types"; | ||
import { GraphQLClient } from "graphql-request"; | ||
import * as Dom from "graphql-request/dist/types.dom"; | ||
export declare type IGetLastQueryVariables = Types.Exact<{ | ||
owner: Types.Scalars['String']; | ||
repository: Types.Scalars['String']; | ||
owner: Types.Scalars["String"]; | ||
repository: Types.Scalars["String"]; | ||
}>; | ||
@@ -14,6 +14,6 @@ export declare type IGetLastQuery = { | ||
tagName: string; | ||
publishedAt: string | null | undefined; | ||
} | null | undefined> | null | undefined; | ||
publishedAt: string | null; | ||
} | null> | null; | ||
}; | ||
} | null | undefined; | ||
} | null; | ||
}; | ||
@@ -23,4 +23,4 @@ export declare const GetLastDocument: import("graphql/language/ast").DocumentNode; | ||
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { | ||
getLast(variables: IGetLastQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetLastQuery>; | ||
getLast(variables: IGetLastQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetLastQuery>; | ||
}; | ||
export declare type Sdk = ReturnType<typeof getSdk>; |
@@ -1,2 +0,2 @@ | ||
import gql from 'graphql-tag'; | ||
import gql from "graphql-tag"; | ||
export const GetLastDocument = gql ` | ||
@@ -19,5 +19,8 @@ query getLast($owner: String!, $repository: String!) { | ||
getLast(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetLastDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getLast'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetLastDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getLast"); | ||
}, | ||
}; | ||
} |
@@ -1,6 +0,6 @@ | ||
import * as Types from '../types'; | ||
import { GraphQLClient } from 'graphql-request'; | ||
import * as Dom from 'graphql-request/dist/types.dom'; | ||
import * as Types from "../types"; | ||
import { GraphQLClient } from "graphql-request"; | ||
import * as Dom from "graphql-request/dist/types.dom"; | ||
export declare type IGetInfoQueryVariables = Types.Exact<{ | ||
repository: Types.Scalars['String']; | ||
repository: Types.Scalars["String"]; | ||
}>; | ||
@@ -13,4 +13,4 @@ export declare type IGetInfoQuery = { | ||
updatedAt: string; | ||
description: string | null | undefined; | ||
homepageUrl: string | null | undefined; | ||
description: string | null; | ||
homepageUrl: string | null; | ||
isArchived: boolean; | ||
@@ -30,12 +30,12 @@ isDisabled: boolean; | ||
name: string; | ||
} | null | undefined; | ||
} | null; | ||
licenseInfo: { | ||
name: string; | ||
} | null | undefined; | ||
} | null | undefined; | ||
} | null; | ||
} | null; | ||
}; | ||
}; | ||
export declare type IGetListQueryVariables = Types.Exact<{ | ||
login: Types.Scalars['String']; | ||
limit: Types.Scalars['Int']; | ||
login: Types.Scalars["String"]; | ||
limit: Types.Scalars["Int"]; | ||
}>; | ||
@@ -47,5 +47,5 @@ export declare type IGetListQuery = { | ||
name: string; | ||
} | null | undefined> | null | undefined; | ||
} | null> | null; | ||
}; | ||
} | null | undefined; | ||
} | null; | ||
}; | ||
@@ -56,5 +56,5 @@ export declare const GetInfoDocument: import("graphql/language/ast").DocumentNode; | ||
export declare function getSdk(client: GraphQLClient, withWrapper?: SdkFunctionWrapper): { | ||
getInfo(variables: IGetInfoQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetInfoQuery>; | ||
getList(variables: IGetListQueryVariables, requestHeaders?: Dom.RequestInit['headers']): Promise<IGetListQuery>; | ||
getInfo(variables: IGetInfoQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetInfoQuery>; | ||
getList(variables: IGetListQueryVariables, requestHeaders?: Dom.RequestInit["headers"]): Promise<IGetListQuery>; | ||
}; | ||
export declare type Sdk = ReturnType<typeof getSdk>; |
@@ -1,2 +0,2 @@ | ||
import gql from 'graphql-tag'; | ||
import gql from "graphql-tag"; | ||
export const GetInfoDocument = gql ` | ||
@@ -46,8 +46,14 @@ query getInfo($repository: String!) { | ||
getInfo(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetInfoDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getInfo'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetInfoDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getInfo"); | ||
}, | ||
getList(variables, requestHeaders) { | ||
return withWrapper(wrappedRequestHeaders => client.request(GetListDocument, variables, { ...requestHeaders, ...wrappedRequestHeaders }), 'getList'); | ||
return withWrapper((wrappedRequestHeaders) => client.request(GetListDocument, variables, { | ||
...requestHeaders, | ||
...wrappedRequestHeaders, | ||
}), "getList"); | ||
}, | ||
}; | ||
} |
@@ -0,1 +1,6 @@ | ||
export var ActorType; | ||
(function (ActorType) { | ||
ActorType["Team"] = "TEAM"; | ||
ActorType["User"] = "USER"; | ||
})(ActorType || (ActorType = {})); | ||
export var AuditLogOrderField; | ||
@@ -365,2 +370,18 @@ (function (AuditLogOrderField) { | ||
})(MergeableState || (MergeableState = {})); | ||
export var MigrationSourceType; | ||
(function (MigrationSourceType) { | ||
MigrationSourceType["AzureDevops"] = "AZURE_DEVOPS"; | ||
MigrationSourceType["BitbucketServer"] = "BITBUCKET_SERVER"; | ||
MigrationSourceType["Github"] = "GITHUB"; | ||
MigrationSourceType["GithubArchive"] = "GITHUB_ARCHIVE"; | ||
MigrationSourceType["Gitlab"] = "GITLAB"; | ||
})(MigrationSourceType || (MigrationSourceType = {})); | ||
export var MigrationState; | ||
(function (MigrationState) { | ||
MigrationState["Failed"] = "FAILED"; | ||
MigrationState["InProgress"] = "IN_PROGRESS"; | ||
MigrationState["NotStarted"] = "NOT_STARTED"; | ||
MigrationState["Queued"] = "QUEUED"; | ||
MigrationState["Succeeded"] = "SUCCEEDED"; | ||
})(MigrationState || (MigrationState = {})); | ||
export var MilestoneOrderField; | ||
@@ -834,2 +855,11 @@ (function (MilestoneOrderField) { | ||
})(RepositoryLockReason || (RepositoryLockReason = {})); | ||
export var RepositoryMigrationOrderDirection; | ||
(function (RepositoryMigrationOrderDirection) { | ||
RepositoryMigrationOrderDirection["Asc"] = "ASC"; | ||
RepositoryMigrationOrderDirection["Desc"] = "DESC"; | ||
})(RepositoryMigrationOrderDirection || (RepositoryMigrationOrderDirection = {})); | ||
export var RepositoryMigrationOrderField; | ||
(function (RepositoryMigrationOrderField) { | ||
RepositoryMigrationOrderField["CreatedAt"] = "CREATED_AT"; | ||
})(RepositoryMigrationOrderField || (RepositoryMigrationOrderField = {})); | ||
export var RepositoryOrderField; | ||
@@ -862,2 +892,8 @@ (function (RepositoryOrderField) { | ||
})(RepositoryVisibility || (RepositoryVisibility = {})); | ||
export var RepositoryVulnerabilityAlertState; | ||
(function (RepositoryVulnerabilityAlertState) { | ||
RepositoryVulnerabilityAlertState["Dismissed"] = "DISMISSED"; | ||
RepositoryVulnerabilityAlertState["Fixed"] = "FIXED"; | ||
RepositoryVulnerabilityAlertState["Open"] = "OPEN"; | ||
})(RepositoryVulnerabilityAlertState || (RepositoryVulnerabilityAlertState = {})); | ||
export var RequestableCheckStatusState; | ||
@@ -864,0 +900,0 @@ (function (RequestableCheckStatusState) { |
@@ -13,3 +13,6 @@ import { ClientError } from 'graphql-request'; | ||
if (error instanceof ClientError) { | ||
throw new Error(JSON.stringify(error.response, null, Query.TAB_WIDTH)); | ||
const { message, documentation_url: url, status } = error.response; | ||
throw new Error(message && url | ||
? `${message} (${error.response?.documentation_url}): ${error.response?.status}` | ||
: `${status} response error${message ? `: ${message}` : ''}`); | ||
} | ||
@@ -16,0 +19,0 @@ } |
{ | ||
"name": "gh-gql", | ||
"version": "3.0.5", | ||
"version": "3.0.8", | ||
"description": "GitHub GraphQL API helper for TypeScript", | ||
@@ -38,7 +38,9 @@ "license": "MIT", | ||
"lint:eslint": "rimraf coverage && eslint \"src/**\" --ext .ts", | ||
"lint:spell": "cspell -c .vscode/cspell.json --no-summary \"README.md\" \"src/**/*.ts\"", | ||
"lint:spell": "cspell -c .vscode/cspell.json --no-summary \"**/*.{js,ts,tsx,md,yml,json}\"", | ||
"prepare": "npm-run-all prepare:*", | ||
"prepare:config": "node --experimental-specifier-resolution=node node_modules/.bin/ts-package-shared-config", | ||
"prepare:docs": "node --experimental-specifier-resolution=node node_modules/.bin/docs-shared-config", | ||
"prepare:gql": "rimraf src/__generated__ && dotenv -e .env gql-gen --config codegen.yml", | ||
"prepare:husky": "husky install", | ||
"prepare:vscode": "node --experimental-specifier-resolution=node node_modules/.bin/vscode-shared-config", | ||
"release": "npm-run-all prepare lint test build generate", | ||
@@ -49,4 +51,4 @@ "test": "npm-run-all test:*", | ||
"dependencies": { | ||
"graphql": "^16.2.0", | ||
"graphql-request": "^3.7.0", | ||
"graphql": "^16.3.0", | ||
"graphql-request": "^4.0.0", | ||
"graphql-tag": "^2.12.6", | ||
@@ -57,27 +59,29 @@ "universal-user-agent": "^7.0.0" | ||
"@graphql-codegen/add": "^3.1.1", | ||
"@graphql-codegen/cli": "^2.3.1", | ||
"@graphql-codegen/import-types-preset": "^2.1.9", | ||
"@graphql-codegen/near-operation-file-preset": "^2.2.3", | ||
"@graphql-codegen/typescript": "^2.4.2", | ||
"@graphql-codegen/typescript-graphql-request": "^4.3.3", | ||
"@graphql-codegen/typescript-operations": "^2.2.2", | ||
"@tagproject/ts-package-shared-config": "^6.4.1", | ||
"@graphql-codegen/cli": "^2.6.2", | ||
"@graphql-codegen/import-types-preset": "^2.1.12", | ||
"@graphql-codegen/near-operation-file-preset": "^2.2.6", | ||
"@graphql-codegen/typescript": "^2.4.5", | ||
"@graphql-codegen/typescript-graphql-request": "^4.3.7", | ||
"@graphql-codegen/typescript-operations": "^2.3.2", | ||
"@tagproject/docs-shared-config": "^1.0.1", | ||
"@tagproject/ts-package-shared-config": "^7.2.4", | ||
"@tagproject/vscode-shared-config": "^1.2.2", | ||
"@types/jest": "^27.4.0", | ||
"@types/node": "^17.0.8", | ||
"@typescript-eslint/eslint-plugin": "^5.9.1", | ||
"@typescript-eslint/parser": "^5.9.1", | ||
"changelog-guru": "^4.0.1", | ||
"cspell": "^5.15.2", | ||
"dotenv-cli": "^4.1.1", | ||
"eslint": "^8.7.0", | ||
"@types/node": "^17.0.18", | ||
"@typescript-eslint/eslint-plugin": "^5.12.0", | ||
"@typescript-eslint/parser": "^5.12.0", | ||
"changelog-guru": "^4.0.2", | ||
"cspell": "^5.18.5", | ||
"dotenv-cli": "^5.0.0", | ||
"eslint": "^8.9.0", | ||
"eslint-config-prettier": "^8.3.0", | ||
"eslint-plugin-import": "^2.25.4", | ||
"eslint-plugin-jest": "^25.7.0", | ||
"eslint-plugin-jest": "^26.1.1", | ||
"eslint-plugin-node": "^11.1.0", | ||
"eslint-plugin-optimize-regex": "^1.2.1", | ||
"eslint-plugin-promise": "^6.0.0", | ||
"figma-portal": "^0.10.2", | ||
"ghinfo": "^3.0.2", | ||
"figma-portal": "^0.11.0", | ||
"ghinfo": "^3.0.3", | ||
"husky": "^7.0.4", | ||
"jest": "^27.4.7", | ||
"jest": "^27.5.1", | ||
"npm-run-all": "^4.1.5", | ||
@@ -87,4 +91,4 @@ "prettier": "^2.5.1", | ||
"ts-jest": "^27.1.3", | ||
"typescript": "^4.5.4" | ||
"typescript": "^4.5.5" | ||
} | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
544044
13787
33
30
+ Addedgraphql-request@4.3.0(transitive)
- Removedgraphql-request@3.7.0(transitive)
Updatedgraphql@^16.3.0
Updatedgraphql-request@^4.0.0