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

chore(deps-dev): bump the linter-packages group with 5 updates #312

Merged
merged 2 commits into from
Jul 19, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## Unreleased

* chore: bump dependencies
* chore: linter violations following update
* versions: dropping node 14, no longer maintained. Adds 20.x to test matrix

## 0.8.2
Expand Down
8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,18 @@
"@babel/preset-env": "7.x",
"@babel/register": "7.x",
"@types/ws": "^8.2.2",
"@typescript-eslint/eslint-plugin": "^5.15.0",
"@typescript-eslint/parser": "^5.15.0",
"@typescript-eslint/eslint-plugin": "^6.1.0",
"@typescript-eslint/parser": "^6.1.0",
"axios-mock-adapter": "^1.20.0",
"chai": "^4.3.6",
"core-js": "^3.21.1",
"esbuild": "^0.17.5",
"eslint": "^8.11.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-prettier": "^5.0.0",
"mocha": "^10.0.0",
"prettier": "^2.6.0",
"prettier": "^3.0.0",
"rosie": "^2.1.0",
"sinon": "^15.0.0",
"ts-mocha": "^10.0.0",
Expand Down
20 changes: 10 additions & 10 deletions src/Addons/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default class Addons {
for(appId: string): Promise<Addon[]> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/addons`),
"addons"
"addons",
);
}

Expand All @@ -47,7 +47,7 @@ export default class Addons {
this._client.apiClient().post(`/apps/${appId}/addons`, {
addon: payload,
}),
"addon"
"addon",
);
}

Expand All @@ -58,7 +58,7 @@ export default class Addons {
listCategories(): Promise<Category[]> {
return unpackData(
this._client.unauthenticatedClient().get("/addon_categories"),
"addon_categories"
"addon_categories",
);
}

Expand All @@ -69,7 +69,7 @@ export default class Addons {
*/
listProviders(
categoryId?: string,
authenticated = false
authenticated = false,
): Promise<AddonProvider[]> {
const url = categoryId
? `/addon_providers?category_id=${categoryId}`
Expand All @@ -92,13 +92,13 @@ export default class Addons {
update(
appId: string,
addonId: string,
addon: UpdateParams
addon: UpdateParams,
): Promise<AddonUpgradeResponse> {
return unpackData(
this._client
.apiClient()
.patch(`/apps/${appId}/addons/${addonId}`, { addon: addon }),
"addon"
"addon",
);
}

Expand All @@ -109,7 +109,7 @@ export default class Addons {
*/
resume(appId: string, addonId: string): Promise<AddonResumeResponse> {
return unpackData(
this._client.apiClient().post(`/apps/${appId}/addons/${addonId}/resume`)
this._client.apiClient().post(`/apps/${appId}/addons/${addonId}/resume`),
);
}

Expand All @@ -121,7 +121,7 @@ export default class Addons {
*/
destroy(appId: string, addonId: string): Promise<void> {
return unpackData(
this._client.apiClient().delete(`/apps/${appId}/addons/${addonId}`)
this._client.apiClient().delete(`/apps/${appId}/addons/${addonId}`),
);
}

Expand All @@ -133,7 +133,7 @@ export default class Addons {
sso(appId: string, addonId: string): Promise<AddonSso> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/addons/${addonId}/sso`),
"addon"
"addon",
);
}

Expand All @@ -145,7 +145,7 @@ export default class Addons {
getAddon(appId: string, addonId: string): Promise<Addon> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/addons/${addonId}`),
"addon"
"addon",
);
}
}
12 changes: 6 additions & 6 deletions src/Alerts/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Alerts {
for(appId: string): Promise<AlertWithNotifiers[]> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/alerts`),
"alerts"
"alerts",
);
}

Expand All @@ -39,7 +39,7 @@ export default class Alerts {
find(appId: string, alertId: string): Promise<Alert> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/alerts/${alertId}`),
"alert"
"alert",
);
}

Expand All @@ -54,7 +54,7 @@ export default class Alerts {

return unpackData(
this._client.apiClient().post(`/apps/${appId}/alerts`, data),
"alert"
"alert",
);
}

Expand All @@ -68,13 +68,13 @@ export default class Alerts {
update(
appId: string,
alertId: string,
opts: UpdateParams = {}
opts: UpdateParams = {},
): Promise<Alert> {
const data = { alert: opts };

return unpackData(
this._client.apiClient().patch(`/apps/${appId}/alerts/${alertId}`, data),
"alert"
"alert",
);
}

Expand All @@ -86,7 +86,7 @@ export default class Alerts {
*/
destroy(appId: string, alertId: string): Promise<void> {
return unpackData(
this._client.apiClient().delete(`/apps/${appId}/alerts/${alertId}`)
this._client.apiClient().delete(`/apps/${appId}/alerts/${alertId}`),
);
}
}
14 changes: 7 additions & 7 deletions src/Apps/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default class Apps {

return unpackData(
this._client.apiClient().post("/apps", { app: payload }, { headers }),
"app"
"app",
);
}

Expand All @@ -79,7 +79,7 @@ export default class Apps {
logsURL(id: string): Promise<string> {
return unpackData(
this._client.apiClient().get(`/apps/${id}/logs`),
"logs_url"
"logs_url",
);
}

Expand All @@ -94,7 +94,7 @@ export default class Apps {
return unpackData(
this._client
.apiClient()
.delete(`/apps/${appID}`, { params: { current_name: currentName } })
.delete(`/apps/${appID}`, { params: { current_name: currentName } }),
);
}

Expand All @@ -112,7 +112,7 @@ export default class Apps {
current_name: currentName,
new_name: newName,
}),
"app"
"app",
);
}

Expand All @@ -133,9 +133,9 @@ export default class Apps {
owner: ownerID,
},
},
{ params: { current_name: currentName } }
{ params: { current_name: currentName } },
),
"app"
"app",
);
}

Expand All @@ -150,7 +150,7 @@ export default class Apps {
update(appID: string, appSettings: UpdateParams): Promise<App> {
return unpackData(
this._client.apiClient().patch(`/apps/${appID}`, { app: appSettings }),
"app"
"app",
);
}
}
2 changes: 1 addition & 1 deletion src/AuditLogs/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export default class AuditLogs {
*/
async show(appId: string, id: string): Promise<AuditLog[]> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/audit_logs/${id}`)
this._client.apiClient().get(`/apps/${appId}/audit_logs/${id}`),
);
}
}
12 changes: 6 additions & 6 deletions src/Autoscalers/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default class Autoscalers {
for(appId: string): Promise<Autoscaler[]> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/autoscalers`),
"autoscalers"
"autoscalers",
);
}

Expand All @@ -41,7 +41,7 @@ export default class Autoscalers {
this._client
.apiClient()
.post(`/apps/${appId}/autoscalers`, { autoscaler: autoscaler }),
"autoscaler"
"autoscaler",
);
}

Expand All @@ -55,7 +55,7 @@ export default class Autoscalers {
return unpackData(
this._client
.apiClient()
.delete(`/apps/${appId}/autoscalers/${autoscalerId}`)
.delete(`/apps/${appId}/autoscalers/${autoscalerId}`),
);
}

Expand All @@ -70,7 +70,7 @@ export default class Autoscalers {
this._client
.apiClient()
.get(`/apps/${appId}/autoscalers/${autoscalerId}`),
"autoscaler"
"autoscaler",
);
}

Expand All @@ -84,15 +84,15 @@ export default class Autoscalers {
update(
appId: string,
autoscalerId: string,
autoscaler: UpdateParams
autoscaler: UpdateParams,
): Promise<Autoscaler> {
return unpackData(
this._client
.apiClient()
.patch(`/apps/${appId}/autoscalers/${autoscalerId}`, {
autoscaler: autoscaler,
}),
"autoscaler"
"autoscaler",
);
}
}
8 changes: 4 additions & 4 deletions src/Billing/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export default class Billing {
profile(): Promise<BillingProfile> {
return unpackData(
this._client.billingApiClient().get("/profile"),
"profile"
"profile",
);
}

Expand All @@ -36,7 +36,7 @@ export default class Billing {
createProfile(profile: Omit<BillingProfile, "id">): Promise<BillingProfile> {
return unpackData(
this._client.billingApiClient().post("/profiles", { profile }),
"profile"
"profile",
);
}

Expand All @@ -47,11 +47,11 @@ export default class Billing {
*/
updateProfile(
id: string,
profile: Omit<BillingProfile, "id">
profile: Omit<BillingProfile, "id">,
): Promise<BillingProfile> {
return unpackData(
this._client.billingApiClient().put(`/profiles/${id}`, { profile }),
"profile"
"profile",
);
}
}
8 changes: 4 additions & 4 deletions src/Collaborators/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export default class Collaborators {
for(appId: string): Promise<Collaborator[]> {
return unpackData(
this._client.apiClient().get(`/apps/${appId}/collaborators`),
"collaborators"
"collaborators",
);
}

Expand All @@ -43,7 +43,7 @@ export default class Collaborators {
return unpackData(
this._client
.apiClient()
.delete(`/apps/${appId}/collaborators/${collaboratorId}`)
.delete(`/apps/${appId}/collaborators/${collaboratorId}`),
);
}

Expand All @@ -58,7 +58,7 @@ export default class Collaborators {
this._client.apiClient().post(`/apps/${appId}/collaborators`, {
collaborator: { email: email },
}),
"collaborator"
"collaborator",
);
}

Expand All @@ -71,7 +71,7 @@ export default class Collaborators {
return unpackData(
this._client
.apiClient()
.get("/apps/collaboration", { params: { token: token } })
.get("/apps/collaboration", { params: { token: token } }),
);
}
}
Loading
Loading