@defillama/sdk 5.0.145 → 5.0.146
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/build/providers.json +1 -1
- package/build/util/cache.js +2 -4
- package/package.json +1 -1
package/build/util/cache.js
CHANGED
|
@@ -149,7 +149,7 @@ function getTempLocalCache({ file, defaultData = {}, clearAfter = exports.ONE_WE
|
|
|
149
149
|
}
|
|
150
150
|
return fileData.data;
|
|
151
151
|
function _save() {
|
|
152
|
-
saveCache();
|
|
152
|
+
saveCache(false);
|
|
153
153
|
}
|
|
154
154
|
function saveCache(skipCacheFlagCheck = false) {
|
|
155
155
|
if (!skipCacheFlagCheck) {
|
|
@@ -158,8 +158,7 @@ function getTempLocalCache({ file, defaultData = {}, clearAfter = exports.ONE_WE
|
|
|
158
158
|
saveCacheFlag = true;
|
|
159
159
|
}
|
|
160
160
|
try {
|
|
161
|
-
|
|
162
|
-
(0, debugLog_1.debugLog)('Saving cache to file:', filePath);
|
|
161
|
+
// debugLog('Saving cache to file:', filePath)
|
|
163
162
|
removePromisesAndFunctions(fileData);
|
|
164
163
|
_fs.writeFileSync(filePath, JSON.stringify(fileData));
|
|
165
164
|
}
|
|
@@ -169,7 +168,6 @@ function getTempLocalCache({ file, defaultData = {}, clearAfter = exports.ONE_WE
|
|
|
169
168
|
}
|
|
170
169
|
catch (error) { }
|
|
171
170
|
}
|
|
172
|
-
process.exit(0);
|
|
173
171
|
}
|
|
174
172
|
function removePromisesAndFunctions(data) {
|
|
175
173
|
if (typeof data === 'object') {
|