@palett/dye
Advanced tools
Comparing version 0.5.7 to 0.5.8
@@ -60,3 +60,3 @@ 'use strict'; | ||
} = config; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(config, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(config, effects); | ||
head = utilAnsi.enclose(head + utilAnsi.SC + ansi(color)), tail = utilAnsi.enclose(tail + utilAnsi.SC + utilAnsi.CLR_FORE); | ||
@@ -104,3 +104,3 @@ return dye.bind({ | ||
}; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(conf, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(conf, effects); | ||
return Dye.bind(conf); | ||
@@ -117,3 +117,3 @@ } | ||
}; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(conf, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(conf, effects); | ||
return Dye.bind(conf); | ||
@@ -120,0 +120,0 @@ } |
@@ -56,3 +56,3 @@ import { RGB, HEX, HSL } from '@palett/enum-color-space'; | ||
} = config; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(config, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(config, effects); | ||
head = enclose(head + SC + ansi(color)), tail = enclose(tail + SC + CLR_FORE); | ||
@@ -100,3 +100,3 @@ return dye.bind({ | ||
}; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(conf, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(conf, effects); | ||
return Dye.bind(conf); | ||
@@ -113,3 +113,3 @@ } | ||
}; | ||
if (effects === null || effects === void 0 ? void 0 : effects.length) assignEffects.call(conf, effects); | ||
if (effects !== null && effects !== void 0 && effects.length) assignEffects.call(conf, effects); | ||
return Dye.bind(conf); | ||
@@ -116,0 +116,0 @@ } |
{ | ||
"name": "@palett/dye", | ||
"version": "0.5.7", | ||
"version": "0.5.8", | ||
"description": "A colorant to string", | ||
@@ -19,4 +19,4 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/enum-color-space": "^0.5.7", | ||
"@palett/util-ansi": "^0.5.7" | ||
"@palett/enum-color-space": "^0.5.8", | ||
"@palett/util-ansi": "^0.5.8" | ||
}, | ||
@@ -41,3 +41,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/dye#readme", | ||
"gitHead": "29bdfb088d1fd561d7f6e3592930e91975114603" | ||
"gitHead": "60fe5fa3c110ace9659a50ba52281a21a2b8aa8a" | ||
} |
9093
Updated@palett/util-ansi@^0.5.8