dashcam 1.3.24 → 1.3.25

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.
@@ -352,6 +352,12 @@ class ProcessManager {
352
352
  const logFile = path.join(logDir, `recording-${Date.now()}.log`);
353
353
  const logStream = fs.createWriteStream(logFile, { flags: 'a' });
354
354
 
355
+ // Wait for the log stream to open before using it in spawn
356
+ await new Promise((resolve, reject) => {
357
+ logStream.once('open', resolve);
358
+ logStream.once('error', reject);
359
+ });
360
+
355
361
  logger.info('Background process log file', { logFile });
356
362
  console.log('[ProcessManager] Log file created:', logFile);
357
363
  console.log('[ProcessManager] Node path:', nodePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dashcam",
3
- "version": "1.3.24",
3
+ "version": "1.3.25",
4
4
  "description": "Minimal CLI version of Dashcam desktop app",
5
5
  "main": "bin/dashcam.js",
6
6
  "bin": {