@palett/dye
Advanced tools
Comparing version 0.5.8 to 0.5.9
@@ -5,2 +5,3 @@ 'use strict'; | ||
var oneself = require('@ject/oneself'); | ||
var enumColorSpace = require('@palett/enum-color-space'); | ||
@@ -54,2 +55,3 @@ var utilAnsi = require('@palett/util-ansi'); | ||
function Dye(color) { | ||
if (!color) return oneself.oneself; | ||
const config = this !== null && this !== void 0 ? this : {}; | ||
@@ -56,0 +58,0 @@ let { |
@@ -0,1 +1,2 @@ | ||
import { oneself } from '@ject/oneself'; | ||
import { RGB, HEX, HSL } from '@palett/enum-color-space'; | ||
@@ -49,2 +50,3 @@ import { enclose, SC, CLR_FORE, Effects, rgbToAnsi, hexToAnsi, hslToAnsi } from '@palett/util-ansi'; | ||
function Dye(color) { | ||
if (!color) return oneself; | ||
const config = this !== null && this !== void 0 ? this : {}; | ||
@@ -51,0 +53,0 @@ let { |
{ | ||
"name": "@palett/dye", | ||
"version": "0.5.8", | ||
"version": "0.5.9", | ||
"description": "A colorant to string", | ||
@@ -19,4 +19,5 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/enum-color-space": "^0.5.8", | ||
"@palett/util-ansi": "^0.5.8" | ||
"@ject/oneself": "^0.0.6", | ||
"@palett/enum-color-space": "^0.5.9", | ||
"@palett/util-ansi": "^0.5.9" | ||
}, | ||
@@ -41,3 +42,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/dye#readme", | ||
"gitHead": "60fe5fa3c110ace9659a50ba52281a21a2b8aa8a" | ||
"gitHead": "ae7212ca79fe922a0502fd4da404005e95d343b8" | ||
} |
9273
213
3
+ Added@ject/oneself@^0.0.6
+ Added@ject/oneself@0.0.6(transitive)
Updated@palett/util-ansi@^0.5.9