Skip to content

Commit 9e65b51

Browse files
chore(deps): update dependency typescript to ^4.9.3 (#241)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Vincent Germain <vgermain@scaleway.com>
1 parent 05faa9a commit 9e65b51

File tree

7 files changed

+105
-104
lines changed

7 files changed

+105
-104
lines changed

examples/nodejs-minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@
1313
},
1414
"devDependencies": {
1515
"@types/node": "^17.0.45",
16-
"typescript": "^4.8.4"
16+
"typescript": "^4.9.3"
1717
}
1818
}

examples/serverless-function-minimal/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"devDependencies": {
1414
"serverless-scaleway-functions": "^0.4.4",
15-
"typescript": "^4.8.4"
15+
"typescript": "^4.9.3"
1616
},
1717
"description": "Minimal Typescript template to run Scaleway SDK-JS in a Function."
1818
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"rollup-plugin-dts": "^5.0.0",
9898
"rollup-plugin-visualizer": "^5.8.3",
9999
"typedoc": "^0.23.21",
100-
"typescript": "^4.8.4"
100+
"typescript": "^4.9.3"
101101
},
102102
"packageManager": "pnpm@7.17.1"
103103
}

packages/clients/src/helpers/marshalling.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,12 @@ export const unmarshalMapOfObject = <T, B extends boolean>(
139139
unmarshaller: (input: unknown) => T,
140140
emptyFallback: B = true as B,
141141
): B extends true ? Record<string, T> | undefined : Record<string, T> => {
142-
if (!data || typeof data !== 'object' || Array.isArray(data)) {
142+
if (
143+
!data ||
144+
typeof data !== 'object' ||
145+
!(data instanceof Object) ||
146+
Array.isArray(data)
147+
) {
143148
return (emptyFallback ? {} : undefined) as B extends true
144149
? Record<string, T> | undefined
145150
: Record<string, T>

packages/clients/src/internal/interceptors/interceptor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ export const composeInterceptors =
1515
async (instance: T): Promise<T> =>
1616
interceptors.reduce(
1717
async (asyncResult, interceptor) => interceptor(await asyncResult),
18-
Promise.resolve(instance),
18+
Promise.resolve(instance) as Promise<T>,
1919
)

packages/configuration-loader/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
},
2020
"type": "module",
2121
"devDependencies": {
22-
"@types/node": "^17.0.45"
22+
"@types/node": "^18.11.10"
2323
}
2424
}

0 commit comments

Comments
 (0)