@aryth/bound-matrix
Advanced tools
Comparing version 0.3.10 to 0.3.11
@@ -9,7 +9,7 @@ 'use strict'; | ||
var matrixSize = require('@vect/matrix-size'); | ||
var stringValue = require('@spare/string-value'); | ||
var matrixInit = require('@vect/matrix-init'); | ||
var matrixMapper = require('@vect/matrix-mapper'); | ||
var stringValue = require('@texting/string-value'); | ||
var literal = require('@typen/literal'); | ||
var numeral = require('@typen/numeral'); | ||
var matrixInit = require('@vect/matrix-init'); | ||
var matrixMapper = require('@vect/matrix-mapper'); | ||
@@ -240,11 +240,23 @@ const iniNumEntry = (mx, t, b, l, r, { | ||
const count = configs.length; | ||
if (count > 2) return multibound(wordx, configs); | ||
if (count === 0) return []; | ||
if (count === 1) { | ||
var _x$filter, _x$mapper; | ||
const [x] = configs; | ||
const filter = (_x$filter = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter !== void 0 ? _x$filter : numeral.isNumeric, | ||
mapper = (_x$mapper = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper !== void 0 ? _x$mapper : numeral.parseNum; | ||
return [solebound(wordx, { | ||
filter, | ||
mapper | ||
})]; | ||
} | ||
if (count === 2) { | ||
var _x$filter, _x$mapper, _y$filter, _y$mapper; | ||
var _x$filter2, _x$mapper2, _y$filter, _y$mapper; | ||
const [x, y] = configs; | ||
const fX = (_x$filter = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter !== void 0 ? _x$filter : numeral.isNumeric, | ||
mX = (_x$mapper = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper !== void 0 ? _x$mapper : numeral.parseNum; | ||
const fY = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : literal.hasLiteralAny, | ||
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; | ||
@@ -260,15 +272,3 @@ return duobound(wordx, [{ | ||
if (count === 1) { | ||
var _x$filter2, _x$mapper2; | ||
const [x] = configs; | ||
const filter = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : numeral.isNumeric, | ||
mapper = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : numeral.parseNum; | ||
return [solebound(wordx, { | ||
filter, | ||
mapper | ||
})]; | ||
} | ||
return []; | ||
if (count >= 3) return multibound(wordx, configs); | ||
}; | ||
@@ -275,0 +275,0 @@ |
@@ -5,7 +5,7 @@ import { bound as bound$1 } from '@aryth/bound-vector'; | ||
import { size } from '@vect/matrix-size'; | ||
import { stringValue } from '@spare/string-value'; | ||
import { hasLiteralAny } from '@typen/literal'; | ||
import { isNumeric, parseNum } from '@typen/numeral'; | ||
import { iso } from '@vect/matrix-init'; | ||
import { iterate } from '@vect/matrix-mapper'; | ||
import { stringValue } from '@texting/string-value'; | ||
import { hasLiteral } from '@typen/literal'; | ||
import { isNumeric, parseNum } from '@typen/numeral'; | ||
@@ -236,11 +236,23 @@ const iniNumEntry = (mx, t, b, l, r, { | ||
const count = configs.length; | ||
if (count > 2) return multibound(wordx, configs); | ||
if (count === 0) return []; | ||
if (count === 1) { | ||
var _x$filter, _x$mapper; | ||
const [x] = configs; | ||
const filter = (_x$filter = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter !== void 0 ? _x$filter : isNumeric, | ||
mapper = (_x$mapper = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper !== void 0 ? _x$mapper : parseNum; | ||
return [solebound(wordx, { | ||
filter, | ||
mapper | ||
})]; | ||
} | ||
if (count === 2) { | ||
var _x$filter, _x$mapper, _y$filter, _y$mapper; | ||
var _x$filter2, _x$mapper2, _y$filter, _y$mapper; | ||
const [x, y] = configs; | ||
const fX = (_x$filter = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter !== void 0 ? _x$filter : isNumeric, | ||
mX = (_x$mapper = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper !== void 0 ? _x$mapper : parseNum; | ||
const fY = (_y$filter = y === null || y === void 0 ? void 0 : y.filter) !== null && _y$filter !== void 0 ? _y$filter : hasLiteralAny, | ||
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; | ||
@@ -256,17 +268,5 @@ return duobound(wordx, [{ | ||
if (count === 1) { | ||
var _x$filter2, _x$mapper2; | ||
const [x] = configs; | ||
const filter = (_x$filter2 = x === null || x === void 0 ? void 0 : x.filter) !== null && _x$filter2 !== void 0 ? _x$filter2 : isNumeric, | ||
mapper = (_x$mapper2 = x === null || x === void 0 ? void 0 : x.mapper) !== null && _x$mapper2 !== void 0 ? _x$mapper2 : parseNum; | ||
return [solebound(wordx, { | ||
filter, | ||
mapper | ||
})]; | ||
} | ||
return []; | ||
if (count >= 3) return multibound(wordx, configs); | ||
}; | ||
export { bound, boundaries, duobound, solebound }; |
{ | ||
"name": "@aryth/bound-matrix", | ||
"version": "0.3.10", | ||
"version": "0.3.11", | ||
"description": "A math util library", | ||
@@ -18,6 +18,6 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@aryth/bound-vector": "^0.3.10", | ||
"@aryth/util-bound": "^0.3.10", | ||
"@aryth/bound-vector": "^0.3.11", | ||
"@aryth/util-bound": "^0.3.11", | ||
"@ject/oneself": "^0.0.6", | ||
"@spare/string-value": "^0.10.14", | ||
"@texting/string-value": "^0.0.5", | ||
"@typen/enum-check-levels": "^0.1.16", | ||
@@ -45,3 +45,3 @@ "@typen/literal": "^0.1.16", | ||
"homepage": "https://github.com/hoyeungw/aryth#readme", | ||
"gitHead": "10e562e31e7307a5988e893892d8a13614b4dc6a" | ||
"gitHead": "c8083835ceab09adf351cd642c456f50fe9f01b1" | ||
} |
17745
+ Added@texting/string-value@^0.0.5
+ Added@texting/string-value@0.0.5(transitive)
- Removed@spare/string-value@^0.10.14
- Removed@spare/string-value@0.10.14(transitive)
Updated@aryth/bound-vector@^0.3.11
Updated@aryth/util-bound@^0.3.11