bruce-models 6.6.3 → 6.6.4
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 +14 -7
- package/dist/bruce-models.es5.js.map +1 -1
- package/dist/bruce-models.umd.js +14 -7
- package/dist/bruce-models.umd.js.map +1 -1
- package/dist/lib/bruce-models.js +1 -1
- package/dist/lib/entity/entity-lod.js +13 -6
- package/dist/lib/entity/entity-lod.js.map +1 -1
- package/dist/types/bruce-models.d.ts +1 -1
- package/package.json +1 -1
package/dist/bruce-models.umd.js
CHANGED
|
@@ -6848,18 +6848,25 @@
|
|
|
6848
6848
|
const cacheKey = GetLodsFilterCacheKey(filter);
|
|
6849
6849
|
const cache = api.GetCacheItem(cacheKey, reqParams);
|
|
6850
6850
|
if (cache === null || cache === void 0 ? void 0 : cache.found) {
|
|
6851
|
-
return cache.data;
|
|
6851
|
+
return yield cache.data;
|
|
6852
6852
|
}
|
|
6853
|
-
const prom =
|
|
6853
|
+
const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
|
|
6854
|
+
try {
|
|
6855
|
+
const data = yield api.POST("entity/getlods", filter, reqParams);
|
|
6856
|
+
res({
|
|
6857
|
+
lods: data.Items || []
|
|
6858
|
+
});
|
|
6859
|
+
}
|
|
6860
|
+
catch (e) {
|
|
6861
|
+
rej(e);
|
|
6862
|
+
}
|
|
6863
|
+
}));
|
|
6854
6864
|
api.SetCacheItem({
|
|
6855
6865
|
key: cacheKey,
|
|
6856
6866
|
value: prom,
|
|
6857
6867
|
req: reqParams
|
|
6858
6868
|
});
|
|
6859
|
-
|
|
6860
|
-
return {
|
|
6861
|
-
lods: data.Items
|
|
6862
|
-
};
|
|
6869
|
+
return yield prom;
|
|
6863
6870
|
});
|
|
6864
6871
|
}
|
|
6865
6872
|
EntityLod.GetLods = GetLods;
|
|
@@ -16117,7 +16124,7 @@
|
|
|
16117
16124
|
})(exports.Tracking || (exports.Tracking = {}));
|
|
16118
16125
|
|
|
16119
16126
|
// This is updated with the package.json version on build.
|
|
16120
|
-
const VERSION = "6.6.
|
|
16127
|
+
const VERSION = "6.6.4";
|
|
16121
16128
|
|
|
16122
16129
|
exports.VERSION = VERSION;
|
|
16123
16130
|
exports.AbstractApi = AbstractApi;
|