@actual-app/sync-server 25.8.0-nightly.20250708 → 25.8.0-nightly.20250709

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.
Files changed (2) hide show
  1. package/build/src/app.js +12 -6
  2. package/package.json +2 -2
package/build/src/app.js CHANGED
@@ -119,6 +119,12 @@ function parseHTTPSConfig(value) {
119
119
  }
120
120
  return fs.readFileSync(value);
121
121
  }
122
+ function sendServerStartedMessage() {
123
+ // Signify to any parent process that the server has started. Used in electron desktop app
124
+ // @ts-ignore-error electron types
125
+ process.parentPort?.postMessage({ type: 'server-started' });
126
+ console.log('Listening on ' + config.get('hostname') + ':' + config.get('port') + '...');
127
+ }
122
128
  export async function run() {
123
129
  const portVal = config.get('port');
124
130
  const port = typeof portVal === 'string' ? parseInt(portVal) : portVal;
@@ -148,13 +154,13 @@ export async function run() {
148
154
  key: parseHTTPSConfig(config.get('https.key')),
149
155
  cert: parseHTTPSConfig(config.get('https.cert')),
150
156
  };
151
- https.createServer(httpsOptions, app).listen(port, hostname);
157
+ https.createServer(httpsOptions, app).listen(port, hostname, () => {
158
+ sendServerStartedMessage();
159
+ });
152
160
  }
153
161
  else {
154
- app.listen(port, hostname);
162
+ app.listen(port, hostname, () => {
163
+ sendServerStartedMessage();
164
+ });
155
165
  }
156
- // Signify to any parent process that the server has started. Used in electron desktop app
157
- // @ts-ignore-error electron types
158
- process.parentPort?.postMessage({ type: 'server-started' });
159
- console.log('Listening on ' + config.get('hostname') + ':' + config.get('port') + '...');
160
166
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@actual-app/sync-server",
3
- "version": "25.8.0-nightly.20250708",
3
+ "version": "25.8.0-nightly.20250709",
4
4
  "license": "MIT",
5
5
  "description": "actual syncing server",
6
6
  "bin": {
@@ -28,7 +28,7 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@actual-app/crdt": "2.1.0",
31
- "@actual-app/web": "25.8.0-nightly.20250708",
31
+ "@actual-app/web": "25.8.0-nightly.20250709",
32
32
  "bcrypt": "^5.1.1",
33
33
  "better-sqlite3": "^11.10.0",
34
34
  "convict": "^6.2.4",