@micacms/editor 0.3.0 → 0.4.1

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/README.md CHANGED
@@ -12,7 +12,7 @@ Host allowlist are what make that safe.
12
12
  localhost:6422
13
13
  │
14
14
  ▼
15
- Hono ── /api/* /admin/* /health
15
+ Hono ── /api/* /admin/* /health /ready
16
16
  │ │
17
17
  connector Vue SPA (from @micacms/editor-ui)
18
18
  │
package/dist/guards.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * to names that are this machine.
11
11
  *
12
12
  * Smaller than what it replaces, standard for exactly this, and applied in
13
- * front of everything, /health included.
13
+ * front of everything, the health endpoints included.
14
14
  */
15
15
  import type { MiddlewareHandler } from "hono";
16
16
  import type { Env } from "@micacms/runtime";
package/dist/guards.js CHANGED
@@ -10,7 +10,7 @@
10
10
  * to names that are this machine.
11
11
  *
12
12
  * Smaller than what it replaces, standard for exactly this, and applied in
13
- * front of everything, /health included.
13
+ * front of everything, the health endpoints included.
14
14
  */
15
15
  const ALLOWED = new Set(["localhost", "127.0.0.1", "[::1]", "::1"]);
16
16
  /** The hostname part of a Host header, brackets kept for IPv6. */
@@ -28,7 +28,7 @@ export function hostGuard() {
28
28
  return c.text("This is a local Mica editor. It answers only to this machine —\n" +
29
29
  `"${host}" is not it.\n\n` +
30
30
  "To let other people edit, deploy @micacms/self-hosted with an identity\n" +
31
- "provider: https://github.com/amuedespacher/micacms/blob/main/docs/self-hosting.md\n", 403);
31
+ "provider: https://github.com/micacms/mica/blob/main/docs/self-hosting.md\n", 403);
32
32
  }
33
33
  await next();
34
34
  };
@@ -1 +1 @@
1
- {"version":3,"file":"guards.js","sourceRoot":"","sources":["../src/guards.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,WAAW,EAAE,WAAW,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;A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AO,CAAC,GAAG,CAAC,CAAC;QAChC,OAAO,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;IACrD,CAAC;IACD,OAAO,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;AACpC,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,EAAE;QACvB,MAAM,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QAExC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC,WAAW,EAAE,CAAC,EAAE,CAAC;YACjD,OAAO,CAAC,CAAC,IAAI,CACX,kEAAkE;gBAChE,IAAI,IAAI,kBAAkB;gBAC1B,0EAA0E;gBAC1E,4EAA4E,EAC9E,GAAG,CACJ,CAAC;QACJ,CAAC;QAED,MAAM,IAAI,EAAE,CAAC;IACf,CAAC,CAAC;AACJ,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@micacms/editor",
3
- "version": "0.3.0",
3
+ "version": "0.4.1",
4
4
  "type": "module",
5
5
  "description": "The local Mica editor — `npx @micacms/editor` against a checkout on your own machine. No authentication, no database, loopback only.",
6
6
  "license": "MIT",
@@ -21,12 +21,12 @@
21
21
  "README.md"
22
22
  ],
23
23
  "dependencies": {
24
- "hono": "^4.6.20",
24
+ "hono": "^4.13.7",
25
25
  "zod": "^4.3.6",
26
- "@micacms/connectors": "0.3.0",
27
- "@micacms/runtime": "0.3.0",
28
- "@micacms/editor-ui": "0.3.0",
29
- "@micacms/core": "0.3.0"
26
+ "@micacms/connectors": "0.4.1",
27
+ "@micacms/core": "0.4.1",
28
+ "@micacms/editor-ui": "0.4.1",
29
+ "@micacms/runtime": "0.4.1"
30
30
  },
31
31
  "devDependencies": {
32
32
  "@types/node": "^22.20.1",