src/utils/skynet-ops.js
// Reads data from MySky scope.
Reads data from MySky scope.
Reads data from MySky scope .
async function readJsonFromMySky(mySkyInstance, filePath) {
    try {
        const res = await mySkyInstance.getJSON(filePath);
        console.debug(`Reading JSON from MySky:\n\tfilePath=${filePath}\n\t->res=${JSON.stringify(res)}`);
        return res;
    } catch (e) {
        console.error(`Error reading JSON from MySky: ${e.message}`);
    }
}
async function readJsonFromMySky ( mySkyInstance , filePath ) { try { const res = await mySkyInstance . getJSON ( filePath ) ; console . debug ( ` \n \t ${ filePath } \n \t ${ JSON . stringify ( res ) } ` ) ; return res ; } catch ( e ) { console . error ( ` ${ e . message } ` ) ; } }
Reads data from MySky scope.
Reads data from MySky scope .