@palett/util-ansi
Advanced tools
Comparing version 0.8.14 to 0.8.15
@@ -101,3 +101,3 @@ 'use strict'; | ||
const concatSgr = (tx, el) => tx.length ? el.length ? tx + ';' + el : tx : el; | ||
const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
@@ -104,0 +104,0 @@ const hexToForeSgra = hex => { |
@@ -97,3 +97,3 @@ import { hexToInt, hslToRgb } from '@palett/convert'; | ||
const concatSgr = (tx, el) => tx.length ? el.length ? tx + ';' + el : tx : el; | ||
const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
@@ -100,0 +100,0 @@ const hexToForeSgra = hex => { |
{ | ||
"name": "@palett/util-ansi", | ||
"version": "0.8.14", | ||
"version": "0.8.15", | ||
"description": "A color converter", | ||
@@ -19,3 +19,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/convert": "^0.8.14" | ||
"@palett/convert": "^0.8.15" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
"homepage": "https://github.com/hoyeungw/palett/util-ansi#readme", | ||
"gitHead": "2caee8682c727f7206ef9716d3e9c3cc75b33dec" | ||
"gitHead": "d262ae3420015dc9904fb77ce558ed9fd6d1a4c2" | ||
} |
8385
Updated@palett/convert@^0.8.15