@vixoniccom/modules 2.25.0-dev.19 → 2.25.0-dev.20
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/CHANGELOG.md +7 -0
- package/dist/lib/index.js +6 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
## [2.25.0-dev.20](https://github.com/Vixonic/store-modules/compare/v2.25.0-dev.19...v2.25.0-dev.20) (2026-05-20)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* durationFormula ([4e677f9](https://github.com/Vixonic/store-modules/commit/4e677f9e81ee4d23cc5e09ba42b373c340b15a57))
|
|
11
|
+
|
|
5
12
|
## [2.25.0-dev.19](https://github.com/Vixonic/store-modules/compare/v2.25.0-dev.3...v2.25.0-dev.19) (2026-05-20)
|
|
6
13
|
|
|
7
14
|
|
package/dist/lib/index.js
CHANGED
|
@@ -89,15 +89,13 @@ var Configuration = /** @class */ (function () {
|
|
|
89
89
|
var regexp = new RegExp('{{(.*?)}}', 'ig');
|
|
90
90
|
jsEval = jsEval.replace(regexp, function (_match, field) {
|
|
91
91
|
var val = _values[field.trim()];
|
|
92
|
-
|
|
92
|
+
if (typeof val === 'number' && Number.isFinite(val))
|
|
93
|
+
return String(val);
|
|
94
|
+
if (val !== null && val !== undefined)
|
|
95
|
+
return JSON.stringify(val);
|
|
96
|
+
return 'undefined';
|
|
93
97
|
});
|
|
94
|
-
|
|
95
|
-
if (!/^[.\d\s+\-*/%()]+$/.test(jsEval)) {
|
|
96
|
-
console.warn('Computed time error: Invalid characters in time expression:', jsEval);
|
|
97
|
-
return undefined;
|
|
98
|
-
}
|
|
99
|
-
// Input is validated above against an arithmetic-only allowlist before reaching this call. // NOSONAR
|
|
100
|
-
var time = new Function("return (".concat(jsEval, ");"))(); // NOSONAR
|
|
98
|
+
var time = new Function('_values', "return (".concat(jsEval, ");"))(_values); // NOSONAR
|
|
101
99
|
if (typeof time === 'number') {
|
|
102
100
|
// validate number
|
|
103
101
|
if (isNaN(time) || time < 4 || time >= 86400) {
|