bruce-models 5.6.7 → 5.6.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.
@@ -8376,7 +8376,7 @@ var Uploader;
8376
8376
  if (!api) {
8377
8377
  api = ENVIRONMENT.Api().GetBruceApi();
8378
8378
  }
8379
- const FILE_PORTION_SIZE = 100000000; // 100MB.
8379
+ const FILE_PORTION_SIZE = 50000000; // 50MB.
8380
8380
  let fileSize = file.size;
8381
8381
  let fileOffset = 0;
8382
8382
  let filePartsCount = fileSize / FILE_PORTION_SIZE;
@@ -8423,6 +8423,12 @@ var Uploader;
8423
8423
  }
8424
8424
  fileOffset += partSize;
8425
8425
  filePartIndex++;
8426
+ // Call onProgress since we completed a portion.
8427
+ // This helps us know progress even when the request callback isn't working properly.
8428
+ onProgress === null || onProgress === void 0 ? void 0 : onProgress({
8429
+ percent: Math.round((fileOffset / fileSize) * 100),
8430
+ uploaded: false
8431
+ });
8426
8432
  }
8427
8433
  onProgress === null || onProgress === void 0 ? void 0 : onProgress({
8428
8434
  percent: 100,
@@ -15205,7 +15211,7 @@ var Scenario;
15205
15211
  })(Scenario || (Scenario = {}));
15206
15212
 
15207
15213
  // This is updated with the package.json version on build.
15208
- const VERSION = "5.6.7";
15214
+ const VERSION = "5.6.9";
15209
15215
 
15210
15216
  export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, GlobalApi, GuardianApi, ApiGetters, Calculator, Bounds, BruceEvent, CacheControl, Camera, Cartes, Carto, Color, DelayQueue, Geometry, UTC, BruceVariable, LRUCache, GeoJson, EntityAttachmentType, EntityAttachment, EntityComment, EntityLink, EntityLod, EntityLodCategory, EntityRelationType, EntityRelation, EntitySource, EntityTag, EntityType, Entity, EntityCoords, EntityAttribute, EntityHistoricData, EntityTableView, Comment, ClientFile, ProgramKey, ZoomControl, MenuItem, ProjectViewBookmark, ProjectView, ProjectViewLegacyTile, ProjectViewTile, ProjectViewLegacy, ProjectViewLegacyBookmark, ProjectViewBookmarkGroup, PendingAction, MessageBroker, HostingLocation, Style, Tileset, Permission, Session, UserGroup, User, Account, AccountInvite, AccountFeatures, AccountLimits, AccountTemplate, AccountType, EncryptUtils, MathUtils, ObjectUtils, PathUtils, UrlUtils, DataLab, DataLabGroup, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, ExportBrz, ExportUsd, Markup, Uploader, Plugin, ENVIRONMENT, DataSource, Scenario };
15211
15217
  //# sourceMappingURL=bruce-models.es5.js.map