Compare commits
3 commits
a852fa7998
...
141c2a02bf
Author | SHA1 | Date | |
---|---|---|---|
141c2a02bf | |||
550974ef4b | |||
725fc81e2a |
2 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
|
|
6
index.js
6
index.js
|
@ -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`
|
||||
|
|
Loading…
Reference in a new issue