@palett/presets
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -207,2 +207,3 @@ 'use strict'; | ||
function Dye(color) { | ||
if (!color) return oneself.oneself; | ||
const config = this !== null && this !== void 0 ? this : {}; | ||
@@ -215,3 +216,3 @@ let { | ||
} = 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); | ||
@@ -218,0 +219,0 @@ return dye.bind({ |
@@ -203,2 +203,3 @@ import { Palett } from '@palett/cards'; | ||
function Dye(color) { | ||
if (!color) return oneself; | ||
const config = this !== null && this !== void 0 ? this : {}; | ||
@@ -211,3 +212,3 @@ let { | ||
} = 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); | ||
@@ -214,0 +215,0 @@ return dye.bind({ |
{ | ||
"name": "@palett/presets", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "A color converter", | ||
@@ -20,5 +20,5 @@ "main": "dist/index.cjs.js", | ||
"@ject/oneself": "^0.0.6", | ||
"@palett/cards": "^0.5.8", | ||
"@palett/convert": "^0.5.8", | ||
"@palett/toner-hsl": "^0.5.8" | ||
"@palett/cards": "^0.5.9", | ||
"@palett/convert": "^0.5.9", | ||
"@palett/toner-hsl": "^0.5.9" | ||
}, | ||
@@ -46,3 +46,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/presets#readme", | ||
"gitHead": "60fe5fa3c110ace9659a50ba52281a21a2b8aa8a" | ||
"gitHead": "ae7212ca79fe922a0502fd4da404005e95d343b8" | ||
} |
15691
525
Updated@palett/cards@^0.5.9
Updated@palett/convert@^0.5.9
Updated@palett/toner-hsl@^0.5.9