kempo-server 3.0.0 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. package/docs/{dist/caching.html → caching.html} +1 -0
  2. package/docs/{dist/cli-utils.html → cli-utils.html} +1 -0
  3. package/docs/{dist/configuration.html → configuration.html} +1 -0
  4. package/docs/{dist/examples.html → examples.html} +1 -0
  5. package/docs/{dist/fs-utils.html → fs-utils.html} +1 -0
  6. package/docs/{dist/getting-started.html → getting-started.html} +1 -0
  7. package/docs/{dist/index.html → index.html} +8 -2
  8. package/docs/{dist/middleware.html → middleware.html} +1 -0
  9. package/docs/{dist/request-response.html → request-response.html} +1 -0
  10. package/docs/{dist/routing.html → routing.html} +1 -0
  11. package/docs/{dist/templating.html → templating.html} +3 -2
  12. package/docs-src/.config.js +11 -0
  13. package/{docs/src → docs-src}/default.template.html +1 -0
  14. package/{docs/src → docs-src}/index.page.html +8 -2
  15. package/package.json +3 -3
  16. package/scripts/build.js +2 -2
  17. package/docs/src/.config.js +0 -11
  18. /package/docs/{dist/manifest.json → manifest.json} +0 -0
  19. /package/docs/{dist/media → media}/hexagon.svg +0 -0
  20. /package/docs/{dist/media → media}/icon-maskable.png +0 -0
  21. /package/docs/{dist/media → media}/icon.svg +0 -0
  22. /package/docs/{dist/media → media}/icon128.png +0 -0
  23. /package/docs/{dist/media → media}/icon144.png +0 -0
  24. /package/docs/{dist/media → media}/icon152.png +0 -0
  25. /package/docs/{dist/media → media}/icon16-48.svg +0 -0
  26. /package/docs/{dist/media → media}/icon16.png +0 -0
  27. /package/docs/{dist/media → media}/icon192.png +0 -0
  28. /package/docs/{dist/media → media}/icon256.png +0 -0
  29. /package/docs/{dist/media → media}/icon32.png +0 -0
  30. /package/docs/{dist/media → media}/icon384.png +0 -0
  31. /package/docs/{dist/media → media}/icon48.png +0 -0
  32. /package/docs/{dist/media → media}/icon512.png +0 -0
  33. /package/docs/{dist/media → media}/icon64.png +0 -0
  34. /package/docs/{dist/media → media}/icon72.png +0 -0
  35. /package/docs/{dist/media → media}/icon96.png +0 -0
  36. /package/docs/{dist/media → media}/kempo-fist.svg +0 -0
  37. /package/docs/{dist/theme.css → theme.css} +0 -0
  38. /package/{docs/src → docs-src}/caching.page.html +0 -0
  39. /package/{docs/src → docs-src}/cli-utils.page.html +0 -0
  40. /package/{docs/src → docs-src}/configuration.page.html +0 -0
  41. /package/{docs/src → docs-src}/examples.page.html +0 -0
  42. /package/{docs/src → docs-src}/fs-utils.page.html +0 -0
  43. /package/{docs/src → docs-src}/getting-started.page.html +0 -0
  44. /package/{docs/src → docs-src}/middleware.page.html +0 -0
  45. /package/{docs/src → docs-src}/nav.fragment.html +0 -0
  46. /package/{docs/src → docs-src}/request-response.page.html +0 -0
  47. /package/{docs/src → docs-src}/routing.page.html +0 -0
  48. /package/{docs/src → docs-src}/templating.page.html +0 -0
@@ -320,5 +320,6 @@
320
320
  type="module"
321
321
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
322
322
  ></script>
323
+
323
324
  </body>
324
325
  </html>
@@ -171,5 +171,6 @@
171
171
  type="module"
172
172
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
173
173
  ></script>
174
+
174
175
  </body>
175
176
  </html>
@@ -410,5 +410,6 @@
410
410
  type="module"
411
411
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
412
412
  ></script>
413
+
413
414
  </body>
414
415
  </html>
@@ -292,5 +292,6 @@
292
292
  type="module"
293
293
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
294
294
  ></script>
295
+
295
296
  </body>
296
297
  </html>
@@ -202,5 +202,6 @@ async function backupProject() {
202
202
  type="module"
203
203
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
204
204
  ></script>
205
+
205
206
  </body>
206
207
  </html>
@@ -163,5 +163,6 @@
163
163
  type="module"
164
164
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
165
165
  ></script>
166
+
166
167
  </body>
167
168
  </html>
@@ -98,7 +98,7 @@
98
98
  <h1 class="ta-center">Kempo Server</h1>
99
99
 
100
100
  <div class="ta-center">
101
- <p class="mb0">
101
+ <p>
102
102
  <a
103
103
  href="https://github.com/dustinpoissant/kempo-server"
104
104
  class="btn primary mr"
@@ -110,8 +110,9 @@
110
110
  target="_blank"
111
111
  >NPM</a>
112
112
  </p>
113
+ <p>A lightweight, zero-dependency, file based routing server.</p>
114
+ <p>Current Version: <code id="version">unknown</code></p>
113
115
  </div>
114
- <p>A lightweight, zero-dependency, file based routing server.</p>
115
116
 
116
117
  <nav class="b r mb p">
117
118
  <div class="row -mx">
@@ -179,5 +180,10 @@
179
180
  type="module"
180
181
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
181
182
  ></script>
183
+
184
+ <script type="module">
185
+ document.getElementById('version').innerHTML = (await(await fetch('https://raw.githubusercontent.com/dustinpoissant/kempo-server/refs/heads/main/package.json')).json()).version;
186
+ </script>
187
+
182
188
  </body>
183
189
  </html>
@@ -233,5 +233,6 @@
233
233
  type="module"
234
234
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
235
235
  ></script>
236
+
236
237
  </body>
237
238
  </html>
@@ -196,5 +196,6 @@
196
196
  type="module"
197
197
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
198
198
  ></script>
199
+
199
200
  </body>
200
201
  </html>
@@ -173,5 +173,6 @@
173
173
  type="module"
174
174
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
175
175
  ></script>
176
+
176
177
  </body>
177
178
  </html>
@@ -180,8 +180,8 @@
180
180
  <tr><td><code>./</code></td><td>Relative path from the page to the root directory (e.g. <code>./</code>, <code>../</code>, <code>../../</code>)</td></tr>
181
181
  <tr><td><code>2026</code></td><td>Current four-digit year</td></tr>
182
182
  <tr><td><code>2026-04-09</code></td><td>Current date in ISO format (<code>YYYY-MM-DD</code>)</td></tr>
183
- <tr><td><code>2026-04-09T19:04:45.132Z</code></td><td>Full ISO 8601 datetime string</td></tr>
184
- <tr><td><code>1775761485132</code></td><td>Unix timestamp in milliseconds</td></tr>
183
+ <tr><td><code>2026-04-09T19:19:47.187Z</code></td><td>Full ISO 8601 datetime string</td></tr>
184
+ <tr><td><code>1775762387187</code></td><td>Unix timestamp in milliseconds</td></tr>
185
185
  <tr><td><code></code></td><td>Version from the root <code>package.json</code></td></tr>
186
186
  <tr><td><code></code></td><td>Value of <code>NODE_ENV</code></td></tr>
187
187
  </tbody>
@@ -288,5 +288,6 @@
288
288
  type="module"
289
289
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
290
290
  ></script>
291
+
291
292
  </body>
292
293
  </html>
@@ -0,0 +1,11 @@
1
+ export default {
2
+ customRoutes: {
3
+ "media/*": "../docs/media/*",
4
+ "theme.css": "../docs/theme.css",
5
+ "manifest.json": "../docs/manifest.json"
6
+ },
7
+ templating: {
8
+ ssr: true,
9
+ ssrPriority: true
10
+ }
11
+ };
@@ -31,5 +31,6 @@
31
31
  type="module"
32
32
  src="https://cdn.jsdelivr.net/npm/kempo-ui@0.0.42/dist/components/Import.js"
33
33
  ></script>
34
+ <location name="scripts"></location>
34
35
  </body>
35
36
  </html>
@@ -1,7 +1,7 @@
1
1
  <page pageName="Kempo Server" title="Kempo Server">
2
2
  <content>
3
3
  <div class="ta-center">
4
- <p class="mb0">
4
+ <p>
5
5
  <a
6
6
  href="https://github.com/dustinpoissant/kempo-server"
7
7
  class="btn primary mr"
@@ -13,8 +13,9 @@
13
13
  target="_blank"
14
14
  >NPM</a>
15
15
  </p>
16
+ <p>A lightweight, zero-dependency, file based routing server.</p>
17
+ <p>Current Version: <code id="version">unknown</code></p>
16
18
  </div>
17
- <p>A lightweight, zero-dependency, file based routing server.</p>
18
19
 
19
20
  <nav class="b r mb p">
20
21
  <div class="row -mx">
@@ -76,4 +77,9 @@
76
77
  </div>
77
78
  </div>
78
79
  </content>
80
+ <content location="scripts">
81
+ <script type="module">
82
+ document.getElementById('version').innerHTML = (await(await fetch('https://raw.githubusercontent.com/dustinpoissant/kempo-server/refs/heads/main/package.json')).json()).version;
83
+ </script>
84
+ </content>
79
85
  </page>
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "kempo-server",
3
3
  "type": "module",
4
- "version": "3.0.0",
4
+ "version": "3.0.2",
5
5
  "description": "A lightweight, zero-dependency, file based routing server.",
6
6
  "exports": {
7
7
  "./rescan": "./dist/rescan.js",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "scripts": {
17
17
  "build": "node scripts/build.js",
18
- "docs": "node dist/index.js -r ./docs/dist",
19
- "docs-src": "node dist/index.js -r ./docs/src",
18
+ "docs": "node dist/index.js -r ./docs",
19
+ "docs-src": "node dist/index.js -r ./docs-src",
20
20
  "spa": "node dist/index.js -r ./spa",
21
21
  "test": "npx kempo-test",
22
22
  "test:gui": "npx kempo-test --gui",
package/scripts/build.js CHANGED
@@ -95,8 +95,8 @@ const build = async () => {
95
95
 
96
96
  // Render docs
97
97
  console.log('Rendering docs...');
98
- const docsSrcDir = join(rootDir, 'docs', 'src');
99
- const docsDistDir = join(rootDir, 'docs', 'dist');
98
+ const docsSrcDir = join(rootDir, 'docs-src');
99
+ const docsDistDir = join(rootDir, 'docs');
100
100
  const docsCount = await renderDir(docsSrcDir, docsDistDir);
101
101
  console.log(`✓ Rendered ${docsCount} doc pages`);
102
102
 
@@ -1,11 +0,0 @@
1
- export default {
2
- customRoutes: {
3
- "media/*": "../dist/media/*",
4
- "theme.css": "../dist/theme.css",
5
- "manifest.json": "../dist/manifest.json"
6
- },
7
- templating: {
8
- ssr: true,
9
- ssrPriority: true
10
- }
11
- };
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes