1
0
Fork 0

updating tap-dot for prettier output

This commit is contained in:
Cadence Ember 2023-08-25 23:27:44 +12:00
parent c4bc079865
commit 27b8c547e3
4 changed files with 13 additions and 11 deletions

View file

@ -283,6 +283,7 @@ async function _unbridgeRoom(channelID) {
assert.ok(spaceID) assert.ok(spaceID)
// remove room from being a space member // remove room from being a space member
await api.sendState(roomID, "m.space.parent", spaceID, {})
await api.sendState(spaceID, "m.space.child", roomID, {}) await api.sendState(spaceID, "m.space.child", roomID, {})
// send a notification in the room // send a notification in the room

17
package-lock.json generated
View file

@ -29,7 +29,7 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"discord-api-types": "^0.37.53", "discord-api-types": "^0.37.53",
"supertape": "^8.3.0", "supertape": "^8.3.0",
"tap-dot": "github:cloudrac3r/tap-dot#223a4e67a6f7daf015506a12a7af74605f06c7f4" "tap-dot": "github:cloudrac3r/tap-dot#9dd7750ececeae3a96afba91905be812b6b2cc2d"
} }
}, },
"node_modules/@babel/runtime": { "node_modules/@babel/runtime": {
@ -2518,15 +2518,16 @@
"dev": true "dev": true
}, },
"node_modules/readable-stream": { "node_modules/readable-stream": {
"version": "4.3.0", "version": "4.4.2",
"resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.3.0.tgz", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-4.4.2.tgz",
"integrity": "sha512-MuEnA0lbSi7JS8XM+WNJlWZkHAAdm7gETHdFK//Q/mChGyj2akEFtdLZh32jSdkWGbRwCW9pn6g3LWDdDeZnBQ==", "integrity": "sha512-Lk/fICSyIhodxy1IDK2HazkeGjSmezAWX2egdtJnYhtzKEsBPJowlI6F6LPb5tqIQILrMbx22S5o3GuJavPusA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"abort-controller": "^3.0.0", "abort-controller": "^3.0.0",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"events": "^3.3.0", "events": "^3.3.0",
"process": "^0.11.10" "process": "^0.11.10",
"string_decoder": "^1.3.0"
}, },
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@ -3043,8 +3044,8 @@
}, },
"node_modules/tap-dot": { "node_modules/tap-dot": {
"version": "2.0.0", "version": "2.0.0",
"resolved": "git+ssh://git@github.com/cloudrac3r/tap-dot.git#223a4e67a6f7daf015506a12a7af74605f06c7f4", "resolved": "git+ssh://git@github.com/cloudrac3r/tap-dot.git#9dd7750ececeae3a96afba91905be812b6b2cc2d",
"integrity": "sha512-nhpVoX/s4IJJdm7OymbZ1rdZNlqt3l/yQ9Z9if06jcgRNto6QAZOrLIvdCILYQ6GE0mu+cyVA8s24amdwbvHiQ==", "integrity": "sha512-SLg6KF3cSkKII+5hA/we9FjnMCrL5uk0wYap7RXD9KJziy7xqZolvEOamt3CJlm5LSzRXIGblm3nmhY/EBE3AA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@ -3058,7 +3059,7 @@
"node_modules/tap-out": { "node_modules/tap-out": {
"version": "3.2.1", "version": "3.2.1",
"resolved": "git+ssh://git@github.com/cloudrac3r/tap-out.git#1b4ec6084aedb9f44ccaa0c7185ff9bfd83da771", "resolved": "git+ssh://git@github.com/cloudrac3r/tap-out.git#1b4ec6084aedb9f44ccaa0c7185ff9bfd83da771",
"integrity": "sha512-hyMMeN6jagEyeEOq7Xyg3GNIAR3iUDDocaoK5QRPjnEGbFZOYJ39Dkn7BsFUXyGVl+s4b3zPkDcTS38+6KTXCQ==", "integrity": "sha512-55eUSaX5AeEOqJMRlj9XSqUlLV/yYPOPeC3kOFqjmorq6/jlH5kIeqpgLNW5PlPEAuggzYREYYXqrN8E37ZPfQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View file

@ -35,7 +35,7 @@
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"discord-api-types": "^0.37.53", "discord-api-types": "^0.37.53",
"supertape": "^8.3.0", "supertape": "^8.3.0",
"tap-dot": "github:cloudrac3r/tap-dot#223a4e67a6f7daf015506a12a7af74605f06c7f4" "tap-dot": "github:cloudrac3r/tap-dot#9dd7750ececeae3a96afba91905be812b6b2cc2d"
}, },
"scripts": { "scripts": {
"test": "cross-env FORCE_COLOR=true supertape --no-check-assertions-count --format tap test/test.js | tap-dot", "test": "cross-env FORCE_COLOR=true supertape --no-check-assertions-count --format tap test/test.js | tap-dot",

4
types.d.ts vendored
View file

@ -69,8 +69,8 @@ export namespace Event {
export type M_Room_Message = { export type M_Room_Message = {
msgtype: "m.text" msgtype: "m.text"
body: string body: string
formatted_body?: "org.matrix.custom.html" format?: "org.matrix.custom.html"
format?: string formatted_body?: string
} }
export type M_Room_Member = { export type M_Room_Member = {