log-symbols
Advanced tools
Comparing version 6.0.0 to 7.0.0
@@ -1,8 +0,1 @@ | ||
const logSymbols = { | ||
info: 'ℹ️', | ||
success: '✅', | ||
warning: '⚠️', | ||
error: '❌️', | ||
}; | ||
export default logSymbols; | ||
export * as default from './browser-symbols.js'; |
21
index.js
@@ -1,20 +0,1 @@ | ||
import chalk from 'chalk'; | ||
import isUnicodeSupported from 'is-unicode-supported'; | ||
const main = { | ||
info: chalk.blue('ℹ'), | ||
success: chalk.green('✔'), | ||
warning: chalk.yellow('⚠'), | ||
error: chalk.red('✖'), | ||
}; | ||
const fallback = { | ||
info: chalk.blue('i'), | ||
success: chalk.green('√'), | ||
warning: chalk.yellow('‼'), | ||
error: chalk.red('×'), | ||
}; | ||
const logSymbols = isUnicodeSupported() ? main : fallback; | ||
export default logSymbols; | ||
export * as default from './symbols.js'; |
{ | ||
"name": "log-symbols", | ||
"version": "6.0.0", | ||
"version": "7.0.0", | ||
"description": "Colored symbols for various log levels. Example: `✔︎ Success`", | ||
@@ -19,2 +19,3 @@ "license": "MIT", | ||
}, | ||
"sideEffects": false, | ||
"engines": { | ||
@@ -29,3 +30,5 @@ "node": ">=18" | ||
"index.d.ts", | ||
"browser.js" | ||
"browser.js", | ||
"symbols.js", | ||
"browser-symbols.js" | ||
], | ||
@@ -50,11 +53,11 @@ "keywords": [ | ||
"dependencies": { | ||
"chalk": "^5.3.0", | ||
"is-unicode-supported": "^1.3.0" | ||
"is-unicode-supported": "^2.0.0", | ||
"yoctocolors": "^2.1.1" | ||
}, | ||
"devDependencies": { | ||
"ava": "^5.3.1", | ||
"ava": "^6.1.3", | ||
"strip-ansi": "^7.1.0", | ||
"tsd": "^0.29.0", | ||
"xo": "^0.56.0" | ||
"tsd": "^0.31.1", | ||
"xo": "^0.59.3" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
4399
8
36
+ Addedyoctocolors@^2.1.1
+ Addedis-unicode-supported@2.1.0(transitive)
+ Addedyoctocolors@2.1.1(transitive)
- Removedchalk@^5.3.0
- Removedchalk@5.3.0(transitive)
- Removedis-unicode-supported@1.3.0(transitive)
Updatedis-unicode-supported@^2.0.0