@kud/qobuz-cli 0.5.1 → 0.5.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/dist/index.js +2 -2
- package/package.json +4 -2
package/dist/index.js
CHANGED
|
@@ -380,14 +380,14 @@ var open = defineCommand6({
|
|
|
380
380
|
|
|
381
381
|
// src/commands/playback.ts
|
|
382
382
|
import { defineCommand as defineCommand7 } from "citty";
|
|
383
|
-
import { sendMediaKey } from "@kud/macos-media-keys";
|
|
384
383
|
var playbackCommand = (name, description, key) => defineCommand7({
|
|
385
384
|
meta: { name, description },
|
|
386
385
|
run: async () => {
|
|
387
386
|
try {
|
|
387
|
+
const { sendMediaKey } = await import("@kud/macos-media-keys");
|
|
388
388
|
await sendMediaKey(key);
|
|
389
389
|
} catch (error) {
|
|
390
|
-
console.error(error.message);
|
|
390
|
+
console.error(error.message ?? `playback (${key}) failed`);
|
|
391
391
|
process.exit(1);
|
|
392
392
|
}
|
|
393
393
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kud/qobuz-cli",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Command-line interface for Qobuz — search, library, and quick-open in the app",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,10 +23,12 @@
|
|
|
23
23
|
"node": ">=20"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@kud/macos-media-keys": "0.1.0",
|
|
27
26
|
"@kud/qobuz": "0.5.0",
|
|
28
27
|
"citty": "0.2.2"
|
|
29
28
|
},
|
|
29
|
+
"optionalDependencies": {
|
|
30
|
+
"@kud/macos-media-keys": "0.1.0"
|
|
31
|
+
},
|
|
30
32
|
"devDependencies": {
|
|
31
33
|
"@types/node": "26.0.0",
|
|
32
34
|
"tsup": "8.5.1",
|