chore: add jimp dependency, icon padding script, and update configuration

This commit is contained in:
2026-05-31 14:04:37 +02:00
parent 30f81045ac
commit 7cd17307ba
1126 changed files with 166400 additions and 2 deletions
+23
View File
@@ -0,0 +1,23 @@
module.exports = class CentraResponse {
constructor (res, resOptions) {
this.coreRes = res
this.resOptions = resOptions
this.body = Buffer.alloc(0)
this.headers = res.headers
this.statusCode = res.statusCode
}
_addChunk (chunk) {
this.body = Buffer.concat([this.body, chunk])
}
async json () {
return this.statusCode === 204 ? null : JSON.parse(this.body)
}
async text () {
return this.body.toString()
}
}