@palett/fluo-entries
Advanced tools
Comparing version 0.2.5 to 0.2.6
@@ -79,6 +79,7 @@ 'use strict'; | ||
const duobound = function (words, x = {}, y = {}) { | ||
const duobound = function (words, [x = {}, y = {}] = []) { | ||
const l = words === null || words === void 0 ? void 0 : words.length; | ||
let vecX = undefined, | ||
vecY = undefined; | ||
if (!l) return [vecX, vecY]; | ||
const { | ||
@@ -479,7 +480,6 @@ filter: filterX = isNumeric, | ||
* @param vec | ||
* @param {PalettProjectConfig} x | ||
* @param {PalettProjectConfig} y | ||
* @param {PalettProjectConfig[]} presets | ||
*/ | ||
const fluoVec = function (vec, x = {}, y = {}) { | ||
const fluoVec = function (vec, [x = {}, y = {}] = []) { | ||
var _prX, _prY; | ||
@@ -499,3 +499,3 @@ | ||
} = y; | ||
const [bvX, bvY] = values !== null && values !== void 0 ? values : duobound(vec, x, y); | ||
const [bvX, bvY] = values !== null && values !== void 0 ? values : duobound(vec, [x, y]); | ||
const [dyeX, dyeY] = [bvX && Projector(bvX, presetToLeap(prX)), bvY && Projector(bvY, presetToLeap(prY))]; | ||
@@ -558,3 +558,3 @@ const mapper = mutate ? vector.mutate : vector.mapper; | ||
const fluoEnt = function (entries, x = {}, y = {}) { | ||
const fluoEnt = function (entries, [x = {}, y = {}] = []) { | ||
const { | ||
@@ -568,7 +568,7 @@ colorant = false, | ||
mutate: true | ||
}, keys, x, y); | ||
}, keys, [x, y]); | ||
fluoVec.call({ | ||
colorant, | ||
mutate: true | ||
}, items, x, y); | ||
}, items, [x, y]); | ||
const rendered = entriesInit.wind(keys, items); | ||
@@ -575,0 +575,0 @@ return mutate ? entriesZipper.mutazip(entries, rendered, (a, b) => b, (a, b) => b) : rendered; |
@@ -75,6 +75,7 @@ import { fluoVector } from '@palett/fluo-vector'; | ||
const duobound = function (words, x = {}, y = {}) { | ||
const duobound = function (words, [x = {}, y = {}] = []) { | ||
const l = words === null || words === void 0 ? void 0 : words.length; | ||
let vecX = undefined, | ||
vecY = undefined; | ||
if (!l) return [vecX, vecY]; | ||
const { | ||
@@ -475,7 +476,6 @@ filter: filterX = isNumeric, | ||
* @param vec | ||
* @param {PalettProjectConfig} x | ||
* @param {PalettProjectConfig} y | ||
* @param {PalettProjectConfig[]} presets | ||
*/ | ||
const fluoVec = function (vec, x = {}, y = {}) { | ||
const fluoVec = function (vec, [x = {}, y = {}] = []) { | ||
var _prX, _prY; | ||
@@ -495,3 +495,3 @@ | ||
} = y; | ||
const [bvX, bvY] = values !== null && values !== void 0 ? values : duobound(vec, x, y); | ||
const [bvX, bvY] = values !== null && values !== void 0 ? values : duobound(vec, [x, y]); | ||
const [dyeX, dyeY] = [bvX && Projector(bvX, presetToLeap(prX)), bvY && Projector(bvY, presetToLeap(prY))]; | ||
@@ -554,3 +554,3 @@ const mapper$1 = mutate$1 ? mutate : mapper; | ||
const fluoEnt = function (entries, x = {}, y = {}) { | ||
const fluoEnt = function (entries, [x = {}, y = {}] = []) { | ||
const { | ||
@@ -564,7 +564,7 @@ colorant = false, | ||
mutate: true | ||
}, keys, x, y); | ||
}, keys, [x, y]); | ||
fluoVec.call({ | ||
colorant, | ||
mutate: true | ||
}, items, x, y); | ||
}, items, [x, y]); | ||
const rendered = wind(keys, items); | ||
@@ -571,0 +571,0 @@ return mutate ? mutazip$1(entries, rendered, (a, b) => b, (a, b) => b) : rendered; |
{ | ||
"name": "@palett/fluo-entries", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"description": "A colorant to string", | ||
@@ -18,4 +18,4 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@palett/fluo-vector": "^0.2.5", | ||
"@palett/presets": "^0.2.5", | ||
"@palett/fluo-vector": "^0.2.6", | ||
"@palett/presets": "^0.2.6", | ||
"@vect/entries-init": "^0.2.4", | ||
@@ -44,3 +44,3 @@ "@vect/entries-unwind": "^0.2.4", | ||
"homepage": "https://github.com/hoyeungw/palett/fluo-entries#readme", | ||
"gitHead": "78b475d546ccaffc523b0da6e4c82766ba03af64" | ||
"gitHead": "b74dbdbe88f3632467376608f6c2ce2b37161ca5" | ||
} |
28186
Updated@palett/fluo-vector@^0.2.6
Updated@palett/presets@^0.2.6