dnslink-ipfs: minor improvements (ref. #61)

merge-requests/15/head
Michał 'rysiek' Woźniak 2022-10-18 00:09:41 +00:00
rodzic 51c3ec7b3c
commit 996953a10a
1 zmienionych plików z 6 dodań i 3 usunięć

Wyświetl plik

@ -108,9 +108,12 @@
case 'ico':
contentType = 'image/x-icon';
break;
case 'json':
contentType = 'application/json';
break;
}
console.log(" +-- guessed contentType : " + contentType);
LR.log(pluginName, " +-- guessed contentType : " + contentType);
// TODO: error handling!
return ipfs.name.resolve('/ipns/' + dnslinkAddr).next().then(ipfsaddr => {
@ -176,7 +179,7 @@
* TODO: to be implemented
*/
let publishContent = (resource, user, password) => {
return new Error("Not implemented yet.")
throw new Error("Not implemented yet.")
}
/* ========================================================================= *\