bruce-models 3.6.2 → 3.6.3
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.
- package/dist/bruce-models.es5.js +5 -4
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +5 -4
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/bruce-api.js +1 -1
- package/dist/lib/api/bruce-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/internal/uploader.js +3 -2
- package/dist/lib/internal/uploader.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity-attachment.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -1350,7 +1350,7 @@ var BruceApi;
|
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
// Start web socket connection.
|
|
1353
|
-
if (loadWebSocket
|
|
1353
|
+
if (loadWebSocket == true) {
|
|
1354
1354
|
try {
|
|
1355
1355
|
this.messageBroker = new MessageBroker.WebSocketBroker(this.baseUrl, this.env);
|
|
1356
1356
|
}
|
|
@@ -6660,12 +6660,13 @@ var Uploader;
|
|
|
6660
6660
|
while (retryCount > 0) {
|
|
6661
6661
|
try {
|
|
6662
6662
|
const blob = file.slice(fileOffset, fileOffset + partSize);
|
|
6663
|
+
const partialFile = new File([blob], file.name, { type: file.type });
|
|
6663
6664
|
const formData = new FormData();
|
|
6664
6665
|
formData.append("originalFileName", file.name);
|
|
6665
6666
|
formData.append("token", uploadToken);
|
|
6666
6667
|
formData.append("count", "" + filePartsCount);
|
|
6667
6668
|
formData.append("part", "" + filePartIndex);
|
|
6668
|
-
formData.append("file",
|
|
6669
|
+
formData.append("file", partialFile);
|
|
6669
6670
|
const reqParams = Api.PrepReqParams(req);
|
|
6670
6671
|
reqParams.formData = formData;
|
|
6671
6672
|
reqParams.onProgress = (progress) => {
|
|
@@ -6676,7 +6677,7 @@ var Uploader;
|
|
|
6676
6677
|
uploaded: false
|
|
6677
6678
|
});
|
|
6678
6679
|
};
|
|
6679
|
-
data = yield api.UPLOAD(url,
|
|
6680
|
+
data = yield api.UPLOAD(url, partialFile, reqParams);
|
|
6680
6681
|
retryCount = 0;
|
|
6681
6682
|
}
|
|
6682
6683
|
catch (up) {
|
|
@@ -10965,7 +10966,7 @@ var DataSource;
|
|
|
10965
10966
|
})(DataSource || (DataSource = {}));
|
|
10966
10967
|
|
|
10967
10968
|
// This is updated with the package.json version on build.
|
|
10968
|
-
const VERSION = "3.6.
|
|
10969
|
+
const VERSION = "3.6.3";
|
|
10969
10970
|
|
|
10970
10971
|
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 };
|
|
10971
10972
|
//# sourceMappingURL=bruce-models.es5.js.map
|