@sigil-dev/grimoire 0.9.6 → 0.9.7
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/.grimoire/_routes.ts +4 -0
- package/README.md +174 -174
- package/package.json +3 -3
- package/public/__grimoire__/client.js +55 -0
- package/public/__grimoire__/hydrate.js +63 -0
- package/src/client/csrf.ts +47 -0
- package/src/client/enhance.ts +5 -0
- package/src/client/router.ts +622 -619
- package/src/rendering/hydrate.ts +159 -159
- package/src/rendering/index.ts +599 -599
- package/src/routing/scanner.ts +1 -1
- package/src/server/coordinator.ts +376 -364
- package/src/server/index.ts +723 -718
- package/test/client-csrf.test.ts +61 -0
- package/test/client-router.test.ts +366 -366
- package/test/streaming.test.ts +281 -281
package/src/routing/scanner.ts
CHANGED
|
@@ -116,7 +116,7 @@ export async function scanRoutes(
|
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
for await (const file of glob.scan(routesDir)) {
|
|
119
|
+
for await (const file of glob.scan({ cwd: routesDir, dot: true })) {
|
|
120
120
|
const filePath = join(routesDir, file);
|
|
121
121
|
const name = basename(file).replace(/\.(tsx?|jsx?)$/, "");
|
|
122
122
|
const { pattern, params, optionalParams, restParams, paramMatchers } =
|