Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: sourceStringsApi.stringBatchOperations throws internal error inside handleHttpClientError #331

Merged
merged 1 commit into from
Nov 15, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
*/
export interface PatchRequest {
/** Patch value */
value?: any;

Check warning on line 80 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type

/** Patch operation to perform */
op: PatchOperation;
Expand Down Expand Up @@ -155,10 +155,10 @@
if (Array.isArray(crowdinResponseErrors)) {
const validationCodes: { key: string; codes: string[] }[] = [];
const validationMessages: string[] = [];
crowdinResponseErrors.forEach((e: any) => {

Check warning on line 158 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
if (e.error.key && Array.isArray(e.error?.errors)) {
if (e.error?.key && Array.isArray(e.error?.errors)) {
const codes: string[] = [];
e.error.errors.forEach((er: any) => {

Check warning on line 161 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
if (er.message && er.code) {
codes.push(er.code);
validationMessages.push(er.message);
Expand Down Expand Up @@ -239,7 +239,7 @@
this.config = config;
}

graphql<T>(req: { query: string; operationName?: string; variables?: any }): Promise<ResponseObject<T>> {

Check warning on line 242 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
if (!this.organization) {
throw new Error('GraphQL API could be used only with Crowdin Enterprise.');
}
Expand Down Expand Up @@ -300,7 +300,7 @@
return this;
}

protected async getList<T = any>(

Check warning on line 303 in src/core/index.ts

View workflow job for this annotation

GitHub Actions / code-coverage

Unexpected any. Specify a different type
url: string,
limit?: number,
offset?: number,
Expand Down
Loading