tmux-ide 1.2.0 → 1.2.1

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/package.json +1 -1
  2. package/src/lib/tmux.js +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tmux-ide",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "Turn any project into a tmux-powered terminal IDE with a simple ide.yml",
5
5
  "type": "module",
6
6
  "bin": {
package/src/lib/tmux.js CHANGED
@@ -40,7 +40,10 @@ export function hasSession(session) {
40
40
  runTmux(["has-session", "-t", session]);
41
41
  return true;
42
42
  } catch (error) {
43
- if (error instanceof TmuxError && error.code === "SESSION_NOT_FOUND") {
43
+ if (
44
+ error instanceof TmuxError &&
45
+ (error.code === "SESSION_NOT_FOUND" || error.code === "TMUX_UNAVAILABLE")
46
+ ) {
44
47
  return false;
45
48
  }
46
49
  throw error;