@sigil-dev/grimoire 0.9.32 → 0.10.0

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/bin/sigil.ts CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env bun
1
+ #!/usr/bin/env bun
2
2
  // `sigil`, installed with grimoire: an app depends on grimoire alone and
3
3
  // still gets the command. The CLI itself lives in @sigil-dev/cli.
4
4
  import "@sigil-dev/cli/src/index.ts";
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "module": "index.ts",
12
12
  "type": "module",
13
13
  "private": false,
14
- "version": "0.9.32",
14
+ "version": "0.10.0",
15
15
  "bin": {
16
16
  "sigil": "bin/sigil.ts"
17
17
  },
@@ -32,15 +32,16 @@
32
32
  "./adapters/bun": "./src/adapters/bun.ts",
33
33
  "./testing": "./src/testing/index.ts",
34
34
  "./testing/dom": "./src/testing/dom.ts",
35
- "./testing/server": "./src/testing/server.ts"
35
+ "./testing/server": "./src/testing/server.ts",
36
+ "./testing/server-preload": "./src/testing/server-preload.ts"
36
37
  },
37
38
  "scripts": {
38
39
  "test": "bun test"
39
40
  },
40
41
  "dependencies": {
41
- "@sigil-dev/cli": "0.9.32",
42
- "@sigil-dev/compiler": "0.9.32",
43
- "@sigil-dev/runtime": "0.9.32"
42
+ "@sigil-dev/cli": "0.10.0",
43
+ "@sigil-dev/compiler": "0.10.0",
44
+ "@sigil-dev/runtime": "0.10.0"
44
45
  },
45
46
  "peerDependencies": {
46
47
  "typescript": "^5",
@@ -15,7 +15,7 @@ export const CSRF_FIELD = "_csrf";
15
15
 
16
16
  function cookieToken(): string | null {
17
17
  const m = /(?:^|;\s*)_csrf=([^;]+)/.exec(document.cookie);
18
- return m ? decodeURIComponent(m[1]) : null;
18
+ return m?.[1] ? decodeURIComponent(m[1]) : null;
19
19
  }
20
20
 
21
21
  export function ensureCsrf(form: HTMLFormElement): void {