replace chalk with nanocolors

This commit is contained in:
uurgothat 2021-10-04 22:39:50 +03:00
parent 4ea441ca1d
commit 1882beef0c
10 changed files with 7 additions and 6 deletions

BIN
bundle/package-lock.json generated

Binary file not shown.

View File

@ -54,9 +54,9 @@
"@fosscord/gateway": "file:../gateway", "@fosscord/gateway": "file:../gateway",
"@fosscord/util": "file:../util", "@fosscord/util": "file:../util",
"async-exit-hook": "^2.0.1", "async-exit-hook": "^2.0.1",
"chalk": "^4.1.2",
"express": "^4.17.1", "express": "^4.17.1",
"missing-native-js-functions": "^1.2.15", "missing-native-js-functions": "^1.2.15",
"nanocolors": "^0.2.12",
"node-os-utils": "^1.3.5", "node-os-utils": "^1.3.5",
"tsconfig-paths": "^3.11.0" "tsconfig-paths": "^3.11.0"
} }

View File

@ -6,7 +6,7 @@ import { FosscordServer as APIServer } from "@fosscord/api";
import { Server as GatewayServer } from "@fosscord/gateway"; import { Server as GatewayServer } from "@fosscord/gateway";
import { CDNServer } from "@fosscord/cdn/"; import { CDNServer } from "@fosscord/cdn/";
import express from "express"; import express from "express";
import { red, green, bold } from "chalk"; import { red, green, bold } from "nanocolors";
import { Config, initDatabase } from "@fosscord/util"; import { Config, initDatabase } from "@fosscord/util";
const app = express(); const app = express();

View File

@ -1,7 +1,7 @@
// process.env.MONGOMS_DEBUG = "true"; // process.env.MONGOMS_DEBUG = "true";
import cluster from "cluster"; import cluster from "cluster";
import os from "os"; import os from "os";
import { red, bold, yellow, cyan } from "chalk"; import { red, bold, yellow, cyan } from "nanocolors";
import { initStats } from "./stats"; import { initStats } from "./stats";
import { execSync } from "child_process"; import { execSync } from "child_process";

BIN
cdn/package-lock.json generated

Binary file not shown.

View File

@ -56,6 +56,7 @@
"lambert-server": "^1.2.8", "lambert-server": "^1.2.8",
"missing-native-js-functions": "^1.2.15", "missing-native-js-functions": "^1.2.15",
"multer": "^1.4.2", "multer": "^1.4.2",
"nanocolors": "^0.2.12",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"supertest": "^6.1.6", "supertest": "^6.1.6",
"typescript": "^4.1.2", "typescript": "^4.1.2",

View File

@ -1,7 +1,7 @@
import { FileStorage } from "./FileStorage"; import { FileStorage } from "./FileStorage";
import path from "path"; import path from "path";
import fse from "fs-extra"; import fse from "fs-extra";
import { bgCyan, black } from "chalk"; import { bgCyan, black } from "nanocolors";
process.cwd(); process.cwd();
export interface Storage { export interface Storage {

BIN
util/package-lock.json generated

Binary file not shown.

View File

@ -39,7 +39,6 @@
"dependencies": { "dependencies": {
"ajv": "^8.6.2", "ajv": "^8.6.2",
"amqplib": "^0.8.0", "amqplib": "^0.8.0",
"chalk": "^4.1.2",
"class-validator": "^0.13.1", "class-validator": "^0.13.1",
"dot-prop": "^6.0.1", "dot-prop": "^6.0.1",
"env-paths": "^2.2.1", "env-paths": "^2.2.1",
@ -47,6 +46,7 @@
"lambert-server": "^1.2.10", "lambert-server": "^1.2.10",
"missing-native-js-functions": "^1.2.15", "missing-native-js-functions": "^1.2.15",
"multer": "^1.4.3", "multer": "^1.4.3",
"nanocolors": "^0.2.12",
"node-fetch": "^2.6.1", "node-fetch": "^2.6.1",
"patch-package": "^6.4.7", "patch-package": "^6.4.7",
"pg": "^8.7.1", "pg": "^8.7.1",

View File

@ -2,7 +2,7 @@ import path from "path";
import "reflect-metadata"; import "reflect-metadata";
import { Connection, createConnection, ValueTransformer } from "typeorm"; import { Connection, createConnection, ValueTransformer } from "typeorm";
import * as Models from "../entities"; import * as Models from "../entities";
import { yellow, green} from "chalk"; import { yellow, green} from "nanocolors";
// UUID extension option is only supported with postgres // 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 // We want to generate all id's with Snowflakes that's why we have our own BaseEntity class