@formio/js 5.0.0-rc.46 → 5.0.0-rc.47
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/formio.embed.js +1 -1
- package/dist/formio.embed.min.js +1 -1
- package/dist/formio.embed.min.js.LICENSE.txt +1 -1
- package/dist/formio.form.js +3 -3
- package/dist/formio.form.min.js +1 -1
- package/dist/formio.form.min.js.LICENSE.txt +1 -1
- package/dist/formio.full.js +3 -3
- package/dist/formio.full.min.js +1 -1
- package/dist/formio.full.min.js.LICENSE.txt +1 -1
- package/dist/formio.js +2 -2
- package/dist/formio.min.js +1 -1
- package/dist/formio.min.js.LICENSE.txt +1 -1
- package/dist/formio.utils.js +1 -1
- package/dist/formio.utils.min.js +1 -1
- package/dist/formio.utils.min.js.LICENSE.txt +1 -1
- package/lib/cjs/utils/Evaluator.d.ts +1 -3
- package/lib/cjs/utils/Evaluator.js +1 -5
- package/lib/mjs/utils/Evaluator.d.ts +1 -3
- package/lib/mjs/utils/Evaluator.js +1 -5
- package/package.json +1 -1
@@ -20,7 +20,7 @@
|
|
20
20
|
|
21
21
|
/*! @license DOMPurify 3.1.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.1.0/LICENSE */
|
22
22
|
|
23
|
-
/*! formiojs v5.0.0-rc.
|
23
|
+
/*! formiojs v5.0.0-rc.47 | https://unpkg.com/formiojs@5.0.0-rc.47/LICENSE.txt */
|
24
24
|
|
25
25
|
/**
|
26
26
|
* @license
|
@@ -1,10 +1,8 @@
|
|
1
1
|
export class Evaluator {
|
2
2
|
static cache: {};
|
3
3
|
static protectedEval: boolean;
|
4
|
+
static noeval: boolean;
|
4
5
|
static template(template: any, hash: any): any;
|
5
6
|
static interpolate(rawTemplate: any, data: any, _options: any): any;
|
6
7
|
static evaluate(func: any, args: any): any;
|
7
8
|
}
|
8
|
-
export namespace Evaluator {
|
9
|
-
function registerEvaluator(evaluator: any): void;
|
10
|
-
}
|
@@ -60,8 +60,4 @@ class Evaluator extends utils_1.Evaluator {
|
|
60
60
|
exports.Evaluator = Evaluator;
|
61
61
|
Evaluator.cache = {};
|
62
62
|
Evaluator.protectedEval = false;
|
63
|
-
Evaluator.
|
64
|
-
Object.keys(evaluator).forEach((key) => {
|
65
|
-
Evaluator[key] = evaluator[key];
|
66
|
-
});
|
67
|
-
};
|
63
|
+
Evaluator.noeval = false;
|
@@ -1,10 +1,8 @@
|
|
1
1
|
export class Evaluator {
|
2
2
|
static cache: {};
|
3
3
|
static protectedEval: boolean;
|
4
|
+
static noeval: boolean;
|
4
5
|
static template(template: any, hash: any): any;
|
5
6
|
static interpolate(rawTemplate: any, data: any, _options: any): any;
|
6
7
|
static evaluate(func: any, args: any): any;
|
7
8
|
}
|
8
|
-
export namespace Evaluator {
|
9
|
-
function registerEvaluator(evaluator: any): void;
|
10
|
-
}
|
@@ -4,6 +4,7 @@ import { Evaluator as CoreEvaluator } from '@formio/core/utils';
|
|
4
4
|
export class Evaluator extends CoreEvaluator {
|
5
5
|
static cache = {};
|
6
6
|
static protectedEval = false;
|
7
|
+
static noeval = false;
|
7
8
|
static template(template, hash) {
|
8
9
|
hash = hash || stringHash(template);
|
9
10
|
if (Evaluator.cache[hash]) {
|
@@ -53,8 +54,3 @@ export class Evaluator extends CoreEvaluator {
|
|
53
54
|
return Array.isArray(args) ? func(...args) : func(args);
|
54
55
|
}
|
55
56
|
}
|
56
|
-
Evaluator.registerEvaluator = (evaluator) => {
|
57
|
-
Object.keys(evaluator).forEach((key) => {
|
58
|
-
Evaluator[key] = evaluator[key];
|
59
|
-
});
|
60
|
-
};
|