diff --git a/bin/publish_all.js b/bin/publish_all.js index 50a7f0dd..fa187403 100644 --- a/bin/publish_all.js +++ b/bin/publish_all.js @@ -133,6 +133,7 @@ async function publishAll() { const pkgName = pkgJson.name; const hash = computedHashes[pkgName]; + const previousData = previousDataMap[pkgName] || {}; const prevBuf = Buffer.from(previousData.hash || ''); const currBuf = Buffer.from(hash || ''); const isHashMatching = prevBuf.length === currBuf.length && crypto.timingSafeEqual(prevBuf, currBuf);