From 267373a7877ee0cc52a7cf7a1ead5fc3acb6ab56 Mon Sep 17 00:00:00 2001 From: Daniel Lugo Date: Sat, 25 Jan 2020 12:51:27 -0400 Subject: [PATCH] folder for utils --- .../contact-api/{utils.js => utils/index.js} | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) rename services/gunDB/contact-api/{utils.js => utils/index.js} (93%) diff --git a/services/gunDB/contact-api/utils.js b/services/gunDB/contact-api/utils/index.js similarity index 93% rename from services/gunDB/contact-api/utils.js rename to services/gunDB/contact-api/utils/index.js index d24173c0..9993f137 100644 --- a/services/gunDB/contact-api/utils.js +++ b/services/gunDB/contact-api/utils/index.js @@ -1,13 +1,13 @@ /** * @format */ -const ErrorCode = require('./errorCode') -const Key = require('./key') +const ErrorCode = require('../errorCode') +const Key = require('../key') /** - * @typedef {import('./SimpleGUN').GUNNode} GUNNode - * @typedef {import('./SimpleGUN').ISEA} ISEA - * @typedef {import('./SimpleGUN').UserGUNNode} UserGUNNode + * @typedef {import('../SimpleGUN').GUNNode} GUNNode + * @typedef {import('../SimpleGUN').ISEA} ISEA + * @typedef {import('../SimpleGUN').UserGUNNode} UserGUNNode */ /** @@ -41,8 +41,8 @@ const timeout10 = promise => { const tryAndWait = promGen => timeout10( promGen( - require('../Mediator/index').getGun(), - require('../Mediator/index').getUser() + require('../../Mediator/index').getGun(), + require('../../Mediator/index').getUser() ) ) @@ -266,8 +266,8 @@ const asyncFilter = async (arr, cb) => { } /** - * @param {import('./SimpleGUN').ListenerData} listenerData - * @returns {listenerData is import('./SimpleGUN').ListenerObj} + * @param {import('../SimpleGUN').ListenerData} listenerData + * @returns {listenerData is import('../SimpleGUN').ListenerObj} */ const dataHasSoul = listenerData => typeof listenerData === 'object' && listenerData !== null