@kontur.candy/generator 5.28.0 → 5.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +14 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -60967,7 +60967,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
60967
60967
|
/* harmony export */ getAsyncTextResultHandler: () => (/* binding */ getAsyncTextResultHandler),
|
|
60968
60968
|
/* harmony export */ getOperands: () => (/* binding */ getOperands),
|
|
60969
60969
|
/* harmony export */ getSum: () => (/* binding */ getSum),
|
|
60970
|
-
/* harmony export */ wrapDecimalOperand: () => (/* binding */ wrapDecimalOperand)
|
|
60970
|
+
/* harmony export */ wrapDecimalOperand: () => (/* binding */ wrapDecimalOperand),
|
|
60971
|
+
/* harmony export */ wrapDecimalOrUndefined: () => (/* binding */ wrapDecimalOrUndefined)
|
|
60971
60972
|
/* harmony export */ });
|
|
60972
60973
|
/* harmony import */ var big_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! big.js */ "./node_modules/big.js/big.mjs");
|
|
60973
60974
|
/* harmony import */ var _Common_IterableUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../../Common/IterableUtils */ "./Common/IterableUtils.ts");
|
|
@@ -61057,6 +61058,18 @@ function wrapDecimalOperand(value) {
|
|
|
61057
61058
|
}
|
|
61058
61059
|
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](0);
|
|
61059
61060
|
}
|
|
61061
|
+
function wrapDecimalOrUndefined(value) {
|
|
61062
|
+
if (typeof value === "number" && isFinite(value)) {
|
|
61063
|
+
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](value);
|
|
61064
|
+
}
|
|
61065
|
+
if (typeof value === "string" && /^-?\d+[.]?\d*$/.test(value)) {
|
|
61066
|
+
return new big_js__WEBPACK_IMPORTED_MODULE_0__["default"](value);
|
|
61067
|
+
}
|
|
61068
|
+
if (value instanceof big_js__WEBPACK_IMPORTED_MODULE_0__["default"]) {
|
|
61069
|
+
return value;
|
|
61070
|
+
}
|
|
61071
|
+
return undefined;
|
|
61072
|
+
}
|
|
61060
61073
|
function getSum(values) {
|
|
61061
61074
|
let allValuesIsEmpty = true;
|
|
61062
61075
|
if (values.length === 0) {
|