bruce-models 7.1.18 → 7.1.19

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.
@@ -3876,7 +3876,15 @@
3876
3876
  });
3877
3877
  const cache = api.GetCacheItem(key, reqParams);
3878
3878
  if (cache === null || cache === void 0 ? void 0 : cache.found) {
3879
- return cache.data;
3879
+ const cachedData = cache.data;
3880
+ if (cachedData instanceof Promise || (typeof cachedData === "object" && typeof cachedData.then === "function")) {
3881
+ return cachedData;
3882
+ }
3883
+ else {
3884
+ return Promise.resolve({
3885
+ entity: cachedData
3886
+ });
3887
+ }
3880
3888
  }
3881
3889
  const prom = new Promise((res, rej) => __awaiter(this, void 0, void 0, function* () {
3882
3890
  try {
@@ -4155,8 +4163,10 @@
4155
4163
  const req = crashRiskReqs[i];
4156
4164
  try {
4157
4165
  const data = yield req;
4158
- if (data === null || data === void 0 ? void 0 : data.entity) {
4159
- entities.push(data.entity);
4166
+ // Handle both wrapped and direct-Entity blobs.
4167
+ const entity = (data === null || data === void 0 ? void 0 : data.entity) || ((data === null || data === void 0 ? void 0 : data.Bruce) ? data : null);
4168
+ if (entity) {
4169
+ entities.push(entity);
4160
4170
  }
4161
4171
  }
4162
4172
  catch (e) {
@@ -17130,7 +17140,7 @@
17130
17140
  })(exports.ChangeSet || (exports.ChangeSet = {}));
17131
17141
 
17132
17142
  // This is updated with the package.json version on build.
17133
- const VERSION = "7.1.18";
17143
+ const VERSION = "7.1.19";
17134
17144
 
17135
17145
  exports.VERSION = VERSION;
17136
17146
  exports.AbstractApi = AbstractApi;