Skip to content

Commit f6352cb

Browse files
authored
chore: update type-fest to latest version (#972)
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.
1 parent e153b44 commit f6352cb

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@
202202
"sub-encoder": "^2.1.1",
203203
"throttle-debounce": "^5.0.0",
204204
"tiny-typed-emitter": "^2.1.0",
205-
"type-fest": "^4.5.0",
205+
"type-fest": "^4.30.0",
206206
"undici": "^6.13.0",
207207
"unix-path-resolve": "^1.0.2",
208208
"varint": "^6.0.0",

src/mapeo-manager.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,12 +739,14 @@ export class MapeoManager extends TypedEmitter {
739739
)
740740

741741
if (deviceInfo.deviceType !== 'selfHostedServer') {
742+
/** @type {RPCDeviceType} */
743+
const deviceType = deviceInfo.deviceType
742744
// We have to make a copy of this because TypeScript can't guarantee that
743745
// `deviceInfo` won't be mutated by the time it gets to the
744746
// `sendDeviceInfo` call below.
745747
const deviceInfoToSend = {
746748
...deviceInfo,
747-
deviceType: deviceInfo.deviceType,
749+
deviceType,
748750
}
749751
await Promise.all(
750752
this.#localPeers.peers

0 commit comments

Comments
 (0)