@aryth/bound-vector
Advanced tools
Comparing version 0.3.13 to 0.3.14
@@ -241,6 +241,14 @@ 'use strict'; | ||
const [x = {}, y = {}] = configs; | ||
x.filter = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : numeral.isNumeric, x.mapper = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : numeral.parseNum; | ||
y.filter = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : literal.hasLiteral, y.mapper = (_y$mapper = y === null || y === void 0 ? void 0 : y.mapper) !== null && _y$mapper !== void 0 ? _y$mapper : stringValue.stringValue; | ||
return duobound(words, configs); | ||
const [x, y] = configs; | ||
const fX = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : numeral.isNumeric, | ||
mX = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : numeral.parseNum; | ||
const fY = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : literal.hasLiteral, | ||
mY = (_y$mapper = y === null || y === void 0 ? void 0 : y.mapper) !== null && _y$mapper !== void 0 ? _y$mapper : stringValue.stringValue; | ||
return duobound(words, [{ | ||
filter: fX, | ||
mapper: mX | ||
}, { | ||
filter: fY, | ||
mapper: mY | ||
}]); | ||
} | ||
@@ -247,0 +255,0 @@ |
@@ -237,6 +237,14 @@ import { IsNum, boundOutput, ToNum } from '@aryth/util-bound'; | ||
const [x = {}, y = {}] = configs; | ||
x.filter = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : isNumeric, x.mapper = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : parseNum; | ||
y.filter = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : hasLiteral, y.mapper = (_y$mapper = y === null || y === void 0 ? void 0 : y.mapper) !== null && _y$mapper !== void 0 ? _y$mapper : stringValue; | ||
return duobound(words, configs); | ||
const [x, y] = configs; | ||
const fX = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : isNumeric, | ||
mX = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : parseNum; | ||
const fY = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : hasLiteral, | ||
mY = (_y$mapper = y === null || y === void 0 ? void 0 : y.mapper) !== null && _y$mapper !== void 0 ? _y$mapper : stringValue; | ||
return duobound(words, [{ | ||
filter: fX, | ||
mapper: mX | ||
}, { | ||
filter: fY, | ||
mapper: mY | ||
}]); | ||
} | ||
@@ -243,0 +251,0 @@ |
{ | ||
"name": "@aryth/bound-vector", | ||
"version": "0.3.13", | ||
"version": "0.3.14", | ||
"description": "A math util library", | ||
@@ -18,3 +18,3 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@aryth/util-bound": "^0.3.13", | ||
"@aryth/util-bound": "^0.3.14", | ||
"@ject/oneself": "^0.0.6", | ||
@@ -41,3 +41,3 @@ "@texting/string-value": "^0.0.5", | ||
"homepage": "https://github.com/hoyeungw/aryth#readme", | ||
"gitHead": "6e9c4121d6c2270bc18980698c48518737c35686" | ||
"gitHead": "d4db1e83f509818f13b3801d020cf42d2f6e7baa" | ||
} |
17110
429
Updated@aryth/util-bound@^0.3.14