@syncular/server-hono 0.0.3-3 → 0.0.3-7
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/server-hono",
|
|
3
|
-
"version": "0.0.3-
|
|
3
|
+
"version": "0.0.3-7",
|
|
4
4
|
"description": "Hono adapter for the Syncular server with OpenAPI support",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -48,16 +48,16 @@
|
|
|
48
48
|
"@hono/standard-validator": "^0.2.2",
|
|
49
49
|
"@standard-community/standard-json": "^0.3.5",
|
|
50
50
|
"@standard-community/standard-openapi": "^0.2.9",
|
|
51
|
-
"@syncular/core": "0.0.3-
|
|
52
|
-
"@syncular/server": "0.0.3-
|
|
51
|
+
"@syncular/core": "0.0.3-7",
|
|
52
|
+
"@syncular/server": "0.0.3-7",
|
|
53
53
|
"@types/json-schema": "^7.0.15",
|
|
54
54
|
"hono-openapi": "^1.2.0",
|
|
55
55
|
"openapi-types": "^12.1.3"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@syncular/config": "0.0.0",
|
|
59
|
-
"@syncular/dialect-pglite": "0.0.3-
|
|
60
|
-
"@syncular/server-dialect-postgres": "0.0.3-
|
|
59
|
+
"@syncular/dialect-pglite": "0.0.3-7",
|
|
60
|
+
"@syncular/server-dialect-postgres": "0.0.3-7",
|
|
61
61
|
"kysely": "*",
|
|
62
62
|
"zod": "*"
|
|
63
63
|
},
|
|
@@ -147,11 +147,10 @@ describe('console timeline route filters', () => {
|
|
|
147
147
|
let db: Kysely<TestDb>;
|
|
148
148
|
let dialect: ReturnType<typeof createPostgresServerDialect>;
|
|
149
149
|
let app: Hono;
|
|
150
|
+
let baseTimeMs: number;
|
|
150
151
|
|
|
151
152
|
function atIso(minutes: number): string {
|
|
152
|
-
return new Date(
|
|
153
|
-
`2026-02-16T11:${String(minutes).padStart(2, '0')}:00.000Z`
|
|
154
|
-
).toISOString();
|
|
153
|
+
return new Date(baseTimeMs + minutes * 60_000).toISOString();
|
|
155
154
|
}
|
|
156
155
|
|
|
157
156
|
async function requestTimeline(args: {
|
|
@@ -445,6 +444,11 @@ describe('console timeline route filters', () => {
|
|
|
445
444
|
}
|
|
446
445
|
|
|
447
446
|
beforeEach(async () => {
|
|
447
|
+
// Keep fixture events within the current metrics windows (for example 24h).
|
|
448
|
+
baseTimeMs =
|
|
449
|
+
Math.floor(Date.now() / (60 * 60 * 1000)) * (60 * 60 * 1000) -
|
|
450
|
+
60 * 60 * 1000;
|
|
451
|
+
|
|
448
452
|
dialect = createPostgresServerDialect();
|
|
449
453
|
db = createPgliteDb<TestDb>();
|
|
450
454
|
await ensureSyncSchema(db, dialect);
|