@bobfrankston/msger 0.1.363 → 0.1.364

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.363",
3
+ "version": "0.1.364",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",
package/shower.js CHANGED
@@ -517,6 +517,12 @@ function createMessageBoxHandle(options) {
517
517
  rustOptions.aumid = rustOptions.appUserModelId;
518
518
  }
519
519
  delete rustOptions.appUserModelId;
520
+ // Pass app_name so the Rust side scopes its WebView2 user-data
521
+ // dir per app (one wedged profile no longer takes out every
522
+ // msger-hosted app's state). _appName defaults to "msger" so
523
+ // legacy callers retain the old shared profile path.
524
+ if (!rustOptions.app_name)
525
+ rustOptions.app_name = _appName;
520
526
  const jsonToSend = JSON.stringify(rustOptions);
521
527
  // If detached, resolve immediately after stdin is closed
522
528
  if (options.detach) {
@@ -654,6 +660,12 @@ export function showService(options) {
654
660
  rustOptions.aumid = rustOptions.appUserModelId;
655
661
  }
656
662
  delete rustOptions.appUserModelId;
663
+ // Per-app WebView2 profile dir — see corresponding showMessageBox path
664
+ // for rationale. Pass app_name so the Rust side scopes its profile
665
+ // under `%LOCALAPPDATA%\<appName>\webview2` instead of the shared
666
+ // `%LOCALAPPDATA%\msger\webview2`.
667
+ if (!rustOptions.app_name)
668
+ rustOptions.app_name = _appName;
657
669
  const jsonToSend = JSON.stringify(rustOptions);
658
670
  console.error(`[service] Sending to Rust: ${jsonToSend.slice(0, 200)}`);
659
671
  child.stdin?.write(jsonToSend + "\n");