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