bruce-models 4.3.7 → 4.3.9

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.
@@ -1353,18 +1353,20 @@ var BruceApi;
1353
1353
  this.loadCancelled = false;
1354
1354
  // Indicates if loading the regional configuration was already called.
1355
1355
  this.configLoadAttempted = false;
1356
- let { accountId, env, guardian, loadRegionalBaseUrl, loadConfig, loadWebSocket } = params;
1356
+ let { accountId, env, guardian, loadRegionalBaseUrl, loadConfig, loadWebSocket, dummy } = params;
1357
1357
  this.accountId = accountId;
1358
1358
  this.env = env !== null && env !== void 0 ? env : Api.EEnv.PROD;
1359
- // Backwards compatibility.
1360
- if (loadRegionalBaseUrl) {
1361
- loadConfig = true;
1362
- }
1363
- if (loadConfig) {
1364
- // Mark it as attempted right away because we don't want any external calls while it gets to that async point.
1365
- this.configLoadAttempted = true;
1359
+ if (!dummy) {
1360
+ // Backwards compatibility.
1361
+ if (loadRegionalBaseUrl) {
1362
+ loadConfig = true;
1363
+ }
1364
+ if (loadConfig) {
1365
+ // Mark it as attempted right away because we don't want any external calls while it gets to that async point.
1366
+ this.configLoadAttempted = true;
1367
+ }
1368
+ this.loadProm = this.init(guardian, loadConfig, loadWebSocket);
1366
1369
  }
1367
- this.loadProm = this.init(guardian, loadConfig, loadWebSocket);
1368
1370
  }
1369
1371
  /**
1370
1372
  * Loads regional base url and sets up message broker.
@@ -8170,7 +8172,14 @@ var ClientFile;
8170
8172
  if (!api) {
8171
8173
  api = ENVIRONMENT.Api().GetBruceApi();
8172
8174
  }
8173
- const urlSuffix = file.FileExt ? `file/${file.ID}${file.FileExt}` : `file/${file.ID}`;
8175
+ let ext = file.FileExt;
8176
+ if (!ext && file.OriginalFileName && file.OriginalFileName.includes(".")) {
8177
+ ext = file.OriginalFileName.split(".").pop();
8178
+ }
8179
+ if (ext && !ext.startsWith(".")) {
8180
+ ext = "." + ext;
8181
+ }
8182
+ const urlSuffix = ext ? `file/${file.ID}${ext}` : `file/${file.ID}`;
8174
8183
  const cdnUrl = viaCdn ? api.ConstructCdnUrl(urlSuffix) : null;
8175
8184
  if (cdnUrl) {
8176
8185
  return cdnUrl;
@@ -13345,7 +13354,7 @@ var DataSource;
13345
13354
  })(DataSource || (DataSource = {}));
13346
13355
 
13347
13356
  // This is updated with the package.json version on build.
13348
- const VERSION = "4.3.7";
13357
+ const VERSION = "4.3.9";
13349
13358
 
13350
13359
  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 };
13351
13360
  //# sourceMappingURL=bruce-models.es5.js.map