From f984b7a8ccb3a3afd7f1aa103f5f42484a7599a7 Mon Sep 17 00:00:00 2001 From: cjamesb Date: Thu, 19 Aug 2021 04:33:20 -0700 Subject: [PATCH 1/2] removed index.js references --- clientMod.ts | 2 +- src/Obsidian.ts | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/clientMod.ts b/clientMod.ts index cf139d5..a028f44 100644 --- a/clientMod.ts +++ b/clientMod.ts @@ -2,6 +2,6 @@ import { ObsidianWrapper, useObsidian, } from './ObsidianWrapper/ObsidianWrapper.jsx'; -import BrowserCache from './src/Browser/CacheClassBrowser.js/index.js'; +import BrowserCache from './src/Browser/CacheClassBrowser.js/'; export { BrowserCache, ObsidianWrapper, useObsidian }; diff --git a/src/Obsidian.ts b/src/Obsidian.ts index 8c21aaf..22f21c2 100644 --- a/src/Obsidian.ts +++ b/src/Obsidian.ts @@ -66,7 +66,7 @@ export async function ObsidianRouter({ maxQueryDepth = 0, useQueryCache = true, useRebuildCache = true, - customIdentifier = ["id", "__typename"] + customIdentifier = ["id", "__typename"], }: ObsidianRouterOptions): Promise { redisPortExport = redisPort; const router = new Router(); @@ -216,11 +216,14 @@ export async function ObsidianRouter({ await cachePrimaryFields(normalized, body.query, map) + + } var t1 = performance.now(); console.log( '%c Obsidian received new data and took ' + (t1 - t0) + ' milliseconds', 'background: #222; color: #FFFF00' ); + return; } catch (error) { response.status = 200; From 817579f20c26d9810bab74b4a78928f6162411bf Mon Sep 17 00:00:00 2001 From: cjamesb Date: Thu, 19 Aug 2021 04:41:30 -0700 Subject: [PATCH 2/2] removed index.js --- ObsidianWrapper/ObsidianWrapper.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ObsidianWrapper/ObsidianWrapper.jsx b/ObsidianWrapper/ObsidianWrapper.jsx index af331e3..b424d7b 100644 --- a/ObsidianWrapper/ObsidianWrapper.jsx +++ b/ObsidianWrapper/ObsidianWrapper.jsx @@ -1,6 +1,6 @@ import React from 'https://dev.jspm.io/react'; -import Cache from '../src/Browser/CacheClassBrowser.js/index.js'; -import { insertTypenames } from '../src/Browser/insertTypenames.js/index.js'; +import Cache from '../src/Browser/CacheClassBrowser.js'; +import { insertTypenames } from '../src/Browser/insertTypenames.js'; const cacheContext = React.createContext();