@defillama/sdk 5.0.8 → 5.0.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.
@@ -154,10 +154,11 @@ exports.readCache = readCache;
154
154
  function writeCache(file, data, options) {
155
155
  if (options === void 0) { options = {}; }
156
156
  return __awaiter(this, void 0, void 0, function () {
157
- var fileData, _a, _b, _c, filePath;
157
+ var fileData, _a, _b, _c, filePath, error_4;
158
158
  return __generator(this, function (_d) {
159
159
  switch (_d.label) {
160
160
  case 0:
161
+ _d.trys.push([0, 9, , 10]);
161
162
  if (!options.alreadyCompressed) return [3 /*break*/, 1];
162
163
  _a = data;
163
164
  return [3 /*break*/, 3];
@@ -190,6 +191,11 @@ function writeCache(file, data, options) {
190
191
  _d.sent();
191
192
  _d.label = 8;
192
193
  case 8: return [2 /*return*/, fileData];
194
+ case 9:
195
+ error_4 = _d.sent();
196
+ (0, debugLog_1.debugLog)('Error writing cache:', error_4);
197
+ return [3 /*break*/, 10];
198
+ case 10: return [2 /*return*/];
193
199
  }
194
200
  });
195
201
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@defillama/sdk",
3
- "version": "5.0.8",
3
+ "version": "5.0.9",
4
4
  "description": "SDK for calculating TVL",
5
5
  "main": "build/index.js",
6
6
  "scripts": {