diff --git a/package-lock.json b/package-lock.json index 2c44139..3a8d66d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,6 +17,7 @@ "express": "^4.17.1", "fs-extra": "^10.0.0", "hastebin-gen": "^2.0.5", + "helmet": "^4.6.0", "ioredis": "^4.27.7", "jsonwebtoken": "^8.5.1", "moment": "^2.29.1", @@ -2746,6 +2747,14 @@ "node-fetch": "^2.6.0" } }, + "node_modules/helmet": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", + "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==", + "engines": { + "node": ">=10.0.0" + } + }, "node_modules/hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", @@ -7604,6 +7613,11 @@ "node-fetch": "^2.6.0" } }, + "helmet": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/helmet/-/helmet-4.6.0.tgz", + "integrity": "sha512-HVqALKZlR95ROkrnesdhbbZJFi/rIVSoNq6f3jA/9u6MIbTsPh3xZwihjeI5+DO/2sOV6HMHooXcEOuwskHpTg==" + }, "hosted-git-info": { "version": "2.8.9", "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.9.tgz", diff --git a/package.json b/package.json index 69fa0d3..de2102b 100644 --- a/package.json +++ b/package.json @@ -20,6 +20,7 @@ "express": "^4.17.1", "fs-extra": "^10.0.0", "hastebin-gen": "^2.0.5", + "helmet": "^4.6.0", "ioredis": "^4.27.7", "jsonwebtoken": "^8.5.1", "moment": "^2.29.1", diff --git a/src/commands/deleteaccount.ts b/src/commands/deleteaccount.ts index dda2b9d..5700429 100644 --- a/src/commands/deleteaccount.ts +++ b/src/commands/deleteaccount.ts @@ -1,5 +1,5 @@ import { Message } from 'discord.js'; -import uuid from 'uuid/v4'; +import { v4 as uuid } from 'uuid'; import { Client, Command } from '../class'; export default class DeleteAccount extends Command {