Skip to content

Commit

Permalink
Update to @colors/colors (#144)
Browse files Browse the repository at this point in the history
* Update to @colors/colors

* Fix references to colors

* fix lock file
  • Loading branch information
DABH authored Feb 12, 2022
1 parent 9371de2 commit 5ee5fec
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 21 deletions.
4 changes: 2 additions & 2 deletions colorize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const colors = require('colors/safe');
const colors = require('@colors/colors/safe');
const { LEVEL, MESSAGE } = require('triple-beam');

//
Expand Down Expand Up @@ -58,7 +58,7 @@ class Colorizer {

/*
* function colorize (lookup, level, message)
* Performs multi-step colorization using colors/safe
* Performs multi-step colorization using @colors/colors/safe
*/
colorize(lookup, level, message) {
if (typeof message === 'undefined') {
Expand Down
28 changes: 14 additions & 14 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 @@ -28,7 +28,7 @@
},
"homepage": "https://github.com/winstonjs/logform#readme",
"dependencies": {
"colors": "1.4.0",
"@colors/colors": "1.5.0",
"fecha": "^4.2.0",
"ms": "^2.1.1",
"safe-stable-stringify": "^2.3.1",
Expand Down
2 changes: 1 addition & 1 deletion test/cli.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const assume = require('assume');
const colors = require('colors/safe');
const colors = require('@colors/colors/safe');
const cli = require('../cli');
const {
assumeFormatted,
Expand Down
2 changes: 1 addition & 1 deletion test/colorize.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const assume = require('assume');
const colors = require('colors/safe');
const colors = require('@colors/colors/safe');
const { configs, LEVEL, MESSAGE } = require('triple-beam');
const colorize = require('../colorize');
const Colorizer = colorize.Colorizer;
Expand Down
2 changes: 1 addition & 1 deletion test/uncolorize.test.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
'use strict';

const assume = require('assume');
const colors = require('colors/safe');
const colors = require('@colors/colors/safe');
const colorize = require('../colorize');
const combine = require('../combine');
const format = require('../format');
Expand Down
2 changes: 1 addition & 1 deletion uncolorize.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use strict';

const colors = require('colors/safe');
const colors = require('@colors/colors/safe');
const format = require('./format');
const { MESSAGE } = require('triple-beam');

Expand Down

0 comments on commit 5ee5fec

Please sign in to comment.