supports-hyperlinks 2.0.0 → 2.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.
- package/index.js +9 -0
- package/package.json +5 -2
package/index.js
CHANGED
@@ -36,6 +36,11 @@ function supportsHyperlink(stream) {
|
|
36
36
|
return true;
|
37
37
|
}
|
38
38
|
|
39
|
+
// Netlify does not run a TTY, it does not need `supportsColor` check
|
40
|
+
if ('NETLIFY' in env) {
|
41
|
+
return true;
|
42
|
+
}
|
43
|
+
|
39
44
|
// If they specify no colors, they probably don't want hyperlinks.
|
40
45
|
if (!supportsColor.supportsColor(stream)) {
|
41
46
|
return false;
|
@@ -67,6 +72,10 @@ function supportsHyperlink(stream) {
|
|
67
72
|
}
|
68
73
|
|
69
74
|
return version.major > 3;
|
75
|
+
case 'WezTerm':
|
76
|
+
return version.major >= 20200620;
|
77
|
+
case 'vscode':
|
78
|
+
return version.major > 1 || version.major === 1 && version.minor >= 72;
|
70
79
|
// No default
|
71
80
|
}
|
72
81
|
}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "supports-hyperlinks",
|
3
|
-
"version": "2.
|
3
|
+
"version": "2.3.0",
|
4
4
|
"description": "Detect if your terminal emulator supports hyperlinks",
|
5
5
|
"license": "MIT",
|
6
6
|
"repository": "jamestalmage/supports-hyperlinks",
|
@@ -13,7 +13,9 @@
|
|
13
13
|
"node": ">=8"
|
14
14
|
},
|
15
15
|
"scripts": {
|
16
|
-
"
|
16
|
+
"prepublishOnly": "npm run create-types",
|
17
|
+
"test": "xo && nyc ava",
|
18
|
+
"create-types": "tsc index.js --allowJs --declaration --emitDeclarationOnly"
|
17
19
|
},
|
18
20
|
"files": [
|
19
21
|
"index.js",
|
@@ -34,6 +36,7 @@
|
|
34
36
|
"ava": "^2.2.0",
|
35
37
|
"codecov": "^3.5.0",
|
36
38
|
"nyc": "^14.1.1",
|
39
|
+
"typescript": "^3.7.2",
|
37
40
|
"xo": "^0.24.0"
|
38
41
|
},
|
39
42
|
"nyc": {
|