From 9b1c765a493f44736708286fcf4d37ada6476e0b Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 16 Nov 2019 14:19:02 -0500 Subject: [PATCH 1/2] Change license in package.json --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3eefffc..f3cef17 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "build": "tsc -p ./tsconfig.json" }, "author": "Library of Code sp-us Engineering Team", - "license": "MIT", + "license": "AGPL-3.0-only", "private": false, "dependencies": { "@ghaiklor/x509": "^1.0.0", From 6fac48e996546598e7f3d35f36856484d544f90f Mon Sep 17 00:00:00 2001 From: Matthew R Date: Sat, 16 Nov 2019 14:19:24 -0500 Subject: [PATCH 2/2] Return types in funcs --- src/functions/checkLock.ts | 4 +--- src/functions/dataConversion.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/functions/checkLock.ts b/src/functions/checkLock.ts index 93eca3a..48c83b9 100644 --- a/src/functions/checkLock.ts +++ b/src/functions/checkLock.ts @@ -1,8 +1,6 @@ -import uuid from 'uuid/v4'; import { Client } from '..'; -import { RichEmbed } from '../class'; -export default function checkLock(client: Client) { +export default function checkLock(client: Client): void { setInterval(async () => { try { const moderations = await client.db.Moderation.find(); diff --git a/src/functions/dataConversion.ts b/src/functions/dataConversion.ts index f72a611..f5b23fe 100644 --- a/src/functions/dataConversion.ts +++ b/src/functions/dataConversion.ts @@ -1,4 +1,4 @@ -export default function dataConversion(bytes) { +export default function dataConversion(bytes: number): string { const i = Math.floor(Math.log(bytes) / Math.log(1024)); const sizes = ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; if (bytes === 0) {