bruce-models 4.8.3 → 4.8.5
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 +8 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +8 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +7 -4
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/entity/entity.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -529,15 +529,18 @@ class AbstractApi {
|
|
|
529
529
|
if (!params) {
|
|
530
530
|
params = {};
|
|
531
531
|
}
|
|
532
|
-
params.headers = params.headers || {};
|
|
533
532
|
params.headers = Object.assign({}, params.headers);
|
|
534
533
|
if (this.ssidHeader && this.ssid) {
|
|
535
534
|
params.headers[this.ssidHeader] = this.ssid;
|
|
536
535
|
}
|
|
537
|
-
const formData = new FormData();
|
|
536
|
+
const formData = params.formData instanceof FormData ? params.formData : new FormData();
|
|
537
|
+
if (formData.has("file")) {
|
|
538
|
+
formData.delete("file");
|
|
539
|
+
}
|
|
538
540
|
formData.append("file", blob);
|
|
539
|
-
|
|
540
|
-
|
|
541
|
+
// If the provided form data was a plain object, append its properties to the form data.
|
|
542
|
+
if (params.formData && !(params.formData instanceof FormData)) {
|
|
543
|
+
for (let key in params.formData) {
|
|
541
544
|
formData.append(key, params.formData[key]);
|
|
542
545
|
}
|
|
543
546
|
}
|
|
@@ -14281,7 +14284,7 @@ var DataSource;
|
|
|
14281
14284
|
})(DataSource || (DataSource = {}));
|
|
14282
14285
|
|
|
14283
14286
|
// This is updated with the package.json version on build.
|
|
14284
|
-
const VERSION = "4.8.
|
|
14287
|
+
const VERSION = "4.8.5";
|
|
14285
14288
|
|
|
14286
14289
|
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, EntityTypeVisualSettings, EntityAttribute, EntityHistoricData, EntityTableView, 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, ImportAssembly, ImportCad, ImportCsv, ImportJson, ImportGeoJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
14287
14290
|
//# sourceMappingURL=bruce-models.es5.js.map
|