From 409eee875e16c9716c4d5ecb080e633881ffa206 Mon Sep 17 00:00:00 2001 From: Cecilia Sanare Date: Thu, 22 Feb 2024 20:34:28 -0600 Subject: [PATCH] feat: bun support BREAKING CHANGE: updates chalk by two major versions and will likely cause problems for NodeJS users --- bun.lockb | Bin 321878 -> 321822 bytes package.json | 2 +- src/logger.ts | 12 ++++++------ 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/bun.lockb b/bun.lockb index 76f8a942108f40f6fe27ccf49fcd7b37cf53facd..75c9934a2ad8e702f842ca3ae8522c0b689aa8e4 100755 GIT binary patch delta 26316 zcmeHwd3+7m|NhLJL~;>Cgdmc}nuJ7F2_g%ssGX>-B}j;dAgDc;uC!H5IaO6lOVN!+ zU9?)NtD;~T{5B0jX5SMLL^f%uounXh0>>C{Pv zVH`!gKH|>=8Ad~JacSrNz=+^6-*shhV-pk4o09hgu=2h1tlnaOiA%{7M%c*Eu0KyhTUNJatGHD$I>G?NTglqjoX@da#`VH^(g7Fbl4 zP&jki)Phm_IN-|rium?Khs?nwDB@~qujQa`c=sI^as><|D z5q7+a>Tspm^UCY?@49gfMoCj-uO478RM}=w#eP+4T3-fMqy+Xco1Q~%cG|>(nG=iA zyvqCX1e7+D2oTgOhHTv9l*aB3;y@rI$?cbgSGgQCpp*FlJdL7K9s2G6i!m0cMe zWd$g^x+~E-99Gf6Rn6*r+VUP7W6>a%I$XFnxEA79?xAU=-p0OC${*s(i@-ef(mDmH}9H&Z^5kqPtCF$L2Kec627eZ@%v=Lma1 zSa#jN$`u>JmY7xOcIWVxRmro%cUqr>SESVMV^wU9=x*9eBO)rkZ5UzJx%R-AF^5}y zKh^$Z{GN~@A0Mm;ZoE0%478^tXIKXeJ3b}bbrGH089k-!?GSsJ_STeaYhr+13EC21 z$ERjn9|zbIK+%ErR#1MRT?twpXve2zTV^$T0%%M%duv*@Yc0+m*>Gms+fy^FE}{2T&E>w*vTmwR(F?O*)H2!>9XT9 zvR$V!ro5KPvoeEmX6bgRoLS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>e(U{7nCSdtgNx5lQRvmb553lk>*5dth*@v;u>%3 z8A{ihsa($B>iTPMbjlf`8)lY9=i>DFwca*xR6Jqpus`x1e5-q!t>?~3&KGsJCow}j zhUd*E)q0;x^j{oRy=yOKAJ)VR8`XaEV-JqzLln=dPH)D#+7hz=8I|ITqI+*qB^D00 z8Czk)dES(*IIjHH^F00HRt*0ihg?s?Z7SNd?g{gB+>YSf`0jmHJuu;Q~P=B$$av({g@)&&SKK+$4+ERi04rcs${fP2eAEN$RiJ`H~;I& zO^)^F^IE<31@GE+X82iTe3h~-o|r>ipWfqYq|SKphWVy2o~K__Z@7F#A2{ZX`Sh_r zcGRA7$5pBWM&Pq7<8oMN`$MenWl)ZI7;S1gI6gCi^WSv52oYZzZ z4fY-Pcb&#Y{-^#G@_c6g8TiOq&!5eap6EAu#K1Zp_?G(0lq;G@J?w4F6HE)7GcPpD z8dN#Kom$n?{coyqfVDQjGwVI|LU6eQ#W+l2N&7@E|H+EbJ&RSmE-Y3F6?xkMx3~%y zrnNk6&JMfgs8%h@^L?=jGu;zD@fLhZyFXFqBb-yF_!;Bx=D)&-n?7R>{>g<-zM?kk t+plAi6ql;?o_~F!4ujP@&U0+~r6@9M?-Fok=fEu0)S5)V({s)zP!6N_w diff --git a/package.json b/package.json index e7747c9..3530bf5 100644 --- a/package.json +++ b/package.json @@ -18,7 +18,7 @@ "build": "microbundle" }, "dependencies": { - "chalk": "^3" + "chalk": "^5" }, "devDependencies": { "@jest/types": "^29.6.1", diff --git a/src/logger.ts b/src/logger.ts index 6f8eeb8..b0bd550 100644 --- a/src/logger.ts +++ b/src/logger.ts @@ -1,4 +1,4 @@ -import { Chalk, red, yellow, cyan, magenta } from 'chalk'; +import chalk, { ChalkInstance } from 'chalk'; import { sanitizeMessages } from './utils/messages'; export enum LogLevel { @@ -14,12 +14,12 @@ export const MAX_LENGTH = }, 0) + 3; export const LEVEL_CHALK: { - [key in LogLevel]: Chalk; + [key in LogLevel]: ChalkInstance; } = { - [LogLevel.ERROR]: red, - [LogLevel.WARN]: yellow, - [LogLevel.INFO]: cyan, - [LogLevel.SILLY]: magenta, + [LogLevel.ERROR]: chalk.red, + [LogLevel.WARN]: chalk.yellow, + [LogLevel.INFO]: chalk.cyan, + [LogLevel.SILLY]: chalk.magenta, }; /**