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.
@@ -4028,9 +4028,14 @@ var Calculator;
4028
4028
  str: value,
4029
4029
  entity: entity
4030
4030
  });
4031
- // Check if it includes a math operation.
4031
+ const isJsEval = typeof value == "string" && value.startsWith("JS:");
4032
4032
  const MATH_REGEX = /(\d+\.?\d*|\.\d+)([+\-*/])(\d+\.?\d*|\.\d+)/;
4033
- if (MATH_REGEX.test(value)) {
4033
+ const isMathEval = isJsEval || MATH_REGEX.test(value);
4034
+ if (isJsEval || isMathEval) {
4035
+ if (isJsEval) {
4036
+ value = value.replace("JS:", "");
4037
+ value = value.trim();
4038
+ }
4034
4039
  // https://rollupjs.org/guide/en/#avoiding-eval
4035
4040
  // This stops eval warning.
4036
4041
  const eval2 = eval;
@@ -10887,7 +10892,7 @@ var DataSource;
10887
10892
  })(DataSource || (DataSource = {}));
10888
10893
 
10889
10894
  // This is updated with the package.json version on build.
10890
- const VERSION = "3.5.7";
10895
+ const VERSION = "3.5.8";
10891
10896
 
10892
10897
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityTypeVisualSettings, EntityAttribute, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
10893
10898
  //# sourceMappingURL=bruce-models.es5.js.map