@zenweb/cache 4.2.0 → 4.2.1
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/CHANGELOG.md +3 -0
- package/dist/cache.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cache.js
CHANGED
|
@@ -122,7 +122,7 @@ class Cache {
|
|
|
122
122
|
if ((_opt === null || _opt === void 0 ? void 0 : _opt.parse) !== false) {
|
|
123
123
|
return obj;
|
|
124
124
|
}
|
|
125
|
-
return new CacheResult(!opt.decompress, !opt.decompress && result.compressed || Buffer.from(result.data));
|
|
125
|
+
return new CacheResult(!opt.decompress && Boolean(result.compressed), !opt.decompress && result.compressed || Buffer.from(result.data));
|
|
126
126
|
};
|
|
127
127
|
// 预刷新处理
|
|
128
128
|
const preRefresh = async () => {
|