Skip to content

Commit

Permalink
Updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jensborch committed Nov 29, 2022
1 parent 86266e3 commit ccc5888
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
3 changes: 1 addition & 2 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
"react-router-dom": "^6.4.3",
"react-scripts": "5.0.1",
"react-transition-group": "^4.4.4",
"react-use-precision-timer": "^1.0.8",
"recharts": "^2.1.16",
"typescript": "^4.9.3",
"web-vitals": "^3.1.0"
Expand Down Expand Up @@ -66,7 +65,7 @@
"devDependencies": {
"eslint-config-prettier": "^8.5.0",
"prettier": "^2.8.0",
"swagger-typescript-api": "^11.1.3"
"swagger-typescript-api": "^12.0.2"
},
"resolutions": {
"typescript": "4.7.4"
Expand Down
2 changes: 2 additions & 0 deletions client/src/api/Api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,7 @@ export enum ContentType {
Json = "application/json",
FormData = "multipart/form-data",
UrlEncoded = "application/x-www-form-urlencoded",
Text = "text/plain",
}

export class HttpClient<SecurityDataType = unknown> {
Expand Down Expand Up @@ -226,6 +227,7 @@ export class HttpClient<SecurityDataType = unknown> {
private contentFormatters: Record<ContentType, (input: any) => any> = {
[ContentType.Json]: (input: any) =>
input !== null && (typeof input === "object" || typeof input === "string") ? JSON.stringify(input) : input,
[ContentType.Text]: (input: any) => (input !== null && typeof input !== "string" ? JSON.stringify(input) : input),
[ContentType.FormData]: (input: any) =>
Object.keys(input || {}).reduce((formData, key) => {
const property = input[key];
Expand Down
13 changes: 4 additions & 9 deletions client/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8039,11 +8039,6 @@ react-transition-group@^4.4.4, react-transition-group@^4.4.5:
loose-envify "^1.4.0"
prop-types "^15.6.2"

react-use-precision-timer@^1.0.8:
version "1.0.8"
resolved "https://registry.yarnpkg.com/react-use-precision-timer/-/react-use-precision-timer-1.0.8.tgz#313fc5d8afef38169db3b0d9240642a018b1ccbf"
integrity sha512-XsfRN14A5DvarZIzPUdWKoiYfXG4t8GzDEbyMYtxe8xVmvyF9E3ho9ol/ublv6rL8NeuQAYvM7d2XdzWiZt1mQ==

react@^18.2.0:
version "18.2.0"
resolved "https://registry.yarnpkg.com/react/-/react-18.2.0.tgz#555bd98592883255fa00de14f1151a917b5d77d5"
Expand Down Expand Up @@ -8958,10 +8953,10 @@ [email protected]:
resolved "https://registry.yarnpkg.com/swagger-schema-official/-/swagger-schema-official-2.0.0-bab6bed.tgz#70070468d6d2977ca5237b2e519ca7d06a2ea3fd"
integrity sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA==

swagger-typescript-api@^11.1.3:
version "11.1.3"
resolved "https://registry.yarnpkg.com/swagger-typescript-api/-/swagger-typescript-api-11.1.3.tgz#c6f04257527854bc4e5cb10430209593550fe546"
integrity sha512-JDUBtHivdZICEUTf4FveNng9Lkb493q1fartzEJyio/TFfcJXfThF1Zi6v4F26Osjf7k7rC7Tt+73WESzicDQw==
swagger-typescript-api@^12.0.2:
version "12.0.2"
resolved "https://registry.yarnpkg.com/swagger-typescript-api/-/swagger-typescript-api-12.0.2.tgz#5f8bc3f11e113c7f5e53e8852d55d3b67505879d"
integrity sha512-PxR+NTpgx1TjzYJhN+1YhZ9NXpN8rldsEetHcPP9oT7BOfYji/7MEEpc7zSQnQjyl0dYGaJ+anVQ/x/FfTGDWA==
dependencies:
"@types/swagger-schema-official" "2.0.22"
cosmiconfig "7.0.1"
Expand Down

0 comments on commit ccc5888

Please sign in to comment.