Update revolt.js to fix types

This commit is contained in:
bree 2021-07-04 21:09:24 -04:00
parent 3c2a85a3e4
commit e070f26bda
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 1B2E56B9EC985B96
3 changed files with 6 additions and 6 deletions

View file

@ -93,7 +93,7 @@
"react-router-dom": "^5.2.0",
"react-scroll": "^1.8.2",
"redux": "^4.1.0",
"revolt.js": "4.3.3-alpha.7",
"revolt.js": "4.3.3-alpha.8",
"rimraf": "^3.0.2",
"sass": "^1.35.1",
"shade-blend-color": "^1.0.0",

View file

@ -19,7 +19,7 @@ export default function AttachmentActions({ attachment }: Props) {
const download_url = url.replace('attachments', 'attachments/download')
// for some reason revolt.js says the size is a string even though it's a number
const filesize = determineFileSize(size as unknown as number);
const filesize = determineFileSize(size);
switch (metadata.type) {
case 'Image':

View file

@ -3495,10 +3495,10 @@ reusify@^1.0.4:
resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76"
integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==
revolt.js@4.3.3-alpha.7:
version "4.3.3-alpha.7"
resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-4.3.3-alpha.7.tgz#de6ecef444e8368aac3753761e2e10f516f50712"
integrity sha512-oi76A+EIxrD+tVRTU8s2LISFBpvMf0kpinw5rdukoc1VWpl0bCC6Kko26yC7lhVkWGLTZxHMOKaUkgbOgy0flA==
revolt.js@4.3.3-alpha.8:
version "4.3.3-alpha.8"
resolved "https://registry.yarnpkg.com/revolt.js/-/revolt.js-4.3.3-alpha.8.tgz#2a191ffa9d4c304e328b5eb8d9dc1e13e1f99d9a"
integrity sha512-A6sjZ7cmeQuqS9otzANv+Rg4CfvpsTMoDARBwQuez4O7NPRopdWNHylUPo20UutAPzW9xoqVbF8673VlTu5Jag==
dependencies:
"@insertish/mutable" "1.1.0"
axios "^0.19.2"