@lawaty/lacode 1.0.1 → 1.0.2
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.
- package/CHANGELOG.md +12 -0
- package/dist/lacode.js +1 -1
- package/dist/tunnel.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ All notable changes to LaCode are recorded here. The format follows
|
|
|
7
7
|
Versions come from git release commits; the npm version is bumped in the same
|
|
8
8
|
commit as the changelog entry it describes.
|
|
9
9
|
|
|
10
|
+
## [1.0.2] — the permission chime plays when the popup appears
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **An actionable notification no longer delays its sound until it is answered.**
|
|
15
|
+
`sendLocal()` played the chime after `notify-send` returned, but an actionable
|
|
16
|
+
send (`--action` implies `--wait`) blocks until the user clicks a button or
|
|
17
|
+
dismisses the popup. The chime therefore played at click time — and never at
|
|
18
|
+
all when the popup was left alone — which made permission sounds look
|
|
19
|
+
intermittent. The sound now starts before the notifier runs, and a test pins
|
|
20
|
+
the order with a blocking fake notifier.
|
|
21
|
+
|
|
10
22
|
## [1.0.1] — notification sounds you can hear, and a title that names the workspace
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/lacode.js
CHANGED
|
@@ -369,8 +369,8 @@ function sendLocal(request, platform = process.platform) {
|
|
|
369
369
|
// Never auto-dismissed: the notification waits for the user to close it.
|
|
370
370
|
[title, body, APP_NAME_FLAG, `--urgency=${normalizeUrgency(request.urgency)}`, `--icon=${normalizeIcon(request.icon)}`, NEVER_EXPIRE_FLAG, ...trackable ? ["--print-id"] : [], ...actionArgs]
|
|
371
371
|
);
|
|
372
|
-
const result = run(CHANNEL_BINARY[channel], args, actionable ? ACTION_WAIT_MS : 5e3);
|
|
373
372
|
playSound();
|
|
373
|
+
const result = run(CHANNEL_BINARY[channel], args, actionable ? ACTION_WAIT_MS : 5e3);
|
|
374
374
|
const printed = trackable ? splitNotifyOutput(result.stdout) : { id: "", action: result.stdout.trim() };
|
|
375
375
|
const action = actionable ? printed.action : "";
|
|
376
376
|
if (correlationKey !== void 0 && printed.id) recordNotificationId(correlationKey, printed.id);
|
package/dist/tunnel.js
CHANGED
|
@@ -362,8 +362,8 @@ function sendLocal(request, platform = process.platform) {
|
|
|
362
362
|
// Never auto-dismissed: the notification waits for the user to close it.
|
|
363
363
|
[title, body, APP_NAME_FLAG, `--urgency=${normalizeUrgency(request.urgency)}`, `--icon=${normalizeIcon(request.icon)}`, NEVER_EXPIRE_FLAG, ...trackable ? ["--print-id"] : [], ...actionArgs]
|
|
364
364
|
);
|
|
365
|
-
const result = run(CHANNEL_BINARY[channel], args, actionable ? ACTION_WAIT_MS : 5e3);
|
|
366
365
|
playSound();
|
|
366
|
+
const result = run(CHANNEL_BINARY[channel], args, actionable ? ACTION_WAIT_MS : 5e3);
|
|
367
367
|
const printed = trackable ? splitNotifyOutput(result.stdout) : { id: "", action: result.stdout.trim() };
|
|
368
368
|
const action = actionable ? printed.action : "";
|
|
369
369
|
if (correlationKey !== void 0 && printed.id) recordNotificationId(correlationKey, printed.id);
|
package/package.json
CHANGED