Update dependencies

This commit is contained in:
Cadence Ember 2025-08-13 20:30:19 +12:00
commit 160efc5592
8 changed files with 370 additions and 262 deletions

View file

@ -35,8 +35,7 @@ const setPresence = sync.require("./actions/set-presence")
/** @type {import("../m2d/event-dispatcher")} */
const matrixEventDispatcher = sync.require("../m2d/event-dispatcher")
/** @type {any} */ // @ts-ignore bad types from semaphore
const Semaphore = require("@chriscdn/promise-semaphore")
const {Semaphore} = require("@chriscdn/promise-semaphore")
const checkMissedPinsSema = new Semaphore()
// Grab Discord events we care about for the bridge, check them, and pass them on

View file

@ -22,7 +22,7 @@ test("log in with matrix: checks if mxid format looks valid", async t => {
mxid: "x@cadence:cadence.moe"
}
}))
t.equal(error.data.issues[0].validation, "regex")
t.match(error.data.fieldErrors.mxid, /must match pattern/)
})
test("log in with matrix: checks if mxid domain format looks valid", async t => {
@ -31,7 +31,7 @@ test("log in with matrix: checks if mxid domain format looks valid", async t =>
mxid: "@cadence:cadence."
}
}))
t.equal(error.data.issues[0].validation, "regex")
t.match(error.data.fieldErrors.mxid, /must match pattern/)
})
test("log in with matrix: sends message when there is no m.direct data", async t => {

View file

@ -27,7 +27,7 @@ const schema = {
token: z.object({
token_type: z.string(),
access_token: z.string(),
expires_in: z.number({coerce: true}),
expires_in: z.coerce.number(),
refresh_token: z.string(),
scope: z.string()
})