Stream uploads + downloads + allow for remote url uploads

- Switch to using got
- Use encryption/decryption streams for speed & lesser memory consumption
- Allow for stream based download & simultaneous upload of media
This commit is contained in:
Adhiraj Singh
2021-01-13 22:48:28 +05:30
parent 500805236a
commit 0344d6336c
19 changed files with 501 additions and 146 deletions

View File

@@ -35,10 +35,10 @@
"@adiwajshing/keyed-db": "^0.2.2",
"curve25519-js": "^0.0.4",
"futoin-hkdf": "^1.3.2",
"got": "^11.8.1",
"https-proxy-agent": "^5.0.0",
"jimp": "^0.16.1",
"music-metadata": "^7.4.1",
"node-fetch": "^2.6.0",
"pino": "^6.7.0",
"pino-pretty": "^4.3.0",
"protobufjs": "^6.10.1",
@@ -50,9 +50,9 @@
"WAMessage/*"
],
"devDependencies": {
"@types/got": "^9.6.11",
"@types/mocha": "^7.0.2",
"@types/node": "^14.6.2",
"@types/node-fetch": "^2.5.7",
"@types/pino": "^6.3.2",
"@types/ws": "^7.2.6",
"assert": "^2.0.0",