From f521ed23eb6426f82749ee41ab3d45985eca7e1a Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Wed, 21 Jun 2023 21:31:21 -0400 Subject: [PATCH] cleanup console logs --- hmr-react.tsx | 2 -- run-local.tsx | 4 ++-- run-serve.tsx | 6 +----- 3 files changed, 3 insertions(+), 9 deletions(-) diff --git a/hmr-react.tsx b/hmr-react.tsx index a978c26..b47bb8a 100644 --- a/hmr-react.tsx +++ b/hmr-react.tsx @@ -68,7 +68,6 @@ const ProxyState =(argNew:StateType)=> // this is a switch/ui change, not a HMR reload change const oldState = MapIndex(HMR.statesOld, HMR.statesNew.size-1); oldState && HMR.statesOld.set(oldState[0], {...oldState[1], state:argNew}); - console.log("check: ui-invoked") } HMR.statesNew.delete(id); @@ -112,7 +111,6 @@ const ProxyReducer =(inReducer:(inState:Storelike, inAction:string)=>Storelike, const capture = inReducer(inInterceptState, inInterceptAction); const stateUser = {state:capture, set:()=>{}, reload:HMR.reloads}; HMR.statesNew.set(id, stateUser); - console.log("interepted reducer", stateUser); return capture; }; diff --git a/run-local.tsx b/run-local.tsx index 43e5c1e..abc92b8 100644 --- a/run-local.tsx +++ b/run-local.tsx @@ -1,7 +1,7 @@ import {Configure, Transpile, Extension} from "./run-serve.tsx"; const SocketsLive:Set = new Set(); -const SocketsSend =(inData:string)=>{ console.log(inData); for (const socket of SocketsLive){ socket.send(inData); } } +const SocketsSend =(inData:string)=>{ for (const socket of SocketsLive){ socket.send(inData); } } Configure({ SWCOp: @@ -97,4 +97,4 @@ const Watcher =async()=> } } -Watcher().then(()=>console.log("done watching")); \ No newline at end of file +Watcher(); \ No newline at end of file diff --git a/run-serve.tsx b/run-serve.tsx index 99a456b..ef71716 100644 --- a/run-serve.tsx +++ b/run-serve.tsx @@ -52,7 +52,7 @@ let Configuration:Configuration = Proxy: new URL(`file://${Deno.cwd().replaceAll("\\", "/")}`).toString(), Allow: "*", Reset: "/clear-cache", - Serve(inReq, inURL, inExt, inMap, inProxy){}, + Serve(inReq, inURL, inExt, inMap, inConfig){}, Remap: (inImports, inConfig)=> { const reactURL = inImports["react"]; @@ -65,9 +65,6 @@ let Configuration:Configuration = }, Shell(inReq, inURL, inExt, inMap, inConfig) { - console.log("Start app:", Deno.mainModule, "start dir", inConfig.Proxy); - console.log("Split:", Deno.mainModule.split(inConfig.Proxy) ); - const parts = Deno.mainModule.split(inConfig.Proxy); return new Response( @@ -204,7 +201,6 @@ HTTP.serve(async(req: Request)=> { path = clipRoot + clipPath; } - console.log("transpiling", path); code = await Transpile.Fetch(path, url.pathname, true); } else