@augment-vir/common
Advanced tools
Comparing version 21.2.0 to 21.3.0
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.toEnsuredNumber = void 0; | ||
exports.wrapNumber = exports.toEnsuredNumber = void 0; | ||
function toEnsuredNumber(input) { | ||
@@ -14,1 +14,11 @@ const numeric = Number(input); | ||
exports.toEnsuredNumber = toEnsuredNumber; | ||
function wrapNumber({ max, min, value }) { | ||
if (value > max) { | ||
return min; | ||
} | ||
else if (value < min) { | ||
return max; | ||
} | ||
return value; | ||
} | ||
exports.wrapNumber = wrapNumber; |
@@ -10,1 +10,10 @@ export function toEnsuredNumber(input) { | ||
} | ||
export function wrapNumber({ max, min, value }) { | ||
if (value > max) { | ||
return min; | ||
} | ||
else if (value < min) { | ||
return max; | ||
} | ||
return value; | ||
} |
export declare function toEnsuredNumber(input: any): number; | ||
export declare function wrapNumber({ max, min, value }: { | ||
value: number; | ||
max: number; | ||
min: number; | ||
}): number; |
{ | ||
"name": "@augment-vir/common", | ||
"version": "21.2.0", | ||
"version": "21.3.0", | ||
"homepage": "https://github.com/electrovir/augment-vir/tree/main/packages/common", | ||
@@ -5,0 +5,0 @@ "bugs": { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171111
4144