@bobfrankston/msger 0.1.145 → 0.1.147

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 +4 -1
  2. package/cli.ts +3 -1
  3. package/package.json +2 -2
package/cli.js CHANGED
@@ -41,6 +41,8 @@ export default async function main() {
41
41
  finalOptions.html = options.html;
42
42
  if (options.url)
43
43
  finalOptions.url = options.url;
44
+ if (options.hash)
45
+ finalOptions.hash = options.hash;
44
46
  if (options.size)
45
47
  finalOptions.size = options.size;
46
48
  if (options.pos)
@@ -553,8 +555,9 @@ function saveConfigFile(filePath, options) {
553
555
  config.message = options.message;
554
556
  if (options.html)
555
557
  config.html = options.html;
558
+ // Save URL without hash fragment (hash is specified via -hash option)
556
559
  if (options.url)
557
- config.url = options.url;
560
+ config.url = options.url.split('#')[0];
558
561
  if (options.hash)
559
562
  config.hash = options.hash;
560
563
  if (options.size)
package/cli.ts CHANGED
@@ -42,6 +42,7 @@ export default async function main() {
42
42
  if (options.message) finalOptions.message = options.message;
43
43
  if (options.html) finalOptions.html = options.html;
44
44
  if (options.url) finalOptions.url = options.url;
45
+ if (options.hash) finalOptions.hash = options.hash;
45
46
  if (options.size) finalOptions.size = options.size;
46
47
  if (options.pos) finalOptions.pos = options.pos;
47
48
  if (options.buttons && options.buttons.length > 0) finalOptions.buttons = options.buttons;
@@ -560,7 +561,8 @@ function saveConfigFile(filePath: string, options: MessageBoxOptions): void {
560
561
  if (options.title && options.title !== 'Message') config.title = options.title;
561
562
  if (options.message) config.message = options.message;
562
563
  if (options.html) config.html = options.html;
563
- if (options.url) config.url = options.url;
564
+ // Save URL without hash fragment (hash is specified via -hash option)
565
+ if (options.url) config.url = options.url.split('#')[0];
564
566
  if (options.hash) config.hash = options.hash;
565
567
  if (options.size) config.size = options.size;
566
568
  if (options.pos) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bobfrankston/msger",
3
- "version": "0.1.145",
3
+ "version": "0.1.147",
4
4
  "description": "Fast, lightweight, cross-platform message box - Rust-powered alternative to msgview",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -26,7 +26,7 @@
26
26
  "preversion": "npm run build:ts && npm run build:native && git add -A",
27
27
  "postversion": "git push && git push --tags",
28
28
  "release": "npm run prerelease:local && npm version patch && npm publish",
29
- "installer": "npm run release && node --experimental-strip-types utils/install-latest.ts",
29
+ "installer": "npm run release && node utils/install-latest.ts",
30
30
  "installer:wait": "npm run release && npm cache clean --force && npm install -g @bobfrankston/msger@latest && wsl npm cache clean --force && wsl npm install -g @bobfrankston/msger@latest"
31
31
  },
32
32
  "keywords": [