Skip to content

Commit ff70183

Browse files
committed
Update openapi-generator client to 7.13.0
1 parent f374ca1 commit ff70183

5 files changed

Lines changed: 13 additions & 11 deletions

File tree

openapitools.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json",
33
"spaces": 2,
44
"generator-cli": {
5-
"version": "7.12.0",
5+
"version": "7.13.0",
66
"generators": {
77
"v1": {
88
"inputSpec": "https://api.openshock.app/swagger/1/swagger.json",
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.13.0

src/lib/api/internal/v1/runtime.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ export function exists(json: any, key: string) {
343343
}
344344

345345
export function mapValues(data: any, fn: (item: any) => any) {
346-
return Object.keys(data).reduce(
347-
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
348-
{}
349-
);
346+
const result: { [key: string]: any } = {};
347+
for (const key of Object.keys(data)) {
348+
result[key] = fn(data[key]);
349+
}
350+
return result;
350351
}
351352

352353
export function canConsumeForm(consumes: Consume[]): boolean {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.12.0
1+
7.13.0

src/lib/api/internal/v2/runtime.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -343,10 +343,11 @@ export function exists(json: any, key: string) {
343343
}
344344

345345
export function mapValues(data: any, fn: (item: any) => any) {
346-
return Object.keys(data).reduce(
347-
(acc, key) => ({ ...acc, [key]: fn(data[key]) }),
348-
{}
349-
);
346+
const result: { [key: string]: any } = {};
347+
for (const key of Object.keys(data)) {
348+
result[key] = fn(data[key]);
349+
}
350+
return result;
350351
}
351352

352353
export function canConsumeForm(consumes: Consume[]): boolean {

0 commit comments

Comments
 (0)