From 9909e5a174cdbb79224b64ccbee8111ad1ee440e Mon Sep 17 00:00:00 2001 From: The Arcane Brony Date: Sat, 25 Dec 2021 11:09:48 +0000 Subject: Replace nanocolors with picocolors --- bundle/package.json | 2 +- bundle/src/Server.ts | 4 ++-- bundle/src/start.ts | 2 +- bundle/src/stats.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) (limited to 'bundle') diff --git a/bundle/package.json b/bundle/package.json index 97066bd8..2961e8a3 100644 --- a/bundle/package.json +++ b/bundle/package.json @@ -92,11 +92,11 @@ "missing-native-js-functions": "^1.2.18", "morgan": "^1.10.0", "multer": "^1.4.2", - "nanocolors": "^0.2.12", "node-fetch": "^2.6.1", "node-os-utils": "^1.3.5", "patch-package": "^6.4.7", "pg": "^8.7.1", + "picocolors": "^1.0.0", "proxy-agent": "^5.0.0", "reflect-metadata": "^0.1.13", "sqlite3": "^5.0.2", diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index d07a6ce0..0d5e3d1f 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -6,7 +6,7 @@ import * as Api from "@fosscord/api"; import * as Gateway from "@fosscord/gateway"; import { CDNServer } from "@fosscord/cdn"; import express from "express"; -import { green, bold } from "nanocolors"; +import { green, bold, yellow } from "picocolors"; import { Config, initDatabase } from "@fosscord/util"; import * as Sentry from "@sentry/node"; import * as Tracing from "@sentry/tracing"; @@ -61,7 +61,7 @@ async function main() { //Sentry if (Config.get().sentry.enabled) { console.log( - "[Bundle] You are using Sentry! This may slightly impact performance on large loads!" + `[Bundle] ${yellow("You are using Sentry! This may slightly impact performance on large loads!")}` ); Sentry.init({ dsn: Config.get().sentry.endpoint, diff --git a/bundle/src/start.ts b/bundle/src/start.ts index d2707f4d..7660b296 100644 --- a/bundle/src/start.ts +++ b/bundle/src/start.ts @@ -2,7 +2,7 @@ import "reflect-metadata"; import cluster, { Worker } from "cluster"; import os from "os"; -import { red, bold, yellow, cyan } from "nanocolors"; +import { red, bold, yellow, cyan } from "picocolors"; import { initStats } from "./stats"; import { config } from "dotenv"; config(); diff --git a/bundle/src/stats.ts b/bundle/src/stats.ts index 8d87f9d9..3c5163c3 100644 --- a/bundle/src/stats.ts +++ b/bundle/src/stats.ts @@ -1,6 +1,6 @@ import os from "os"; import osu from "node-os-utils"; -import { red } from "nanocolors"; +import { red } from "picocolors"; export function initStats() { console.log(`[Path] running in ${__dirname}`); -- cgit 1.4.1