From 3c3dc7458bb5a23209d817a9bfbf1719944c5f96 Mon Sep 17 00:00:00 2001 From: thepassle Date: Thu, 4 Apr 2024 20:49:23 +0200 Subject: [PATCH 1/2] refactor: some refactoring --- packages/core/README.md | 44 ++++++++++++++++++++++--------- packages/core/demo/sw.js | 14 +++++----- packages/core/dev.js | 28 ++++++++++++-------- packages/core/index.js | 4 +++ packages/core/router.js | 6 ++--- packages/core/strategies.js | 28 +++++++++++--------- packages/core/test/router.test.js | 4 +-- packages/core/types.ts | 4 +-- 8 files changed, 83 insertions(+), 49 deletions(-) diff --git a/packages/core/README.md b/packages/core/README.md index a228748..528cc3c 100644 --- a/packages/core/README.md +++ b/packages/core/README.md @@ -28,7 +28,7 @@ const router = new Router({ routes: [ { path: '/', - render: ({url, params, query, request}) => html` + response: ({url, params, query, request}) => html` <${HtmlPage} title="Home">

Home