This repository was archived by the owner on Sep 28, 2021. It is now read-only.
File tree 2 files changed +5
-4
lines changed
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')
6
6
const log = debug ( 'jsipfs:http:response:resolver' )
7
7
log . error = debug ( 'jsipfs:http:response:resolver:error' )
8
8
const dirView = require ( './dir-view' )
9
- const pTryEeach = require ( './utils/p-try-each' )
9
+ const pTryEach = require ( './utils/p-try-each' )
10
10
11
11
const INDEX_HTML_FILES = [
12
12
'index.html' ,
@@ -15,7 +15,7 @@ const INDEX_HTML_FILES = [
15
15
]
16
16
17
17
const findIndexFile = ( ipfs , path ) => {
18
- return pTryEeach ( INDEX_HTML_FILES . map ( file => {
18
+ return pTryEach ( INDEX_HTML_FILES . map ( file => {
19
19
return async ( ) => {
20
20
const stats = await ipfs . files . stat ( `${ path } /${ file } ` )
21
21
@@ -28,6 +28,7 @@ const findIndexFile = (ipfs, path) => {
28
28
}
29
29
30
30
const directory = async ( ipfs , path , cid ) => {
31
+ // Test if it is a Website
31
32
try {
32
33
const res = await findIndexFile ( ipfs , path )
33
34
Original file line number Diff line number Diff line change 1
1
'use strict'
2
2
3
- const pTryEeach = async ( iterable ) => {
3
+ const pTryEach = async ( iterable ) => {
4
4
let error
5
5
6
6
for ( const element of iterable ) {
@@ -22,4 +22,4 @@ const pTryEeach = async (iterable) => {
22
22
throw error
23
23
}
24
24
25
- module . exports = pTryEeach
25
+ module . exports = pTryEach
You can’t perform that action at this time.
0 commit comments