Compare commits

...

3 commits

Author SHA1 Message Date
Cat /dev/Nulo 141c2a02bf Correct path based resolution count
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
2022-11-25 20:11:22 -03:00
Cat /dev/Nulo 550974ef4b ci: be quieter 2022-11-25 20:10:42 -03:00
Cat /dev/Nulo 725fc81e2a Count files properly 2022-11-25 20:10:26 -03:00
2 changed files with 6 additions and 4 deletions

View file

@ -5,10 +5,10 @@ pipeline:
- echo "172.17.0.1 npm.proxy.coso alpine.proxy.coso" >> /etc/hosts
- echo "http://alpine.proxy.coso/alpine/v3.17/main" > /etc/apk/repositories
- echo "http://alpine.proxy.coso/alpine/v3.17/community" >> /etc/apk/repositories
- apk add curl nodejs npm git git-lfs tar zstd
- apk add --quiet curl nodejs npm git git-lfs tar zstd
- curl -fsSL "https://github.com/pnpm/pnpm/releases/latest/download/pnpm-linuxstatic-x64" -o /bin/pnpm; chmod +x /bin/pnpm
- pnpm set registry http://npm.proxy.coso
- pnpm install --prod
- pnpm install --prod --silent
- git clone https://gitea.nulo.in/Nulo/site-analyzer-demos
- cd site-analyzer-demos

View file

@ -125,7 +125,9 @@ const totalThings = Object.values(reports)
.flat();
const kinds = new Set(totalThings.map((t) => t.type));
console.log(
`Finished with ${reports.length} files read, ${totalThings.length} things`
`Finished with ${Object.keys(reports).length} files read, ${
totalThings.length
} things`
);
for (const kind of kinds) {
const count = totalThings.filter((t) => t.type === kind).length;
@ -133,7 +135,7 @@ for (const kind of kinds) {
}
console.log("This means:");
const pathBasedCount = totalThings.filter((t) =>
["media-absolute", "media-http"].includes(t.type)
["media-absolute", "link-absolute"].includes(t.type)
).length;
console.log(
`==> ${pathBasedCount} problems that affect users using legacy IPFS gateways`