Skip to content

Commit

Permalink
chore: update type-fest to latest version
Browse files Browse the repository at this point in the history
This updates `type-fest` to the latest version, 4.30.0. A small change
was required in `src/mapeo-manager.js` to fix a TypeScript error, but
this should have no impact on functionality.
  • Loading branch information
EvanHahn committed Dec 3, 2024
1 parent e153b44 commit 644ba4a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
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

0 comments on commit 644ba4a

Please sign in to comment.