@syncular/testkit 0.1.0 → 0.1.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/dist/client-bridge.js +1 -1
- package/dist/hono-node-server.js +1 -1
- package/dist/http-fixtures.js +1 -1
- package/dist/index.js +14 -14
- package/dist/realtime-ws.js +1 -1
- package/dist/runtime-process.js +1 -1
- package/dist/sync-http.js +1 -1
- package/package.json +5 -5
package/dist/client-bridge.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Database } from 'bun:sqlite';
|
|
2
|
-
import { createAsyncDisposableResource } from './disposable';
|
|
2
|
+
import { createAsyncDisposableResource } from './disposable.js';
|
|
3
3
|
export async function createClientBridgeHarness(options = {}) {
|
|
4
4
|
const harness = new InProcessClientBridgeHarness(options);
|
|
5
5
|
return createAsyncDisposableResource(harness, () => harness.close());
|
package/dist/hono-node-server.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createServer } from 'node:http';
|
|
2
|
-
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable';
|
|
2
|
+
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable.js';
|
|
3
3
|
export function createNodeHonoServer(app, options) {
|
|
4
4
|
const corsEnabled = options?.cors ?? true;
|
|
5
5
|
const corsAllowMethods = options?.corsAllowMethods ?? 'GET, POST, PUT, DELETE, OPTIONS';
|
package/dist/http-fixtures.js
CHANGED
|
@@ -6,7 +6,7 @@ import { createPgliteDialect } from '@syncular/server/pglite';
|
|
|
6
6
|
import { createPostgresServerDialect } from '@syncular/server/postgres';
|
|
7
7
|
import { createSqliteServerDialect } from '@syncular/server/sqlite';
|
|
8
8
|
import { Hono } from 'hono';
|
|
9
|
-
import { createNodeHonoServer } from './hono-node-server';
|
|
9
|
+
import { createNodeHonoServer } from './hono-node-server.js';
|
|
10
10
|
const PGLITE_INIT_ATTEMPTS = 3;
|
|
11
11
|
function isTransientPgliteInitError(error) {
|
|
12
12
|
return (error.message.includes('access to a null reference') ||
|
package/dist/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
export * from './audit';
|
|
2
|
-
export * from './client-bridge';
|
|
3
|
-
export * from './deterministic';
|
|
4
|
-
export * from './disposable';
|
|
5
|
-
export * from './faults';
|
|
6
|
-
export * from './hono-node-server';
|
|
7
|
-
export * from './http-fixtures';
|
|
8
|
-
export * from './project-scoped-tasks';
|
|
9
|
-
export * from './realtime-ws';
|
|
10
|
-
export * from './runtime-process';
|
|
11
|
-
export * from './sync-builders';
|
|
12
|
-
export * from './sync-http';
|
|
13
|
-
export * from './sync-parse';
|
|
14
|
-
export * from './sync-response';
|
|
1
|
+
export * from './audit.js';
|
|
2
|
+
export * from './client-bridge.js';
|
|
3
|
+
export * from './deterministic.js';
|
|
4
|
+
export * from './disposable.js';
|
|
5
|
+
export * from './faults.js';
|
|
6
|
+
export * from './hono-node-server.js';
|
|
7
|
+
export * from './http-fixtures.js';
|
|
8
|
+
export * from './project-scoped-tasks.js';
|
|
9
|
+
export * from './realtime-ws.js';
|
|
10
|
+
export * from './runtime-process.js';
|
|
11
|
+
export * from './sync-builders.js';
|
|
12
|
+
export * from './sync-http.js';
|
|
13
|
+
export * from './sync-parse.js';
|
|
14
|
+
export * from './sync-response.js';
|
|
15
15
|
//# sourceMappingURL=index.js.map
|
package/dist/realtime-ws.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isRecord } from '@syncular/core';
|
|
2
|
-
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable';
|
|
2
|
+
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable.js';
|
|
3
3
|
function appendQueryParam(url, key, value) {
|
|
4
4
|
if (value === null || value === undefined) {
|
|
5
5
|
return;
|
package/dist/runtime-process.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable';
|
|
1
|
+
import { createAsyncDisposableResource, withAsyncDisposableFactory, } from './disposable.js';
|
|
2
2
|
export async function waitForJsonPortFromStdout(process, options = {}) {
|
|
3
3
|
const timeoutMs = options.timeoutMs ?? 30_000;
|
|
4
4
|
const processName = options.processName ?? 'Child process';
|
package/dist/sync-http.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { parseSyncCombinedResponse, parseSyncPullResponse, parseSyncPushResponse, } from './sync-parse';
|
|
1
|
+
import { parseSyncCombinedResponse, parseSyncPullResponse, parseSyncPushResponse, } from './sync-parse.js';
|
|
2
2
|
export function createJsonActorHeaders(options) {
|
|
3
3
|
return {
|
|
4
4
|
'content-type': 'application/json',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@syncular/testkit",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Testing fixtures and utilities for Syncular",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Benjamin Kniffler",
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"release": "syncular-publish"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@syncular/client": "
|
|
45
|
-
"@syncular/core": "
|
|
46
|
-
"@syncular/server": "
|
|
44
|
+
"@syncular/client": "0.1.1",
|
|
45
|
+
"@syncular/core": "0.1.1",
|
|
46
|
+
"@syncular/server": "0.1.1",
|
|
47
47
|
"hono": "^4.12.15"
|
|
48
48
|
},
|
|
49
49
|
"devDependencies": {
|
|
50
|
-
"@syncular/config": "
|
|
50
|
+
"@syncular/config": "0.0.0",
|
|
51
51
|
"kysely": "*"
|
|
52
52
|
},
|
|
53
53
|
"files": [
|