diff --git a/js/package-lock.json b/js/package-lock.json index a779abb..361c2af 100644 --- a/js/package-lock.json +++ b/js/package-lock.json @@ -1,17 +1,17 @@ { "name": "@anduintransaction/rivendell", - "version": "0.3.2", + "version": "0.4.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@anduintransaction/rivendell", - "version": "0.3.2", + "version": "0.4.1", "license": "ISC", "dependencies": { "@kubernetes-models/apimachinery": "^1.2.1", "@kubernetes-models/base": "^4.0.3", - "chalk": "^5.3.0", + "chalk": "^4.1.2", "infisical-node": "^1.5.0", "yaml": "^2.3.4" }, @@ -594,16 +594,69 @@ } }, "node_modules/chalk": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-5.3.0.tgz", - "integrity": "sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==", + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, "engines": { - "node": "^12.17.0 || ^14.13 || >=16.0.0" + "node": ">=10" }, "funding": { "url": "https://github.com/chalk/chalk?sponsor=1" } }, + "node_modules/chalk/node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk/node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/chalk/node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==" + }, + "node_modules/chalk/node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, "node_modules/color": { "version": "3.2.1", "resolved": "https://registry.npmjs.org/color/-/color-3.2.1.tgz", diff --git a/js/package.json b/js/package.json index 388fa04..0feacf7 100644 --- a/js/package.json +++ b/js/package.json @@ -1,6 +1,6 @@ { "name": "@anduintransaction/rivendell", - "version": "0.4.1", + "version": "0.4.2", "repository": { "type": "git", "url": "git+https://github.com/anduintransaction/rivendell.git" @@ -29,7 +29,7 @@ "dependencies": { "@kubernetes-models/apimachinery": "^1.2.1", "@kubernetes-models/base": "^4.0.3", - "chalk": "^5.3.0", + "chalk": "^4.1.2", "infisical-node": "^1.5.0", "yaml": "^2.3.4" } diff --git a/js/src/planner.ts b/js/src/planner.ts index a10b885..5761374 100644 --- a/js/src/planner.ts +++ b/js/src/planner.ts @@ -1,12 +1,11 @@ import * as yaml from "yaml"; +import chalk from "chalk"; import { DeployStep, Plan, WaitStep } from "./common"; import { Context } from "./context"; import { Module } from "./module"; import { ModuleGraph, Walker } from "./graph"; import { prefixMultiline } from "./utils"; -const chalk = require("chalk"); - export class Planner { ctx: Context; diff --git a/js/src/runner.ts b/js/src/runner.ts index e8343ac..51a4325 100644 --- a/js/src/runner.ts +++ b/js/src/runner.ts @@ -1,9 +1,8 @@ import yaml from "yaml"; +import chalk from "chalk"; import { DeployStep, Plan, WaitStep } from "./common"; import { ChildProcess, execFileSync, spawn } from "child_process"; -const chalk = require("chalk"); - export interface WaitRunner { wait(step: WaitStep): Promise; }