@syncular/server-workers 0.15.42 → 0.15.44
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.js +4 -2
- package/package.json +4 -4
- package/src/index.ts +4 -2
package/dist/index.js
CHANGED
|
@@ -109,8 +109,10 @@ function isSyncPost(request) {
|
|
|
109
109
|
?.trim();
|
|
110
110
|
if (contentType !== SSP2_CONTENT_TYPE)
|
|
111
111
|
return false;
|
|
112
|
-
|
|
113
|
-
|
|
112
|
+
// Exactly the route `createSyncularHono` mounts (`POST /sync` at the app
|
|
113
|
+
// root, which is where this handler serves the Hono app). Any other path —
|
|
114
|
+
// e.g. `/admin/sync` — stays with Hono routing.
|
|
115
|
+
return new URL(request.url).pathname === '/sync';
|
|
114
116
|
}
|
|
115
117
|
/**
|
|
116
118
|
* Forward an authenticated HTTP sync round to the partition's Durable Object.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/server-workers",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.44",
|
|
4
4
|
"description": "Cloudflare Workers 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.15.
|
|
49
|
-
"@syncular/server-hono": "0.15.
|
|
48
|
+
"@syncular/server": "0.15.44",
|
|
49
|
+
"@syncular/server-hono": "0.15.44",
|
|
50
50
|
"hono": "^4.11.0"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@syncular/core": "0.15.
|
|
53
|
+
"@syncular/core": "0.15.44"
|
|
54
54
|
}
|
|
55
55
|
}
|
package/src/index.ts
CHANGED
|
@@ -226,8 +226,10 @@ function isSyncPost(request: Request): boolean {
|
|
|
226
226
|
?.split(';')[0]
|
|
227
227
|
?.trim();
|
|
228
228
|
if (contentType !== SSP2_CONTENT_TYPE) return false;
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
// Exactly the route `createSyncularHono` mounts (`POST /sync` at the app
|
|
230
|
+
// root, which is where this handler serves the Hono app). Any other path —
|
|
231
|
+
// e.g. `/admin/sync` — stays with Hono routing.
|
|
232
|
+
return new URL(request.url).pathname === '/sync';
|
|
231
233
|
}
|
|
232
234
|
|
|
233
235
|
/**
|