bruce-models 4.3.3 → 4.3.4

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.
@@ -3002,7 +3002,8 @@ var EntityType;
3002
3002
  var PathUtils;
3003
3003
  (function (PathUtils) {
3004
3004
  /**
3005
- * Parses a string path into an array of strings.
3005
+ * Parses a Bruce string path into an array of strings.
3006
+ * Example of path: "\"location\"/\"latitude\"" or "location/latitude".
3006
3007
  * @param str
3007
3008
  * @returns
3008
3009
  */
@@ -3010,23 +3011,17 @@ var PathUtils;
3010
3011
  if (!(str === null || str === void 0 ? void 0 : str.length)) {
3011
3012
  return [];
3012
3013
  }
3013
- const broken = str.split("\"/\"");
3014
- if (broken.length > 0) {
3015
- let top = broken[0];
3016
- if (top.length > 0) {
3017
- if (top.charAt(0) == "\"") {
3018
- top = top.substring(1);
3019
- }
3020
- broken[0] = top;
3014
+ const broken = str.split("/");
3015
+ // Remove quotes from the first and last chars.
3016
+ for (let i = 0; i < broken.length; i++) {
3017
+ let piece = broken[i];
3018
+ if (piece.startsWith("\"")) {
3019
+ piece = piece.substring(1);
3021
3020
  }
3022
- const endIndex = broken.length - 1;
3023
- let bot = broken[endIndex];
3024
- if (bot.length > 0) {
3025
- if (bot.charAt(bot.length - 1) == "\"") {
3026
- bot = bot.substring(0, bot.length - 1);
3027
- }
3028
- broken[endIndex] = bot;
3021
+ if (piece.endsWith("\"")) {
3022
+ piece = piece.substring(0, piece.length - 1);
3029
3023
  }
3024
+ broken[i] = piece;
3030
3025
  }
3031
3026
  return broken;
3032
3027
  }
@@ -13350,7 +13345,7 @@ var DataSource;
13350
13345
  })(DataSource || (DataSource = {}));
13351
13346
 
13352
13347
  // This is updated with the package.json version on build.
13353
- const VERSION = "4.3.3";
13348
+ const VERSION = "4.3.4";
13354
13349
 
13355
13350
  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, EntityHistoricData, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
13356
13351
  //# sourceMappingURL=bruce-models.es5.js.map