Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/verified-fetch/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@
"@helia/interface": "^5.3.1",
"@helia/ipns": "^8.2.2",
"@helia/routers": "^3.1.1",
"@helia/unixfs": "^5.0.2",
"@helia/unixfs": "^5.1.0",
"@ipld/car": "^5.4.2",
"@ipld/dag-cbor": "^9.2.3",
"@ipld/dag-json": "^10.2.4",
Expand All @@ -187,7 +187,7 @@
"helia": "^5.4.1",
"interface-blockstore": "^5.3.1",
"interface-datastore": "^8.3.1",
"ipfs-unixfs-exporter": "^13.6.2",
"ipfs-unixfs-exporter": "^13.7.2",
"ipns": "^10.0.2",
"it-map": "^3.1.3",
"it-pipe": "^3.0.1",
Expand All @@ -211,7 +211,7 @@
"browser-readablestream-to-it": "^2.0.9",
"datastore-core": "^10.0.2",
"helia": "^5.4.1",
"ipfs-unixfs-importer": "^15.3.2",
"ipfs-unixfs-importer": "^15.4.0",
"it-all": "^3.0.8",
"it-last": "^3.0.8",
"it-to-buffer": "^4.0.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ export class DagPbPlugin extends BasePlugin {
context.modified++
this.log.trace('attempting to get directory entries because index.html was not found')
try {
for await (const dirItem of fs.ls(dirCid, { signal: options?.signal, onProgress: options?.onProgress })) {
for await (const dirItem of fs.ls(dirCid, { signal: options?.signal, onProgress: options?.onProgress, extended: false })) {
context.directoryEntries.push(dirItem)
}
// dir-index-html plugin or dir-index-json (future idea?) plugin should handle this
Expand Down
2 changes: 1 addition & 1 deletion packages/verified-fetch/src/utils/dir-index-html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ export const dirIndexHtml = (dir: UnixFSEntry, items: UnixFSEntry[], { gatewayUR
},
listing: items.map((item) => {
return {
size: item.size.toString(),
size: item.size?.toString() ?? '?',
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we no longer have the sizes.. we will need to either fetch them with stat or decide on a better default.

name: item.name,
path: getItemPath(item),
hash: item.cid.toString(),
Expand Down
Loading