You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 3, 2019. It is now read-only.
I noticed, that after the cache is verified the index of the cached item loses the size field.
Here's how to reproduce it:
constcacache=require('cacache');constdata='Le test data.';constcachePath='./tmp-test/';constkey='my-key';asyncfunctioncacheTest(){try{awaitcacache.put(cachePath,key,data);constentryBeforeVerify=awaitcacache.get(cachePath,key);console.log(entryBeforeVerify.size);awaitcacache.verify(cachePath);constentryAfterVerify=awaitcacache.get(cachePath,key);console.log(entryAfterVerify.size);}catch(e){console.error(e);}}cacheTest();
Hello!
I noticed, that after the cache is verified the index of the cached item loses the
size
field.Here's how to reproduce it:
Details:
If I'm not mistaken, looks like it should be fixed here: https://github.com/zkat/cacache/blob/latest/lib/verify.js#L197
I can open a PR and fix it and add a test as well if thats OK with you.
The text was updated successfully, but these errors were encountered: