diff --git a/bundle/package-lock.json b/bundle/package-lock.json index 220c9177..c06ab5ee 100644 Binary files a/bundle/package-lock.json and b/bundle/package-lock.json differ diff --git a/bundle/package.json b/bundle/package.json index bd6080c9..0be37a8e 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -54,9 +54,9 @@ "@fosscord/gateway": "file:../gateway", "@fosscord/util": "file:../util", "async-exit-hook": "^2.0.1", - "chalk": "^4.1.2", "express": "^4.17.1", "missing-native-js-functions": "^1.2.15", + "nanocolors": "^0.2.12", "node-os-utils": "^1.3.5", "tsconfig-paths": "^3.11.0" } diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index a5405fa7..1596d54f 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -6,7 +6,7 @@ import { FosscordServer as APIServer } from "@fosscord/api"; import { Server as GatewayServer } from "@fosscord/gateway"; import { CDNServer } from "@fosscord/cdn/"; import express from "express"; -import { red, green, bold } from "chalk"; +import { red, green, bold } from "nanocolors"; import { Config, initDatabase } from "@fosscord/util"; const app = express(); diff --git a/bundle/src/start.ts b/bundle/src/start.ts index 85e15346..d0686c13 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -1,7 +1,7 @@ // process.env.MONGOMS_DEBUG = "true"; import cluster from "cluster"; import os from "os"; -import { red, bold, yellow, cyan } from "chalk"; +import { red, bold, yellow, cyan } from "nanocolors"; import { initStats } from "./stats"; import { execSync } from "child_process"; diff --git a/cdn/package-lock.json b/cdn/package-lock.json index d0b2c50e..b8d4f924 100644 Binary files a/cdn/package-lock.json and b/cdn/package-lock.json differ diff --git a/cdn/package.json b/cdn/package.json index bb4603be..62c21c9a 100644 --- a/cdn/package.json +++ b/cdn/package.json @@ -56,6 +56,7 @@ "lambert-server": "^1.2.8", "missing-native-js-functions": "^1.2.15", "multer": "^1.4.2", + "nanocolors": "^0.2.12", "node-fetch": "^2.6.1", "supertest": "^6.1.6", "typescript": "^4.1.2", diff --git a/cdn/src/util/Storage.ts b/cdn/src/util/Storage.ts index 8ae44bbb..91f841a6 100644 --- a/cdn/src/util/Storage.ts +++ b/cdn/src/util/Storage.ts @@ -1,7 +1,7 @@ import { FileStorage } from "./FileStorage"; import path from "path"; import fse from "fs-extra"; -import { bgCyan, black } from "chalk"; +import { bgCyan, black } from "nanocolors"; process.cwd(); export interface Storage { diff --git a/util/package-lock.json b/util/package-lock.json index 26321ee9..d48403dd 100644 Binary files a/util/package-lock.json and b/util/package-lock.json differ diff --git a/util/package.json b/util/package.json index 426b4e43..3bdc04be 100644 --- a/util/package.json +++ b/util/package.json @@ -39,7 +39,6 @@ "dependencies": { "ajv": "^8.6.2", "amqplib": "^0.8.0", - "chalk": "^4.1.2", "class-validator": "^0.13.1", "dot-prop": "^6.0.1", "env-paths": "^2.2.1", @@ -47,6 +46,7 @@ "lambert-server": "^1.2.10", "missing-native-js-functions": "^1.2.15", "multer": "^1.4.3", + "nanocolors": "^0.2.12", "node-fetch": "^2.6.1", "patch-package": "^6.4.7", "pg": "^8.7.1", diff --git a/util/src/util/Database.ts b/util/src/util/Database.ts index bf8c6fce..caf0880c 100644 --- a/util/src/util/Database.ts +++ b/util/src/util/Database.ts @@ -2,7 +2,7 @@ import path from "path"; import "reflect-metadata"; import { Connection, createConnection, ValueTransformer } from "typeorm"; import * as Models from "../entities"; -import { yellow, green} from "chalk"; +import { yellow, green} from "nanocolors"; // UUID extension option is only supported with postgres // We want to generate all id's with Snowflakes that's why we have our own BaseEntity class