@bobfrankston/msger 0.1.198 → 0.1.199

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.198",
3
+ "version": "0.1.199",
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.d.ts CHANGED
@@ -41,7 +41,8 @@ export interface MessageBoxOptions {
41
41
  debug?: boolean; /** Return debug information (HTML, size) in result (default: false) */
42
42
  showVersion?: boolean; /** Show version in window title (default: false) */
43
43
  appUserModelId?: string; /** Windows AppUserModelID for taskbar pinning (internal use) */
44
- initScript?: string; /** Custom JS injected into WebView alongside msger-api.js */
44
+ initScript?: string; /** Custom JS injected into WebView alongside msger-api.js (inline) */
45
+ initScriptPath?: string; /** Path to JS file injected into WebView (avoids large JSON) */
45
46
  service?: boolean; /** Service mode: bidirectional IPC with parent. Stdin/stdout stay open. */
46
47
  }
47
48
  export interface MessageBoxResult {
package/shower.js CHANGED
@@ -353,6 +353,8 @@ export function showService(options) {
353
353
  }
354
354
  rustOptions.url = pathToFileURL(absolutePath).href;
355
355
  }
356
- child.stdin?.write(JSON.stringify(rustOptions) + "\n");
356
+ const jsonToSend = JSON.stringify(rustOptions);
357
+ console.error(`[service] Sending to Rust: ${jsonToSend.slice(0, 200)}`);
358
+ child.stdin?.write(jsonToSend + "\n");
357
359
  return new ServiceHandle(child);
358
360
  }