Skip to content

Commit c9ec363

Browse files
committed
deps update
1 parent 15d20fa commit c9ec363

File tree

23 files changed

+1384
-230
lines changed

23 files changed

+1384
-230
lines changed

.eslintrc.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@
1111
"plugin:@typescript-eslint/eslint-recommended",
1212
"plugin:@typescript-eslint/recommended",
1313
"plugin:prettier/recommended",
14-
"prettier",
15-
"prettier/@typescript-eslint"
14+
"prettier"
1615
],
1716
"parser": "@typescript-eslint/parser",
1817
"parserOptions": {

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -25,27 +25,27 @@
2525
"lodash": "^4.17.21"
2626
},
2727
"devDependencies": {
28-
"@types/lodash": "^4.14.159",
29-
"@types/uuid": "^8.3.0",
30-
"@typescript-eslint/eslint-plugin": "^3.9.0",
31-
"@typescript-eslint/parser": "^3.9.0",
28+
"@types/lodash": "^4.14.195",
29+
"@types/uuid": "^9.0.2",
30+
"@typescript-eslint/eslint-plugin": "^6.0.0",
31+
"@typescript-eslint/parser": "^6.0.0",
3232
"cross-env": "^7.0.3",
33-
"eslint": "^7.6.0",
34-
"eslint-config-prettier": "^6.11.0",
35-
"eslint-config-standard": "^14.1.1",
36-
"eslint-plugin-import": "^2.22.0",
33+
"eslint": "^8.44.0",
34+
"eslint-config-prettier": "^8.8.0",
35+
"eslint-config-standard": "^17.1.0",
36+
"eslint-plugin-import": "^2.27.5",
3737
"eslint-plugin-node": "^11.1.0",
38-
"eslint-plugin-prettier": "^3.1.4",
39-
"eslint-plugin-promise": "^4.2.1",
40-
"eslint-plugin-standard": "^4.0.1",
38+
"eslint-plugin-prettier": "^5.0.0",
39+
"eslint-plugin-promise": "^6.1.1",
40+
"eslint-plugin-standard": "^5.0.0",
4141
"husky": "^4.2.5",
4242
"nock": "^13.0.4",
43-
"prettier": "^2.0.5",
43+
"prettier": "^3.0.0",
4444
"rimraf": "^3.0.2",
4545
"tsdx": "^0.13.2",
4646
"tslib": "^2.0.1",
47-
"typescript": "^3.9.7",
48-
"uuid": "^8.3.0"
47+
"typescript": "^5.1.6",
48+
"uuid": "^9.0.0"
4949
},
5050
"engines": {
5151
"node": ">=10"

src/errors/MessageError/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
export function isMessageErrorResponseData(
2-
response: any
2+
response: any, // eslint-disable-line
33
): response is MessageErrorResponse {
44
return response.error !== undefined && response.message !== undefined;
55
}

src/modules/baseMessageModule/index.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export class BaseMessageModule extends BaseModule {
4343
protected async send(
4444
content: MessageContent,
4545
recipient: Recipient,
46-
details?: SmsDetails
46+
details?: SmsDetails,
4747
): Promise<MessageResponse> {
4848
const body: Record<string, unknown> = {
4949
details: true,
@@ -112,7 +112,7 @@ export class BaseMessageModule extends BaseModule {
112112
}
113113

114114
private isNumberRecipient(
115-
recipient: Recipient
115+
recipient: Recipient,
116116
): recipient is NumberRecipient {
117117
return (recipient as NumberRecipient).to !== undefined;
118118
}
@@ -137,20 +137,20 @@ export class BaseMessageModule extends BaseModule {
137137
}
138138

139139
private isVmsLocalFile(
140-
content: MessageContent
140+
content: MessageContent,
141141
): content is VmsLocalFileContent {
142142
return (content as VmsLocalFileContent).localPath !== undefined;
143143
}
144144

145145
private isVmsRemotePath(
146-
content: MessageContent
146+
content: MessageContent,
147147
): content is VmsRemoteFileContent {
148148
return (content as VmsRemoteFileContent).remotePath !== undefined;
149149
}
150150

151151
private getFormDataForVmsLocalFile(
152152
body: Record<string, unknown>,
153-
content: VmsLocalFileContent
153+
content: VmsLocalFileContent,
154154
): FormData {
155155
const formData = new FormData();
156156

src/modules/contacts/httpClient/formatResponseDates/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ interface ApiGroup {
88
}
99

1010
const isApiCollection = (
11-
data: ApiGroup | ApiCollection<ApiGroup>
11+
data: ApiGroup | ApiCollection<ApiGroup>,
1212
): data is ApiCollection<ApiGroup> => {
1313
return (
1414
!!(data as ApiCollection<ApiGroup>).size &&

src/modules/contacts/httpClient/prepareParamsForRequest/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const formatKeys = (data: Record<string, string | boolean | number>) => {
1515
};
1616

1717
export const prepareParamsForRequest = (
18-
config: AxiosRequestConfig
18+
config: AxiosRequestConfig,
1919
): AxiosRequestConfig => {
2020
const { data, method, params } = config;
2121

src/modules/contacts/index.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,7 @@ describe('Contacts', () => {
413413
// when
414414
const response = await smsapi.contacts.assignContactToGroup(
415415
contactId,
416-
groupId
416+
groupId,
417417
);
418418

419419
// then
@@ -452,7 +452,7 @@ describe('Contacts', () => {
452452
// when
453453
const response = await smsapi.contacts.unpinContactFromGroup(
454454
contactId,
455-
groupId
455+
groupId,
456456
);
457457

458458
// then

src/modules/contacts/index.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export class Contacts extends BaseModule {
5151

5252
async getById(contactId: string): Promise<Contact> {
5353
return await this.contactHttpClient.get<Contact, Contact>(
54-
`/contacts/${contactId}`
54+
`/contacts/${contactId}`,
5555
);
5656
}
5757

@@ -64,13 +64,13 @@ export class Contacts extends BaseModule {
6464

6565
async update(
6666
contactId: string,
67-
updateContact: UpdateContact
67+
updateContact: UpdateContact,
6868
): Promise<Contact> {
6969
return await this.contactHttpClient.put<Contact, Contact>(
7070
`/contacts/${contactId}`,
7171
{
7272
...this.formatContactDetails(updateContact || {}),
73-
}
73+
},
7474
);
7575
}
7676

@@ -87,13 +87,13 @@ export class Contacts extends BaseModule {
8787

8888
async getGroupById(contactId: string, groupId: string): Promise<Group> {
8989
return await this.contactHttpClient.get<Group, Group>(
90-
`/contacts/${contactId}/groups/${groupId}`
90+
`/contacts/${contactId}/groups/${groupId}`,
9191
);
9292
}
9393

9494
async assignContactToGroup(
9595
contactId: string,
96-
groupId: string
96+
groupId: string,
9797
): Promise<ApiCollection<Group>> {
9898
return await this.contactHttpClient.put<
9999
ApiCollection<Group>,
@@ -103,10 +103,10 @@ export class Contacts extends BaseModule {
103103

104104
async unpinContactFromGroup(
105105
contactId: string,
106-
groupId: string
106+
groupId: string,
107107
): Promise<void> {
108108
await this.contactHttpClient.delete(
109-
`/contacts/${contactId}/groups/${groupId}`
109+
`/contacts/${contactId}/groups/${groupId}`,
110110
);
111111
}
112112

src/modules/contacts/modules/fields/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export class Fields extends BaseModule {
1414

1515
async create(
1616
fieldName: string,
17-
fieldType: FieldType = 'text'
17+
fieldType: FieldType = 'text',
1818
): Promise<Field> {
1919
return await this.httpClient.post<Field, Field>('/contacts/fields', {
2020
name: fieldName,
@@ -27,7 +27,7 @@ export class Fields extends BaseModule {
2727
`/contacts/fields/${fieldId}`,
2828
{
2929
name: newName,
30-
}
30+
},
3131
);
3232
}
3333

src/modules/contacts/modules/groups/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class Groups extends BaseModule {
1515

1616
async getById(groupId: string): Promise<Group> {
1717
return await this.httpClient.get<Group, Group>(
18-
`/contacts/groups/${groupId}`
18+
`/contacts/groups/${groupId}`,
1919
);
2020
}
2121

@@ -29,7 +29,7 @@ export class Groups extends BaseModule {
2929
async update(groupId: string, updateGroup: UpdateGroup): Promise<Group> {
3030
return await this.httpClient.put<Group, Group>(
3131
`/contacts/groups/${groupId}`,
32-
updateGroup
32+
updateGroup,
3333
);
3434
}
3535

0 commit comments

Comments
 (0)