@palett/dye
Advanced tools
Comparing version 0.8.18 to 0.9.0
@@ -29,3 +29,3 @@ 'use strict'; | ||
const local = (this == null ? void 0 : (_this$slice = this.slice) == null ? void 0 : _this$slice.call(this)) ?? dyeFactory.DyeFab.shallow(); | ||
const local = (this === null || this === void 0 ? void 0 : (_this$slice = this.slice) === null || _this$slice === void 0 ? void 0 : _this$slice.call(this)) ?? dyeFactory.DyeFab.shallow(); | ||
if (color) (local.encolor ?? dyeFactory.pushRgb).call(local, color); | ||
@@ -45,3 +45,3 @@ return dyeFactory.DyeFab.prototype.render.bind(local); | ||
const local = (this == null ? void 0 : (_this$slice2 = this.slice) == null ? void 0 : _this$slice2.call(this)) ?? dyeFactory.DyeFab.shallow(); | ||
const local = (this === null || this === void 0 ? void 0 : (_this$slice2 = this.slice) === null || _this$slice2 === void 0 ? void 0 : _this$slice2.call(this)) ?? dyeFactory.DyeFab.shallow(); | ||
if (color) (encolor ?? local.encolor).call(local, color); | ||
@@ -69,49 +69,33 @@ return dyeFactory.DyeFab.prototype.render.bind(local); | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.DyeFab; | ||
} | ||
get: function () { return dyeFactory.DyeFab; } | ||
}); | ||
Object.defineProperty(exports, 'DyeFactory', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.DyeFactory; | ||
} | ||
get: function () { return dyeFactory.DyeFactory; } | ||
}); | ||
Object.defineProperty(exports, 'assignEffects', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.enstyle; | ||
} | ||
get: function () { return dyeFactory.enstyle; } | ||
}); | ||
Object.defineProperty(exports, 'enstyle', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.enstyle; | ||
} | ||
get: function () { return dyeFactory.enstyle; } | ||
}); | ||
Object.defineProperty(exports, 'pushHex', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.pushHex; | ||
} | ||
get: function () { return dyeFactory.pushHex; } | ||
}); | ||
Object.defineProperty(exports, 'pushHsl', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.pushHsl; | ||
} | ||
get: function () { return dyeFactory.pushHsl; } | ||
}); | ||
Object.defineProperty(exports, 'pushInt', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.pushInt; | ||
} | ||
get: function () { return dyeFactory.pushInt; } | ||
}); | ||
Object.defineProperty(exports, 'pushRgb', { | ||
enumerable: true, | ||
get: function () { | ||
return dyeFactory.pushRgb; | ||
} | ||
get: function () { return dyeFactory.pushRgb; } | ||
}); | ||
exports.Dye = Dye; | ||
exports.dye = dye; |
@@ -26,3 +26,3 @@ import { DyeFab, pushRgb, pushHex, pushHsl, pushInt } from '@palett/dye-factory'; | ||
const local = (this == null ? void 0 : (_this$slice = this.slice) == null ? void 0 : _this$slice.call(this)) ?? DyeFab.shallow(); | ||
const local = (this === null || this === void 0 ? void 0 : (_this$slice = this.slice) === null || _this$slice === void 0 ? void 0 : _this$slice.call(this)) ?? DyeFab.shallow(); | ||
if (color) (local.encolor ?? pushRgb).call(local, color); | ||
@@ -42,3 +42,3 @@ return DyeFab.prototype.render.bind(local); | ||
const local = (this == null ? void 0 : (_this$slice2 = this.slice) == null ? void 0 : _this$slice2.call(this)) ?? DyeFab.shallow(); | ||
const local = (this === null || this === void 0 ? void 0 : (_this$slice2 = this.slice) === null || _this$slice2 === void 0 ? void 0 : _this$slice2.call(this)) ?? DyeFab.shallow(); | ||
if (color) (encolor ?? local.encolor).call(local, color); | ||
@@ -45,0 +45,0 @@ return DyeFab.prototype.render.bind(local); |
{ | ||
"name": "@palett/dye", | ||
"version": "0.8.18", | ||
"version": "0.9.0", | ||
"description": "A colorant to string", | ||
"main": "dist/index.cjs.js", | ||
"module": "dist/index.esm.js", | ||
"main": "dist/index.cjs", | ||
"exports": { | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.cjs" | ||
}, | ||
"files": [ | ||
@@ -20,7 +23,7 @@ "dist" | ||
"@ject/oneself": "^0.0.16", | ||
"@palett/dye-factory": "^0.8.18", | ||
"@palett/enum-ansi-codes": "^0.8.18", | ||
"@palett/enum-color-space": "^0.8.18", | ||
"@palett/enum-font-effects": "^0.8.18", | ||
"@palett/util-ansi": "^0.8.18" | ||
"@palett/dye-factory": "^0.9.0", | ||
"@palett/enum-ansi-codes": "^0.9.0", | ||
"@palett/enum-color-space": "^0.9.0", | ||
"@palett/enum-font-effects": "^0.9.0", | ||
"@palett/util-ansi": "^0.9.0" | ||
}, | ||
@@ -45,3 +48,3 @@ "repository": { | ||
"homepage": "https://github.com/hoyeungw/palett/dye#readme", | ||
"gitHead": "adf5812e323bc29bdaea384c59716e8c7ba39330" | ||
"gitHead": "edabce66a91b4f0b6ded1274071a2711d0857475" | ||
} |
11988
7
264
+ Added@aryth/math@0.6.9(transitive)
+ Added@ject/oneself@0.0.17(transitive)
+ Added@palett/convert@0.9.19(transitive)
+ Added@palett/dye@0.9.19(transitive)
+ Added@palett/dye-factory@0.9.15(transitive)
+ Added@palett/enum-ansi-codes@0.9.19(transitive)
+ Added@palett/enum-color-space@0.9.19(transitive)
+ Added@palett/enum-font-effects@0.9.19(transitive)
+ Added@palett/util-ansi@0.9.19(transitive)
- Removed@aryth/math@0.3.26(transitive)
- Removed@palett/convert@0.8.18(transitive)
- Removed@palett/dye-factory@0.8.18(transitive)
- Removed@palett/enum-ansi-codes@0.8.18(transitive)
- Removed@palett/enum-color-space@0.8.18(transitive)
- Removed@palett/enum-font-effects@0.8.18(transitive)
- Removed@palett/util-ansi@0.8.18(transitive)
Updated@palett/dye-factory@^0.9.0
Updated@palett/util-ansi@^0.9.0