@aryth/bound-vector
Advanced tools
Comparing version 0.2.14 to 0.3.0
@@ -26,4 +26,4 @@ 'use strict'; | ||
/** @type {{dif: boolean, level: number}} */ | ||
const config = this || { | ||
dif: false, | ||
const config = this !== null && this !== void 0 ? this : { | ||
dif: true, | ||
level: enumCheckLevels.LOOSE | ||
@@ -51,13 +51,5 @@ }; | ||
} | ||
function leap(vec) { | ||
/** @type {{dif: boolean, level: number}} */ | ||
const config = this || { | ||
level: enumCheckLevels.LOOSE | ||
}; | ||
config.dif = true; | ||
return bound.call(config, vec); | ||
} | ||
const iterate = function (vec, fn, l) { | ||
l = l || vec && vec.length; | ||
l = l || (vec === null || vec === void 0 ? void 0 : vec.length); | ||
@@ -185,3 +177,2 @@ for (let i = 0; i < l; i++) fn.call(this, vec[i], i); | ||
exports.duobound = duobound; | ||
exports.leap = leap; | ||
exports.solebound = solebound; |
@@ -22,4 +22,4 @@ import { IsNum, boundOutput, ToNum } from '@aryth/util-bound'; | ||
/** @type {{dif: boolean, level: number}} */ | ||
const config = this || { | ||
dif: false, | ||
const config = this !== null && this !== void 0 ? this : { | ||
dif: true, | ||
level: LOOSE | ||
@@ -47,13 +47,5 @@ }; | ||
} | ||
function leap(vec) { | ||
/** @type {{dif: boolean, level: number}} */ | ||
const config = this || { | ||
level: LOOSE | ||
}; | ||
config.dif = true; | ||
return bound.call(config, vec); | ||
} | ||
const iterate = function (vec, fn, l) { | ||
l = l || vec && vec.length; | ||
l = l || (vec === null || vec === void 0 ? void 0 : vec.length); | ||
@@ -179,2 +171,2 @@ for (let i = 0; i < l; i++) fn.call(this, vec[i], i); | ||
export { bound, duobound, leap, solebound }; | ||
export { bound, duobound, solebound }; |
{ | ||
"name": "@aryth/bound-vector", | ||
"version": "0.2.14", | ||
"version": "0.3.0", | ||
"description": "A math util library", | ||
@@ -18,12 +18,12 @@ "main": "dist/index.cjs.js", | ||
"dependencies": { | ||
"@aryth/util-bound": "^0.2.14", | ||
"@aryth/util-bound": "^0.3.0", | ||
"@ject/oneself": "^0.0.6", | ||
"@spare/string-value": "^0.8.8", | ||
"@typen/enum-check-levels": "^0.1.5", | ||
"@typen/literal": "^0.1.5", | ||
"@typen/num-strict": "^0.1.5" | ||
"@spare/string-value": "^0.9.8", | ||
"@typen/enum-check-levels": "^0.1.10", | ||
"@typen/literal": "^0.1.10", | ||
"@typen/num-strict": "^0.1.10" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/hoyeungw/aryth.git" | ||
"url": "git+https://github.com/gadge/aryth.git" | ||
}, | ||
@@ -41,3 +41,3 @@ "keywords": [ | ||
"homepage": "https://github.com/hoyeungw/aryth#readme", | ||
"gitHead": "e6c03af3271cc7b45aa029eedda5ab2d9fdf71e6" | ||
"gitHead": "9e7b2050628ba370afbb77fa47b0c352ff180e36" | ||
} |
13540
274
+ Added@aryth/util-bound@0.3.26(transitive)
+ Added@spare/string-value@0.9.9(transitive)
- Removed@aryth/util-bound@0.2.14(transitive)
- Removed@spare/string-value@0.8.16(transitive)
Updated@aryth/util-bound@^0.3.0
Updated@spare/string-value@^0.9.8
Updated@typen/literal@^0.1.10
Updated@typen/num-strict@^0.1.10