Merge branch 'master' into origin/dev/erkinalp/self-bans
This commit is contained in:
commit
340c0d7899
@ -126,6 +126,13 @@ router.get("/", async (req: Request, res: Response) => {
|
|||||||
y.proxy_url = `${endpoint == null ? "" : endpoint}${new URL(uri).pathname}`;
|
y.proxy_url = `${endpoint == null ? "" : endpoint}${new URL(uri).pathname}`;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
//Some clients ( discord.js ) only check if a property exists within the response,
|
||||||
|
//which causes erorrs when, say, the `application` property is `null`.
|
||||||
|
for (var curr in x) {
|
||||||
|
if (x[curr] === null)
|
||||||
|
delete x[curr];
|
||||||
|
}
|
||||||
|
|
||||||
return x;
|
return x;
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
|
|||||||
BIN
bundle/package-lock.json
generated
BIN
bundle/package-lock.json
generated
Binary file not shown.
@ -99,7 +99,7 @@
|
|||||||
"picocolors": "^1.0.0",
|
"picocolors": "^1.0.0",
|
||||||
"proxy-agent": "^5.0.0",
|
"proxy-agent": "^5.0.0",
|
||||||
"reflect-metadata": "^0.1.13",
|
"reflect-metadata": "^0.1.13",
|
||||||
"sqlite3": "^5.0.2",
|
"sqlite3": "^4.2.0",
|
||||||
"supertest": "^6.1.6",
|
"supertest": "^6.1.6",
|
||||||
"tslib": "^2.3.1",
|
"tslib": "^2.3.1",
|
||||||
"typeorm": "^0.2.37",
|
"typeorm": "^0.2.37",
|
||||||
|
|||||||
BIN
util/package-lock.json
generated
BIN
util/package-lock.json
generated
Binary file not shown.
Reference in New Issue
Block a user