colorful-logging
Advanced tools
Comparing version 1.1.0 to 1.1.1
10
error.js
@@ -1,5 +0,7 @@ | ||
const chalk = require('chalk'); | ||
const processLogLine = require('./processLogLine'); | ||
import chalk from 'chalk'; | ||
import { | ||
processLogLine, | ||
} from './processLogLine'; | ||
module.exports = function error(value, colorFormatter, bgColorFormatter) { | ||
export function error(value, colorFormatter, bgColorFormatter) { | ||
console.error(processLogLine( | ||
@@ -10,2 +12,2 @@ value, | ||
)); | ||
}; | ||
} |
@@ -0,0 +0,0 @@ #!/usr/bin/env node |
@@ -1,1 +0,5 @@ | ||
module.exports = () => typeof process !== 'undefined' && process.versions && process.versions.node; | ||
export function isNode() { | ||
return typeof process !== 'undefined' && | ||
process.versions && | ||
process.versions.node; | ||
} |
@@ -1,5 +0,6 @@ | ||
const chalk = require('chalk'); | ||
const processLogLine = require('./processLogLine'); | ||
import { | ||
processLogLine, | ||
} from './processLogLine'; | ||
module.exports = function log(value, colorFormatter, bgColorFormatter) { | ||
export function log(value, colorFormatter, bgColorFormatter) { | ||
console.log(processLogLine( | ||
@@ -10,2 +11,2 @@ value, | ||
)); | ||
}; | ||
} |
15
main.js
@@ -1,11 +0,12 @@ | ||
const error = require('./error'); | ||
const log = require('./log'); | ||
const processLogLine = require('./processLogLine'); | ||
const warn = require('./warn'); | ||
module.exports = { | ||
export { | ||
error, | ||
} from './error'; | ||
export { | ||
log, | ||
} from './log'; | ||
export { | ||
processLogLine, | ||
} from './processLogLine'; | ||
export { | ||
warn, | ||
}; | ||
} from './warn'; |
{ | ||
"name": "colorful-logging", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "A simple logging module with pleasing default colors and optional color arguments.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,2 +0,4 @@ | ||
const isNode = require('./isNode'); | ||
import { | ||
isNode, | ||
} from './isNode'; | ||
@@ -3,0 +5,0 @@ module.exports = function processLogLine(value, colorFormatter, bgColorFormatter) { |
14
warn.js
@@ -1,6 +0,10 @@ | ||
const chalk = require('chalk'); | ||
const isNode = require('./isNode'); | ||
const processLogLine = require('./processLogLine'); | ||
import chalk from 'chalk'; | ||
import { | ||
isNode, | ||
} from './isNode'; | ||
import { | ||
processLogLine, | ||
} from './processLogLine'; | ||
module.exports = function warn(value, colorFormatter, bgColorFormatter) { | ||
export function warn(value, colorFormatter, bgColorFormatter) { | ||
const logLine = processLogLine( | ||
@@ -13,2 +17,2 @@ value, | ||
console.warn(logLine); | ||
}; | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
172666
15
4915
1