supports-hyperlinks 4.1.2 → 4.3.0

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/index.js +13 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -91,7 +91,15 @@ export function createSupportsHyperlinks(stream) {
91
91
  }
92
92
 
93
93
  case 'WezTerm': {
94
- return version.major >= 20_200_620;
94
+ // WezTerm packaged by Nix uses their own version scheme.
95
+ if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
96
+ const date = TERM_PROGRAM_VERSION.slice('0-unstable-'.length);
97
+ return date >= '2020-06-20';
98
+ }
99
+
100
+ // This number is a date and reads better grouped as such.
101
+ // eslint-disable-next-line unicorn/numeric-separators-style
102
+ return version.major >= 2020_06_20;
95
103
  }
96
104
 
97
105
  case 'vscode': {
@@ -126,6 +134,10 @@ export function createSupportsHyperlinks(stream) {
126
134
  // Support added in v0.11 (2022-10-13)
127
135
  return true;
128
136
  }
137
+
138
+ case 'xterm-kitty': {
139
+ return true;
140
+ }
129
141
  // No default
130
142
  }
131
143
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supports-hyperlinks",
3
- "version": "4.1.2",
3
+ "version": "4.3.0",
4
4
  "description": "Detect whether a terminal supports hyperlinks",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/supports-hyperlinks",