@syncular/server-hono 0.15.43 → 0.15.45
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/dist/admin-page.d.ts +2 -2
- package/dist/admin-page.js +2 -2
- package/dist/admin.d.ts +1 -1
- package/dist/admin.js +2 -2
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
- package/src/admin-page.ts +2 -2
- package/src/admin.ts +2 -2
- package/src/index.ts +1 -1
package/dist/admin-page.d.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The single static console page
|
|
2
|
+
* The single static console page. Zero framework, no build
|
|
3
3
|
* step, ~one file: it fetches the sibling JSON endpoints (relative to its
|
|
4
4
|
* own mount path), renders tables, and offers an auto-refresh toggle —
|
|
5
5
|
* 5% of the code a full console app would cost, the 80% operator value.
|
|
6
6
|
*
|
|
7
|
-
* Styling follows docs/
|
|
7
|
+
* Styling follows docs/STYLE.md: everything
|
|
8
8
|
* monospace, pure black, a single amber accent, 1px borders, sharp
|
|
9
9
|
* corners, bracketed labels, inverse-video hover. The page ships as one
|
|
10
10
|
* self-contained string, so it uses the system mono fallback stack.
|
package/dist/admin-page.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The single static console page
|
|
2
|
+
* The single static console page. Zero framework, no build
|
|
3
3
|
* step, ~one file: it fetches the sibling JSON endpoints (relative to its
|
|
4
4
|
* own mount path), renders tables, and offers an auto-refresh toggle —
|
|
5
5
|
* 5% of the code a full console app would cost, the 80% operator value.
|
|
6
6
|
*
|
|
7
|
-
* Styling follows docs/
|
|
7
|
+
* Styling follows docs/STYLE.md: everything
|
|
8
8
|
* monospace, pure black, a single amber accent, 1px borders, sharp
|
|
9
9
|
* corners, bracketed labels, inverse-video hover. The page ships as one
|
|
10
10
|
* self-contained string, so it uses the system mono fallback stack.
|
package/dist/admin.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Admin / console HTTP surface
|
|
2
|
+
* Admin / console HTTP surface: a mountable Hono sub-app over a
|
|
3
3
|
* `SyncularAdmin`. JSON endpoints mirror the read surface; a single static
|
|
4
4
|
* HTML page (zero framework, no build step) at `GET /` renders them.
|
|
5
5
|
*
|
package/dist/admin.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Admin / console HTTP surface
|
|
2
|
+
* Admin / console HTTP surface: a mountable Hono sub-app over a
|
|
3
3
|
* `SyncularAdmin`. JSON endpoints mirror the read surface; a single static
|
|
4
4
|
* HTML page (zero framework, no build step) at `GET /` renders them.
|
|
5
5
|
*
|
|
@@ -32,7 +32,7 @@ function intParam(value, fallback) {
|
|
|
32
32
|
*/
|
|
33
33
|
export function createSyncularAdminRoutes(admin, options) {
|
|
34
34
|
if (typeof options.authorize !== 'function') {
|
|
35
|
-
throw new Error('createSyncularAdminRoutes: an `authorize` guard is required — admin never mounts default-open
|
|
35
|
+
throw new Error('createSyncularAdminRoutes: an `authorize` guard is required — admin never mounts default-open');
|
|
36
36
|
}
|
|
37
37
|
const app = new Hono();
|
|
38
38
|
/** Resolve the request's partition (query, else default) — required. */
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hono adapter
|
|
2
|
+
* Hono adapter: a thin wrapper proving the embed boundary.
|
|
3
3
|
* Hono is a dependency of this adapter only, never of the server core.
|
|
4
4
|
* Mounts the §1.1 routes: POST /sync and GET /segments/:segmentId
|
|
5
5
|
* (realtime upgrades are runtime-specific and stay with the host).
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hono adapter
|
|
2
|
+
* Hono adapter: a thin wrapper proving the embed boundary.
|
|
3
3
|
* Hono is a dependency of this adapter only, never of the server core.
|
|
4
4
|
* Mounts the §1.1 routes: POST /sync and GET /segments/:segmentId
|
|
5
5
|
* (realtime upgrades are runtime-specific and stay with the host).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/server-hono",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.45",
|
|
4
4
|
"description": "Hono adapter for the Syncular sync server",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -45,10 +45,10 @@
|
|
|
45
45
|
"!dist/**/*.test.d.ts"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncular/server": "0.15.
|
|
48
|
+
"@syncular/server": "0.15.45",
|
|
49
49
|
"hono": "^4.11.0"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@syncular/core": "0.15.
|
|
52
|
+
"@syncular/core": "0.15.45"
|
|
53
53
|
}
|
|
54
54
|
}
|
package/src/admin-page.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The single static console page
|
|
2
|
+
* The single static console page. Zero framework, no build
|
|
3
3
|
* step, ~one file: it fetches the sibling JSON endpoints (relative to its
|
|
4
4
|
* own mount path), renders tables, and offers an auto-refresh toggle —
|
|
5
5
|
* 5% of the code a full console app would cost, the 80% operator value.
|
|
6
6
|
*
|
|
7
|
-
* Styling follows docs/
|
|
7
|
+
* Styling follows docs/STYLE.md: everything
|
|
8
8
|
* monospace, pure black, a single amber accent, 1px borders, sharp
|
|
9
9
|
* corners, bracketed labels, inverse-video hover. The page ships as one
|
|
10
10
|
* self-contained string, so it uses the system mono fallback stack.
|
package/src/admin.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Admin / console HTTP surface
|
|
2
|
+
* Admin / console HTTP surface: a mountable Hono sub-app over a
|
|
3
3
|
* `SyncularAdmin`. JSON endpoints mirror the read surface; a single static
|
|
4
4
|
* HTML page (zero framework, no build step) at `GET /` renders them.
|
|
5
5
|
*
|
|
@@ -67,7 +67,7 @@ export function createSyncularAdminRoutes(
|
|
|
67
67
|
): Hono {
|
|
68
68
|
if (typeof options.authorize !== 'function') {
|
|
69
69
|
throw new Error(
|
|
70
|
-
'createSyncularAdminRoutes: an `authorize` guard is required — admin never mounts default-open
|
|
70
|
+
'createSyncularAdminRoutes: an `authorize` guard is required — admin never mounts default-open',
|
|
71
71
|
);
|
|
72
72
|
}
|
|
73
73
|
const app = new Hono();
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Hono adapter
|
|
2
|
+
* Hono adapter: a thin wrapper proving the embed boundary.
|
|
3
3
|
* Hono is a dependency of this adapter only, never of the server core.
|
|
4
4
|
* Mounts the §1.1 routes: POST /sync and GET /segments/:segmentId
|
|
5
5
|
* (realtime upgrades are runtime-specific and stay with the host).
|