bruce-models 3.5.7 → 3.5.8

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.
@@ -3963,9 +3963,14 @@
3963
3963
  str: value,
3964
3964
  entity: entity
3965
3965
  });
3966
- // Check if it includes a math operation.
3966
+ const isJsEval = typeof value == "string" && value.startsWith("JS:");
3967
3967
  const MATH_REGEX = /(\d+\.?\d*|\.\d+)([+\-*/])(\d+\.?\d*|\.\d+)/;
3968
- if (MATH_REGEX.test(value)) {
3968
+ const isMathEval = isJsEval || MATH_REGEX.test(value);
3969
+ if (isJsEval || isMathEval) {
3970
+ if (isJsEval) {
3971
+ value = value.replace("JS:", "");
3972
+ value = value.trim();
3973
+ }
3969
3974
  // https://rollupjs.org/guide/en/#avoiding-eval
3970
3975
  // This stops eval warning.
3971
3976
  const eval2 = eval;
@@ -10634,7 +10639,7 @@
10634
10639
  })(exports.DataSource || (exports.DataSource = {}));
10635
10640
 
10636
10641
  // This is updated with the package.json version on build.
10637
- const VERSION = "3.5.7";
10642
+ const VERSION = "3.5.8";
10638
10643
 
10639
10644
  exports.VERSION = VERSION;
10640
10645
  exports.AbstractApi = AbstractApi;