Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update type-fest to latest version #972

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@
"sub-encoder": "^2.1.1",
"throttle-debounce": "^5.0.0",
"tiny-typed-emitter": "^2.1.0",
"type-fest": "^4.5.0",
"type-fest": "^4.30.0",
"undici": "^6.13.0",
"unix-path-resolve": "^1.0.2",
"varint": "^6.0.0",
Expand Down
4 changes: 3 additions & 1 deletion src/mapeo-manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,14 @@ export class MapeoManager extends TypedEmitter {
)

if (deviceInfo.deviceType !== 'selfHostedServer') {
/** @type {RPCDeviceType} */
const deviceType = deviceInfo.deviceType
// We have to make a copy of this because TypeScript can't guarantee that
// `deviceInfo` won't be mutated by the time it gets to the
// `sendDeviceInfo` call below.
const deviceInfoToSend = {
...deviceInfo,
deviceType: deviceInfo.deviceType,
deviceType,
}
await Promise.all(
this.#localPeers.peers
Expand Down
Loading