Skip to content

Commit ad59f34

Browse files
committed
Update TypeScript slightly to fix new Node types issues
1 parent a5b8287 commit ad59f34

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@
146146
"stream-browserify": "^3.0.0",
147147
"tmp-promise": "^1.0.3",
148148
"ts-loader": "^9.2.9",
149-
"ts-node": "^9.1.1",
149+
"ts-node": "^10.9.2",
150150
"typedoc": "^0.22.4",
151-
"typescript": "4.5.5",
151+
"typescript": "4.7.4",
152152
"url": "^0.11.0",
153153
"util": "^0.12.4",
154154
"webpack": "^5.72.0",

src/server/http-combo-server.ts

+4-2
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,11 @@ function copyAddressDetails(
339339
source: SocketIsh<typeof SOCKET_ADDRESS_METADATA_FIELDS[number]>,
340340
target: SocketIsh<typeof SOCKET_ADDRESS_METADATA_FIELDS[number]>
341341
) {
342-
Object.defineProperties(target, _.zipObject(SOCKET_ADDRESS_METADATA_FIELDS,
342+
Object.defineProperties(target, _.zipObject(
343+
SOCKET_ADDRESS_METADATA_FIELDS,
343344
_.range(SOCKET_ADDRESS_METADATA_FIELDS.length).map(() => ({ writable: true }))
344-
));
345+
) as PropertyDescriptorMap);
346+
345347
SOCKET_ADDRESS_METADATA_FIELDS.forEach((fieldName) => {
346348
if (target[fieldName] === undefined) {
347349
(target as any)[fieldName] = source[fieldName];

0 commit comments

Comments
 (0)