bruce-models 4.6.0 → 4.6.1
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 +16 -9
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +16 -9
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/api/bruce-api.js +15 -8
- package/dist/lib/api/bruce-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
|
@@ -1075,10 +1075,11 @@ var BruceApi;
|
|
|
1075
1075
|
if (!tmp.pathname.endsWith("/")) {
|
|
1076
1076
|
tmp.pathname += "/";
|
|
1077
1077
|
}
|
|
1078
|
+
let split;
|
|
1078
1079
|
if (params === null || params === void 0 ? void 0 : params.url) {
|
|
1079
1080
|
// Ensure we're only adding the path.
|
|
1080
1081
|
// The baseUrl could have included query params so have this extra logic.
|
|
1081
|
-
|
|
1082
|
+
split = params.url.split("?");
|
|
1082
1083
|
// Ensure the url does not start with a slash.
|
|
1083
1084
|
// This is because the base url already has a slash at the end.
|
|
1084
1085
|
let path = split[0];
|
|
@@ -1086,16 +1087,22 @@ var BruceApi;
|
|
|
1086
1087
|
path = path.substring(1);
|
|
1087
1088
|
}
|
|
1088
1089
|
tmp.pathname += path;
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1090
|
+
}
|
|
1091
|
+
let full = tmp.toString();
|
|
1092
|
+
// Append the query string if any exist.
|
|
1093
|
+
if (split && split.length > 1) {
|
|
1094
|
+
const query = split[1].split("&");
|
|
1095
|
+
for (let q of query) {
|
|
1096
|
+
if (full.includes("?")) {
|
|
1097
|
+
full += "&";
|
|
1095
1098
|
}
|
|
1099
|
+
else {
|
|
1100
|
+
full += "?";
|
|
1101
|
+
}
|
|
1102
|
+
full += q;
|
|
1096
1103
|
}
|
|
1097
1104
|
}
|
|
1098
|
-
return
|
|
1105
|
+
return full;
|
|
1099
1106
|
}
|
|
1100
1107
|
/**
|
|
1101
1108
|
* Returns a url routed through the API's CDN.
|
|
@@ -13761,7 +13768,7 @@ var DataSource;
|
|
|
13761
13768
|
})(DataSource || (DataSource = {}));
|
|
13762
13769
|
|
|
13763
13770
|
// This is updated with the package.json version on build.
|
|
13764
|
-
const VERSION = "4.6.
|
|
13771
|
+
const VERSION = "4.6.1";
|
|
13765
13772
|
|
|
13766
13773
|
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, 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, ImportCad, ImportCsv, ImportJson, ImportKml, ImportedFile, Markup, Uploader, Plugin, ENVIRONMENT, DataSource };
|
|
13767
13774
|
//# sourceMappingURL=bruce-models.es5.js.map
|