@bobfrankston/msger 0.1.377 → 0.1.378

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/package.json +1 -1
  2. package/shower.js +2 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.377",
3
+ "version": "0.1.378",
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
@@ -675,7 +675,8 @@ export function showService(options) {
675
675
  if (!rustOptions.app_name)
676
676
  rustOptions.app_name = _appName;
677
677
  const jsonToSend = JSON.stringify(rustOptions);
678
- console.error(`[service] Sending to Rust: ${jsonToSend.slice(0, 200)}`);
678
+ if (process.env.MSGER_DEBUG)
679
+ console.log(`[service] Sending to Rust: ${jsonToSend.slice(0, 200)}`);
679
680
  child.stdin?.write(jsonToSend + "\n");
680
681
  return new ServiceHandle(child);
681
682
  }