Skip to content

Commit

Permalink
Update colors to @colors/colors
Browse files Browse the repository at this point in the history
Because colors has an issue with an endless loop it will not work with
newer node versions. Marak/colors.js#345
To avoid this endless loop i updated from colors library to newer
@colors/colors library which has fixed this issue.

[fix] update to @colors/colors to fix endless loop in cli
  • Loading branch information
nischiemineo committed May 24, 2023
1 parent ffe4470 commit d143536
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 43 deletions.
95 changes: 55 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
"homepage": "https://github.com/uktrade/cypress-image-diff#readme",
"dependencies": {
"@babel/runtime": "^7.12.5",
"@colors/colors": "^1.5.0",
"arg": "^4.1.1",
"colors": "^1.4.0",
"cypress-recurse": "^1.13.1",
"fs-extra": "^9.0.1",
"handlebars": "^4.7.7",
Expand Down
2 changes: 1 addition & 1 deletion src/cli.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import arg from 'arg'
import colors from 'colors/safe'
import colors from '@colors/colors/safe'
import fs from 'fs-extra'

import path from './config'
Expand Down
2 changes: 1 addition & 1 deletion src/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import colors from 'colors/safe'
import colors from '@colors/colors/safe'
import { copySync, readdirSync } from 'fs-extra'

import { cli } from './cli'
Expand Down

0 comments on commit d143536

Please sign in to comment.