oc-tweaks 0.1.2 → 0.1.3

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/dist/index.js +2 -7
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -354,13 +354,8 @@ async function detectNotifySender($, client, logConfig) {
354
354
  await log(logConfig, "WARN", "[oc-tweaks] notify: no available notifier, set notify.command to override");
355
355
  return { kind: "none" };
356
356
  }
357
- async function commandExists($, command) {
358
- try {
359
- await $`which ${command}`;
360
- return true;
361
- } catch {
362
- return false;
363
- }
357
+ async function commandExists(_$, command) {
358
+ return Bun.which(command) !== null;
364
359
  }
365
360
  async function notifyWithSender($, sender, title, message, tag, style, logConfig) {
366
361
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oc-tweaks",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./dist/index.js"