@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.
@@ -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.46 | https://unpkg.com/formiojs@5.0.0-rc.46/LICENSE.txt */
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.registerEvaluator = (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
- };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@formio/js",
3
- "version": "5.0.0-rc.46",
3
+ "version": "5.0.0-rc.47",
4
4
  "description": "JavaScript powered Forms with JSON Form Builder",
5
5
  "main": "lib/cjs/index.js",
6
6
  "exports": {