bruce-models 6.9.7 → 6.9.8
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 +12 -5
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +12 -5
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/plugin/plugin.js +11 -4
- package/dist/lib/plugin/plugin.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/dist/types/plugin/plugin.d.ts +1 -0
- package/package.json +1 -1
package/dist/bruce-models.es5.js
CHANGED
|
@@ -16034,7 +16034,7 @@ var Plugin;
|
|
|
16034
16034
|
* @returns
|
|
16035
16035
|
*/
|
|
16036
16036
|
function GetLoadUrl(params) {
|
|
16037
|
-
let { api, pluginId, cacheKey } = params;
|
|
16037
|
+
let { api, pluginId, cacheKey, viaCdn } = params;
|
|
16038
16038
|
if (!api) {
|
|
16039
16039
|
api = ENVIRONMENT.Api().GetBruceApi();
|
|
16040
16040
|
}
|
|
@@ -16047,7 +16047,7 @@ var Plugin;
|
|
|
16047
16047
|
urlParams: {
|
|
16048
16048
|
"version": String(cacheKey)
|
|
16049
16049
|
},
|
|
16050
|
-
cdn:
|
|
16050
|
+
cdn: viaCdn
|
|
16051
16051
|
})
|
|
16052
16052
|
};
|
|
16053
16053
|
}
|
|
@@ -16158,7 +16158,8 @@ var Plugin;
|
|
|
16158
16158
|
const { indexFileUrl } = GetLoadUrl({
|
|
16159
16159
|
api,
|
|
16160
16160
|
pluginId,
|
|
16161
|
-
cacheKey: plugin.Version
|
|
16161
|
+
cacheKey: plugin.Version,
|
|
16162
|
+
viaCdn: !plugin.IsLoginRequired
|
|
16162
16163
|
});
|
|
16163
16164
|
req = Api.PrepReqParams(req);
|
|
16164
16165
|
const cacheData = api.GetCacheItem(GetIndexFileCacheKey(pluginId, indexFileUrl), req);
|
|
@@ -16167,7 +16168,13 @@ var Plugin;
|
|
|
16167
16168
|
fileContentProm = cacheData.data;
|
|
16168
16169
|
}
|
|
16169
16170
|
else {
|
|
16170
|
-
|
|
16171
|
+
const headers = {};
|
|
16172
|
+
if (plugin.IsLoginRequired) {
|
|
16173
|
+
headers[api.GetSessionHeader()] = api.GetSessionId();
|
|
16174
|
+
}
|
|
16175
|
+
fileContentProm = fetch(indexFileUrl, {
|
|
16176
|
+
headers: headers
|
|
16177
|
+
}).then((res) => res.text());
|
|
16171
16178
|
api.SetCacheItem({
|
|
16172
16179
|
key: GetIndexFileCacheKey(pluginId, indexFileUrl),
|
|
16173
16180
|
value: fileContentProm,
|
|
@@ -16980,7 +16987,7 @@ class NavigatorMcpWebSocketClient {
|
|
|
16980
16987
|
}
|
|
16981
16988
|
|
|
16982
16989
|
// This is updated with the package.json version on build.
|
|
16983
|
-
const VERSION = "6.9.
|
|
16990
|
+
const VERSION = "6.9.8";
|
|
16984
16991
|
|
|
16985
16992
|
export { VERSION, Assembly, 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, UserMfaMethod, 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, Tracking, NavigatorChatClient, NavigatorMcpWebSocketClient };
|
|
16986
16993
|
//# sourceMappingURL=bruce-models.es5.js.map
|