Skip to content

Commit

Permalink
feat: bun support
Browse files Browse the repository at this point in the history
BREAKING CHANGE: updates chalk by two major versions and will likely cause problems for NodeJS users
  • Loading branch information
cecilia-sanare committed Feb 23, 2024
1 parent 8ae3e35 commit 409eee8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"build": "microbundle"
},
"dependencies": {
"chalk": "^3"
"chalk": "^5"
},
"devDependencies": {
"@jest/types": "^29.6.1",
Expand Down
12 changes: 6 additions & 6 deletions src/logger.ts
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -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,
};

/**
Expand Down

0 comments on commit 409eee8

Please sign in to comment.