@syncular/server-hono 0.33.0 → 0.35.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/dist/index.d.ts +2 -2
- package/package.json +3 -3
- package/src/index.ts +2 -1
package/dist/index.d.ts
CHANGED
|
@@ -4,13 +4,13 @@
|
|
|
4
4
|
* Mounts the §1.1 routes including sync, registered operations, segments, and
|
|
5
5
|
* blobs. Realtime upgrades are runtime-specific and stay with the host.
|
|
6
6
|
*/
|
|
7
|
-
import { type RemoteOperationRegistry, type SyncServerConfig } from '@syncular/server';
|
|
7
|
+
import { type RemoteOperationRegistry, type RemoteOperationResolver, type SyncServerConfig } from '@syncular/server';
|
|
8
8
|
import { Hono } from 'hono';
|
|
9
9
|
import { type SyncularAdminGuards } from './admin.js';
|
|
10
10
|
export * from './admin.js';
|
|
11
11
|
export interface SyncularHonoOptions {
|
|
12
12
|
readonly config: SyncServerConfig;
|
|
13
|
-
readonly operations?: RemoteOperationRegistry;
|
|
13
|
+
readonly operations?: RemoteOperationRegistry | RemoteOperationResolver;
|
|
14
14
|
/** Host authentication (§1.1); `null` ⇒ 401 `sync.auth_required`. */
|
|
15
15
|
readonly authenticate: (request: Request) => Promise<{
|
|
16
16
|
actorId: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/server-hono",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.35.0",
|
|
4
4
|
"description": "Hono adapter for the Syncular sync server",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -45,11 +45,11 @@
|
|
|
45
45
|
"!dist/**/*.test.d.ts"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@syncular/server": "0.
|
|
48
|
+
"@syncular/server": "0.35.0",
|
|
49
49
|
"hono": "^4.13.11"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
|
-
"@syncular/core": "0.
|
|
52
|
+
"@syncular/core": "0.35.0",
|
|
53
53
|
"happy-dom": "^20.0.0"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/src/index.ts
CHANGED
|
@@ -16,6 +16,7 @@ import {
|
|
|
16
16
|
openSegmentDownload,
|
|
17
17
|
handleRemoteOperation,
|
|
18
18
|
type RemoteOperationRegistry,
|
|
19
|
+
type RemoteOperationResolver,
|
|
19
20
|
handleSyncRequest,
|
|
20
21
|
RealtimeHub,
|
|
21
22
|
RingBufferEvents,
|
|
@@ -33,7 +34,7 @@ export * from './admin';
|
|
|
33
34
|
|
|
34
35
|
export interface SyncularHonoOptions {
|
|
35
36
|
readonly config: SyncServerConfig;
|
|
36
|
-
readonly operations?: RemoteOperationRegistry;
|
|
37
|
+
readonly operations?: RemoteOperationRegistry | RemoteOperationResolver;
|
|
37
38
|
/** Host authentication (§1.1); `null` ⇒ 401 `sync.auth_required`. */
|
|
38
39
|
readonly authenticate: (
|
|
39
40
|
request: Request,
|