Replace colors.js with chalk

This commit is contained in:
Pavel Djundik 2018-03-02 20:28:54 +02:00
parent c485ec8c42
commit fee81e78e1
22 changed files with 30 additions and 30 deletions

View File

@ -40,8 +40,8 @@
},
"dependencies": {
"bcryptjs": "2.4.3",
"chalk": "2.3.1",
"cheerio": "0.22.0",
"colors": "1.1.2",
"commander": "2.14.1",
"express": "4.16.2",
"fs-extra": "5.0.0",

View File

@ -46,7 +46,7 @@ node scripts/changelog <version>
"use strict";
const _ = require("lodash");
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const GraphQLClient = require("graphql-request").GraphQLClient;
const moment = require("moment");

View File

@ -1,7 +1,7 @@
"use strict";
const _ = require("lodash");
const colors = require("colors/safe");
const colors = require("chalk");
const pkg = require("../package.json");
const Chan = require("./models/chan");
const crypto = require("crypto");

View File

@ -1,7 +1,7 @@
"use strict";
const _ = require("lodash");
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const path = require("path");
const Client = require("./client");

View File

@ -2,7 +2,7 @@
const program = require("commander");
const child = require("child_process");
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const Helper = require("../helper");
const Utils = require("./utils");

View File

@ -6,7 +6,7 @@ const _ = require("lodash");
const fs = require("fs");
const path = require("path");
const program = require("commander");
const colors = require("colors/safe");
const colors = require("chalk");
const Helper = require("../helper");
const Utils = require("./utils");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const program = require("commander");
const Helper = require("../helper");
const Utils = require("./utils");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const fsextra = require("fs-extra");
const path = require("path");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const path = require("path");
const program = require("commander");
const Helper = require("../helper");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const program = require("commander");
const fs = require("fs");
const Helper = require("../../helper");

View File

@ -2,7 +2,7 @@
const program = require("commander");
const child = require("child_process");
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const Helper = require("../../helper");
const Utils = require("../utils");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const program = require("commander");
const fs = require("fs");
const Helper = require("../../helper");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const program = require("commander");
const fs = require("fs");
const Helper = require("../../helper");

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const program = require("commander");
const fs = require("fs");
const Helper = require("../../helper");

View File

@ -1,7 +1,7 @@
"use strict";
const _ = require("lodash");
const colors = require("colors/safe");
const colors = require("chalk");
const fs = require("fs");
const Helper = require("../helper");
const path = require("path");

View File

@ -7,7 +7,7 @@ const os = require("os");
const fs = require("fs");
const net = require("net");
const bcrypt = require("bcryptjs");
const colors = require("colors/safe");
const colors = require("chalk");
let homePath;
let configPath;

View File

@ -2,7 +2,7 @@
const fs = require("fs");
const net = require("net");
const colors = require("colors/safe");
const colors = require("chalk");
const Helper = require("./helper");
class Identification {

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const moment = require("moment");
const read = require("read");
const Helper = require("./helper");

View File

@ -1,7 +1,7 @@
"use strict";
const Helper = require("../../helper");
const colors = require("colors/safe");
const colors = require("chalk");
function localAuth(manager, client, user, password, callback) {
// If no user is found, or if the client has not provided a password,

View File

@ -1,6 +1,6 @@
"use strict";
const colors = require("colors/safe");
const colors = require("chalk");
const path = require("path");
const Helper = require("../../helper");
const themes = require("./themes");

View File

@ -10,7 +10,7 @@ const path = require("path");
const io = require("socket.io");
const dns = require("dns");
const Helper = require("./helper");
const colors = require("colors/safe");
const colors = require("chalk");
const net = require("net");
const Identification = require("./identification");
const changelog = require("./plugins/changelog");

View File

@ -1236,6 +1236,14 @@ chai@4.1.2:
pathval "^1.0.0"
type-detect "^4.0.0"
chalk@2.3.1, chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
dependencies:
ansi-styles "^3.2.0"
escape-string-regexp "^1.0.5"
supports-color "^5.2.0"
chalk@^1.1.3:
version "1.1.3"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98"
@ -1246,14 +1254,6 @@ chalk@^1.1.3:
strip-ansi "^3.0.0"
supports-color "^2.0.0"
chalk@^2.0.0, chalk@^2.0.1, chalk@^2.1.0, chalk@^2.3.1:
version "2.3.1"
resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.3.1.tgz#523fe2678aec7b04e8041909292fe8b17059b796"
dependencies:
ansi-styles "^3.2.0"
escape-string-regexp "^1.0.5"
supports-color "^5.2.0"
character-entities-html4@^1.0.0:
version "1.1.1"
resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.1.tgz#359a2a4a0f7e29d3dc2ac99bdbe21ee39438ea50"
@ -1464,7 +1464,7 @@ colormin@^1.0.5:
css-color-names "0.0.4"
has "^1.0.1"
colors@1.1.2, colors@~1.1.2:
colors@~1.1.2:
version "1.1.2"
resolved "https://registry.yarnpkg.com/colors/-/colors-1.1.2.tgz#168a4701756b6a7f51a12ce0c97bfa28c084ed63"