@bobfrankston/msger 0.1.147 → 0.1.148

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 (3) hide show
  1. package/cli.js +2 -3
  2. package/cli.ts +2 -3
  3. package/package.json +1 -1
package/cli.js CHANGED
@@ -563,11 +563,10 @@ function saveConfigFile(filePath, options) {
563
563
  if (options.size)
564
564
  config.size = options.size;
565
565
  if (options.pos) {
566
- let posStr = `${options.pos.x},${options.pos.y}`;
566
+ config.pos = { x: options.pos.x, y: options.pos.y };
567
567
  if (options.pos.screen !== undefined) {
568
- posStr += `,${options.pos.screen}`;
568
+ config.pos.screen = options.pos.screen;
569
569
  }
570
- config.pos = posStr;
571
570
  }
572
571
  if (options.buttons && options.buttons.length > 0 && JSON.stringify(options.buttons) !== '["OK"]') {
573
572
  config.buttons = options.buttons;
package/cli.ts CHANGED
@@ -566,11 +566,10 @@ function saveConfigFile(filePath: string, options: MessageBoxOptions): void {
566
566
  if (options.hash) config.hash = options.hash;
567
567
  if (options.size) config.size = options.size;
568
568
  if (options.pos) {
569
- let posStr = `${options.pos.x},${options.pos.y}`;
569
+ config.pos = { x: options.pos.x, y: options.pos.y };
570
570
  if (options.pos.screen !== undefined) {
571
- posStr += `,${options.pos.screen}`;
571
+ config.pos.screen = options.pos.screen;
572
572
  }
573
- config.pos = posStr;
574
573
  }
575
574
  if (options.buttons && options.buttons.length > 0 && JSON.stringify(options.buttons) !== '["OK"]') {
576
575
  config.buttons = options.buttons;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.147",
3
+ "version": "0.1.148",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",