@hachej/boring-core 0.1.0 → 0.1.5

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.
@@ -58,9 +58,11 @@ var FRONTEND_AUTH_PAGES = /* @__PURE__ */ new Set([
58
58
  "/auth/signup",
59
59
  "/auth/forgot-password",
60
60
  "/auth/reset-password",
61
- "/auth/verify-email",
62
61
  "/auth/callback/github"
63
62
  ]);
63
+ var FRONTEND_AUTH_PAGES_SPA_ONLY = /* @__PURE__ */ new Set([
64
+ "/auth/verify-email"
65
+ ]);
64
66
  function contentType(filePath) {
65
67
  const ext = path.extname(filePath).toLowerCase();
66
68
  return MIME_TYPES[ext] ?? "application/octet-stream";
@@ -168,6 +170,7 @@ function shouldServeFrontend(pathname) {
168
170
  if (pathname === "/health") return false;
169
171
  if (pathname.startsWith("/api/")) return false;
170
172
  if (FRONTEND_AUTH_PAGES.has(pathname)) return true;
173
+ if (FRONTEND_AUTH_PAGES_SPA_ONLY.has(pathname)) return true;
171
174
  if (pathname === "/auth") return false;
172
175
  if (pathname.startsWith("/auth/")) return false;
173
176
  return true;
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@hachej/boring-core",
3
- "version": "0.1.0",
3
+ "version": "0.1.5",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Foundation package for boring-ui-v2 apps: DB, auth, config, HTTP app factory, and frontend app shell.",
7
7
  "repository": {
8
8
  "type": "git",
9
- "url": "https://github.com/hachej/boring-ui.git"
9
+ "url": "https://github.com/hachej/boring-ui"
10
10
  },
11
11
  "homepage": "https://github.com/hachej/boring-ui",
12
12
  "exports": {
@@ -78,9 +78,9 @@
78
78
  "react-router-dom": "^7.14.2",
79
79
  "smol-toml": "^1.6.1",
80
80
  "zod": "^3.25.76",
81
- "@hachej/boring-ui-kit": "0.1.0",
82
- "@hachej/boring-workspace": "0.1.0",
83
- "@hachej/boring-agent": "0.1.0"
81
+ "@hachej/boring-ui-kit": "0.1.5",
82
+ "@hachej/boring-agent": "0.1.5",
83
+ "@hachej/boring-workspace": "0.1.5"
84
84
  },
85
85
  "devDependencies": {
86
86
  "@testing-library/jest-dom": "^6.9.1",