@palett/util-ansi
Advanced tools
Comparing version 0.8.18 to 0.9.0
@@ -101,6 +101,6 @@ 'use strict'; | ||
const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
const concatSgr = (tx, el) => (tx !== null && tx !== void 0 && tx.length ? el !== null && el !== void 0 && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
const hexToForeSgra = hex => { | ||
if (!(hex != null && hex.length)) return ''; | ||
if (!(hex !== null && hex !== void 0 && hex.length)) return ''; | ||
const n = convert.hexToInt(hex); | ||
@@ -113,3 +113,3 @@ const r = n >> 16 & 0xff, | ||
const hexToBackSgra = hex => { | ||
if (!(hex != null && hex.length)) return ''; | ||
if (!(hex !== null && hex !== void 0 && hex.length)) return ''; | ||
const n = convert.hexToInt(hex); | ||
@@ -116,0 +116,0 @@ const r = n >> 16 & 0xff, |
@@ -97,6 +97,6 @@ import { hexToInt, hslToRgb } from '@palett/convert'; | ||
const concatSgr = (tx, el) => (tx != null && tx.length ? el != null && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
const concatSgr = (tx, el) => (tx !== null && tx !== void 0 && tx.length ? el !== null && el !== void 0 && el.length ? tx + ';' + el : tx : el) ?? ''; | ||
const hexToForeSgra = hex => { | ||
if (!(hex != null && hex.length)) return ''; | ||
if (!(hex !== null && hex !== void 0 && hex.length)) return ''; | ||
const n = hexToInt(hex); | ||
@@ -109,3 +109,3 @@ const r = n >> 16 & 0xff, | ||
const hexToBackSgra = hex => { | ||
if (!(hex != null && hex.length)) return ''; | ||
if (!(hex !== null && hex !== void 0 && hex.length)) return ''; | ||
const n = hexToInt(hex); | ||
@@ -112,0 +112,0 @@ const r = n >> 16 & 0xff, |
{ | ||
"name": "@palett/util-ansi", | ||
"version": "0.8.18", | ||
"version": "0.9.0", | ||
"description": "A color converter", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"main": "dist/index.cjs", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"files": [ | ||
@@ -19,3 +22,3 @@ "dist" | ||
"dependencies": { | ||
"@palett/convert": "^0.8.18" | ||
"@palett/convert": "^0.9.0" | ||
}, | ||
@@ -43,3 +46,3 @@ "devDependencies": { | ||
"homepage": "https://github.com/hoyeungw/palett/util-ansi#readme", | ||
"gitHead": "adf5812e323bc29bdaea384c59716e8c7ba39330" | ||
"gitHead": "edabce66a91b4f0b6ded1274071a2711d0857475" | ||
} |
14324
7
452
+ Added@aryth/math@0.6.9(transitive)
+ Added@ject/oneself@0.0.17(transitive)
+ Added@palett/convert@0.9.19(transitive)
- Removed@aryth/math@0.3.26(transitive)
- Removed@ject/oneself@0.0.16(transitive)
- Removed@palett/convert@0.8.18(transitive)
Updated@palett/convert@^0.9.0