feat: add support for "sharp" for image generation

This commit is contained in:
Adhiraj Singh
2021-12-17 11:44:04 +05:30
parent ed30e368ad
commit e51bbc4893
4 changed files with 458 additions and 54 deletions

View File

@@ -36,7 +36,6 @@
"@hapi/boom": "^9.1.3",
"curve25519-js": "^0.0.4",
"got": "^11.8.1",
"jimp": "^0.16.1",
"libsignal": "git+https://github.com/adiwajshing/libsignal-node",
"music-metadata": "^7.4.1",
"node-cache": "^5.1.2",
@@ -45,7 +44,9 @@
"ws": "^8.0.0"
},
"optionalDependencies": {
"qrcode-terminal": "^0.12.0"
"qrcode-terminal": "^0.12.0",
"jimp": "^0.16.1",
"sharp": "^0.29.3"
},
"files": [
"lib/*",
@@ -58,9 +59,12 @@
"@types/jest": "^26.0.24",
"@types/node": "^14.6.2",
"@types/pino": "^6.3.2",
"@types/sharp": "^0.29.4",
"@types/ws": "^8.0.0",
"jest": "^27.0.6",
"jimp": "^0.16.1",
"qrcode-terminal": "^0.12.0",
"sharp": "^0.29.3",
"ts-jest": "^27.0.3",
"ts-node": "^10.0.0",
"typedoc": "^0.20.0-beta.27",