Skip to content

Commit

Permalink
other: Update the formatting, merge headers to avoid overriding
Browse files Browse the repository at this point in the history
  • Loading branch information
ai-wintermute committed Dec 12, 2023
1 parent 3ca1d56 commit 6e46eca
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions dist/mailgun.node.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/mailgun.web.js

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion lib/Classes/MailgunClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import {
IRoutesClient,
IValidationClient,
IIPsClient,
IIPPoolsClient, ISubaccountsClient
IIPPoolsClient,
ISubaccountsClient,
} from '../Interfaces';

export default class MailgunClient implements IMailgunClient {
Expand Down
5 changes: 3 additions & 2 deletions lib/Classes/Subaccounts.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import Request from './common/Request';
import { ISubaccountsClient } from '../Interfaces';
import {
SubaccountListItem, SubaccountListResponseData, SubaccountResponseData,
SubaccountsQuery
SubaccountListResponseData,
SubaccountResponseData,
SubaccountsQuery,
} from '../Types';

export default class SubaccountsClient implements ISubaccountsClient {
Expand Down
1 change: 1 addition & 0 deletions lib/Classes/common/Request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ class Request {

setSubaccountHeader(subaccountId: string): void {
const headers = this.makeHeadersFromObject({
...this.headers,
[SubaccountsClient.SUBACCOUNT_HEADER]: subaccountId
});
this.headers.set(headers);
Expand Down
4 changes: 2 additions & 2 deletions lib/Types/Subaccounts/Subaccounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ export type SubaccountListItem = {
}

export type SubaccountListResponseData = {
subaccounts: SubaccountListItem[];
total: number;
subaccounts: SubaccountListItem[];
total: number;
}

export type SubaccountResponseData = {
Expand Down

0 comments on commit 6e46eca

Please sign in to comment.