Skip to content

Commit

Permalink
server: dependency updates
Browse files Browse the repository at this point in the history
  • Loading branch information
koush committed Nov 29, 2024
1 parent cb501e6 commit 52d915c
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 34 deletions.
59 changes: 32 additions & 27 deletions server/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"dependencies": {
"@scrypted/ffmpeg-static": "^6.1.0-build3",
"@scrypted/node-pty": "^1.0.22",
"@scrypted/types": "^0.3.81",
"@scrypted/types": "^0.3.82",
"adm-zip": "^0.5.16",
"body-parser": "^1.20.3",
"cookie-parser": "^1.4.7",
Expand All @@ -25,18 +25,18 @@
"source-map-support": "^0.5.21",
"tar": "^7.4.3",
"tslib": "^2.8.1",
"typescript": "^5.6.3",
"typescript": "^5.7.2",
"whatwg-mimetype": "^4.0.0",
"ws": "^8.18.0"
},
"devDependencies": {
"@types/adm-zip": "^0.5.6",
"@types/cookie-parser": "^1.4.7",
"@types/adm-zip": "^0.5.7",
"@types/cookie-parser": "^1.4.8",
"@types/express": "^5.0.0",
"@types/follow-redirects": "^1.14.4",
"@types/http-auth": "^4.1.4",
"@types/lodash": "^4.17.13",
"@types/node": "^22.9.0",
"@types/node": "^22.10.1",
"@types/node-dijkstra": "^2.5.6",
"@types/node-forge": "^1.3.11",
"@types/semver": "^7.5.8",
Expand Down
5 changes: 4 additions & 1 deletion server/src/plugin/runtime/node-thread-worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,10 @@ class BufferTransfer implements RpcSerializer {

serializationContext.transferList ||= [];
const transferList: worker_threads.TransferListItem[] = serializationContext.transferList;
transferList.push(value.buffer);
const { buffer } = value;
// shared array buffers doesn't need to be transferred.
if (!(buffer instanceof SharedArrayBuffer))
transferList.push(buffer);
// can return the value directly, as the buffer is transferred.
return value;
}
Expand Down
2 changes: 1 addition & 1 deletion server/src/rpc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ class RpcProxy implements PrimitiveProxyHandler<any> {
if (e.name === 'StopAsyncIteration') {
return {
done: true,
value: undefined,
value: undefined as any,
}
}
throw e;
Expand Down

0 comments on commit 52d915c

Please sign in to comment.