@timber-js/app 0.2.0-alpha.106 → 0.2.0-alpha.108

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.
package/LICENSE ADDED
@@ -0,0 +1,8 @@
1
+ DONTFUCKINGUSE LICENSE
2
+
3
+ Copyright (c) 2025 Daniel Saewitz
4
+
5
+ This software may not be used, copied, modified, merged, published,
6
+ distributed, sublicensed, or sold by anyone other than the copyright holder.
7
+
8
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND.
@@ -1869,6 +1869,7 @@ async function handleRequest(config, req, method, path) {
1869
1869
  }
1870
1870
  }
1871
1871
  let match = config.matchRoute(canonicalPathname);
1872
+ if (process.env.NODE_ENV !== "production") console.error(`[timber:route-debug] pathname=${canonicalPathname} matched=${!!match}` + (match ? ` segments=[${match.segments.map((s) => s.segmentName).join(" → ")}] leaf-has-page=${!!match.segments[match.segments.length - 1]?.page}` : ""));
1872
1873
  let interception;
1873
1874
  const sourceUrl = req.headers.get("X-Timber-URL");
1874
1875
  if (sourceUrl && config.interceptionRewrites?.length) {