From 8ad313f7386d20af74a2cfff8dbe6cc67e27e468 Mon Sep 17 00:00:00 2001 From: biodiscus Date: Wed, 1 Jan 2025 20:28:22 +0100 Subject: [PATCH] refactor: replace unmaintained @colors/colors with ansis --- package-lock.json | 19 ++++++++++--------- package.json | 2 +- src/cli/reporter/stockTable.ts | 2 +- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7755b03f..528ab937 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.0.0-alpha.6", "license": "MIT", "dependencies": { - "@colors/colors": "1.6.0", + "ansis": "3.5.2", "axios": "1.7.9", "cli-table3": "0.6.5", "commander": "13.0.0", @@ -723,14 +723,6 @@ "integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==", "dev": true }, - "node_modules/@colors/colors": { - "version": "1.6.0", - "resolved": "https://registry.npmjs.org/@colors/colors/-/colors-1.6.0.tgz", - "integrity": "sha512-Ir+AOibqzrIsL6ajt3Rz3LskB7OiMVHqltZmspbW/TJuTVuyOMirVqAkjfY6JISiLHgyNqicAC8AyHHGzNd/dA==", - "engines": { - "node": ">=0.1.90" - } - }, "node_modules/@commitlint/cli": { "version": "19.6.1", "resolved": "https://registry.npmjs.org/@commitlint/cli/-/cli-19.6.1.tgz", @@ -3052,6 +3044,15 @@ "url": "https://github.com/chalk/ansi-styles?sponsor=1" } }, + "node_modules/ansis": { + "version": "3.5.2", + "resolved": "https://registry.npmjs.org/ansis/-/ansis-3.5.2.tgz", + "integrity": "sha512-5uGcUZRbORJeEppVdWfZOSybTMz+Ou+84HepgK081Yk5+pPMMzWf/XGxiAT6bfBqCghRB4MwBtYn0CHqINRVag==", + "license": "ISC", + "engines": { + "node": ">=16" + } + }, "node_modules/any-promise": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/any-promise/-/any-promise-1.3.0.tgz", diff --git a/package.json b/package.json index 4ff7e618..33cf5c05 100644 --- a/package.json +++ b/package.json @@ -66,7 +66,7 @@ "test": "NODE_ENV=test jest src/" }, "dependencies": { - "@colors/colors": "1.6.0", + "ansis": "3.5.2", "axios": "1.7.9", "cli-table3": "0.6.5", "commander": "13.0.0", diff --git a/src/cli/reporter/stockTable.ts b/src/cli/reporter/stockTable.ts index a66af11f..b6b82244 100644 --- a/src/cli/reporter/stockTable.ts +++ b/src/cli/reporter/stockTable.ts @@ -1,4 +1,4 @@ -import { green, yellow, white, red } from "@colors/colors"; +import { green, yellow, white, red } from "ansis"; import CliTable3 from "cli-table3"; import { ItemStockInfo, PRODUCT_AVAILABILITY } from "../../lib/ingka";