Skip to content

Commit 4a41222

Browse files
committed
Format
1 parent 34b2c1a commit 4a41222

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

demos/example-node/src/main.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import repl_factory from 'node:repl';
22
import { once } from 'node:events';
33

44
import { PowerSyncDatabase, SyncStreamConnectionMethod } from '@powersync/node';
5-
import { default as Logger } from "js-logger";
5+
import { default as Logger } from 'js-logger';
66
import { AppSchema, DemoConnector } from './powersync.js';
77
import { exit } from 'node:process';
88

@@ -22,7 +22,7 @@ const main = async () => {
2222
database: {
2323
dbFilename: 'test.db'
2424
},
25-
logger,
25+
logger
2626
});
2727
console.log(await db.get('SELECT powersync_rs_version();'));
2828

demos/example-node/src/powersync.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ export class DemoConnector implements PowerSyncBackendConnector {
3333

3434
const response = await fetch(`${process.env.BACKEND}/api/data/`, {
3535
method: 'POST',
36-
headers: {'Content-Type': 'application/json'},
37-
body: JSON.stringify({batch: entries}),
36+
headers: { 'Content-Type': 'application/json' },
37+
body: JSON.stringify({ batch: entries })
3838
});
3939
if (response.status !== 200) {
4040
throw new Error(`Server returned HTTP ${response.status}: ${await response.text()}`);

0 commit comments

Comments
 (0)