bruce-models 3.1.8 → 3.1.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.
- package/dist/bruce-models.es5.js +3 -3
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +3 -3
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/abstract-api.js +2 -2
- package/dist/lib/api/abstract-api.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -227,7 +227,7 @@ class CacheControl {
|
|
|
227
227
|
function parseResult(data) {
|
|
228
228
|
var _a, _b;
|
|
229
229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
230
|
-
if (data.status
|
|
230
|
+
if (data.status >= 400 || data.status < 200) {
|
|
231
231
|
const error = yield data.json();
|
|
232
232
|
throw (error);
|
|
233
233
|
}
|
|
@@ -410,7 +410,7 @@ class AbstractApi {
|
|
|
410
410
|
}
|
|
411
411
|
xhr.onreadystatechange = (e) => {
|
|
412
412
|
if (xhr.readyState == 4) {
|
|
413
|
-
if (xhr.status >= 400) {
|
|
413
|
+
if (xhr.status >= 400 || xhr.status < 200) {
|
|
414
414
|
rej(e);
|
|
415
415
|
}
|
|
416
416
|
else {
|
|
@@ -8636,7 +8636,7 @@ var DataSource;
|
|
|
8636
8636
|
DataSource.GetList = GetList;
|
|
8637
8637
|
})(DataSource || (DataSource = {}));
|
|
8638
8638
|
|
|
8639
|
-
const VERSION = "3.1.
|
|
8639
|
+
const VERSION = "3.1.9";
|
|
8640
8640
|
|
|
8641
8641
|
export { VERSION, AnnDocument, CustomForm, AbstractApi, Api, BruceApi, CamApi, IdmApi, 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 };
|
|
8642
8642
|
//# sourceMappingURL=bruce-models.es5.js.map
|