This repository was archived by the owner on Sep 28, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Expand file tree Collapse file tree 2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ const debug = require('debug')
66const log = debug ( 'jsipfs:http:response:resolver' )
77log . error = debug ( 'jsipfs:http:response:resolver:error' )
88const dirView = require ( './dir-view' )
9- const pTryEeach = require ( './utils/p-try-each' )
9+ const pTryEach = require ( './utils/p-try-each' )
1010
1111const INDEX_HTML_FILES = [
1212 'index.html' ,
@@ -15,7 +15,7 @@ const INDEX_HTML_FILES = [
1515]
1616
1717const findIndexFile = ( ipfs , path ) => {
18- return pTryEeach ( INDEX_HTML_FILES . map ( file => {
18+ return pTryEach ( INDEX_HTML_FILES . map ( file => {
1919 return async ( ) => {
2020 const stats = await ipfs . files . stat ( `${ path } /${ file } ` )
2121
@@ -28,6 +28,7 @@ const findIndexFile = (ipfs, path) => {
2828}
2929
3030const directory = async ( ipfs , path , cid ) => {
31+ // Test if it is a Website
3132 try {
3233 const res = await findIndexFile ( ipfs , path )
3334
Original file line number Diff line number Diff line change 11'use strict'
22
3- const pTryEeach = async ( iterable ) => {
3+ const pTryEach = async ( iterable ) => {
44 let error
55
66 for ( const element of iterable ) {
@@ -22,4 +22,4 @@ const pTryEeach = async (iterable) => {
2222 throw error
2323}
2424
25- module . exports = pTryEeach
25+ module . exports = pTryEach
You can’t perform that action at this time.
0 commit comments