@vixoniccom/modules 2.20.0-dev.1 → 2.20.0-dev.2
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
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.20.0-dev.2](https://bitbucket.org/vixonic_dev/modules/compare/v2.20.0-dev.1...v2.20.0-dev.2) (2025-02-11)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* eval functions were removed and also a lot to imports no used were removed too ([f00db84](https://bitbucket.org/vixonic_dev/modules/commit/f00db8441836236756fc3a5517c3b4268f788a20))
|
|
11
|
+
|
|
5
12
|
## [2.20.0-dev.1](https://bitbucket.org/vixonic_dev/modules/compare/v2.20.0-dev.0...v2.20.0-dev.1) (2025-01-29)
|
|
6
13
|
|
|
7
14
|
|
package/dist/lib/base.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { InputValue } from
|
|
2
|
-
import { ValueError } from
|
|
3
|
-
import { Configuration } from
|
|
1
|
+
import { InputValue } from './inputs';
|
|
2
|
+
import { ValueError } from './errors';
|
|
3
|
+
import { Configuration } from '.';
|
|
4
4
|
export interface IBaseElement {
|
|
5
5
|
readonly id: string;
|
|
6
6
|
readonly label: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ValueError } from
|
|
1
|
+
import { ValueError } from '../errors';
|
|
2
2
|
export declare namespace Validator {
|
|
3
3
|
const required: (value: any, required: boolean | undefined, onlyUndefined?: boolean) => Array<ValueError.Required>;
|
|
4
4
|
const min: (value: number, min: number | undefined) => Array<ValueError.Min>;
|
package/dist/lib/visibility.js
CHANGED
|
@@ -9,8 +9,8 @@ function shouldBeVisible(item, _values) {
|
|
|
9
9
|
var regexp = new RegExp('{{(.*?)}}', 'ig');
|
|
10
10
|
jsEval = jsEval.replace(regexp, "_values.$1");
|
|
11
11
|
// tslint:disable-next-line
|
|
12
|
-
var show =
|
|
13
|
-
return show
|
|
12
|
+
var show = new Function('_values', "return ".concat(jsEval, ";"))(_values);
|
|
13
|
+
return !!show;
|
|
14
14
|
}
|
|
15
15
|
catch (e) {
|
|
16
16
|
console.warn('Unable to parse expression:', jsEval);
|