@cjser/supports-hyperlinks 4.4.0-cjser.2 → 4.5.0-cjser.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-cjser/index.cjs +4 -1
- package/index.js +6 -0
- package/package.json +3 -3
- package/readme.md +6 -0
package/dist-cjser/index.cjs
CHANGED
|
@@ -26,7 +26,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
26
26
|
));
|
|
27
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
28
28
|
|
|
29
|
-
// packages/@cjser/supports-hyperlinks/index.js
|
|
29
|
+
// packages/@cjser/supports-hyperlinks.tmp-26-1781887965927/index.js
|
|
30
30
|
var index_exports = {};
|
|
31
31
|
__export(index_exports, {
|
|
32
32
|
createSupportsHyperlinks: () => createSupportsHyperlinks,
|
|
@@ -122,6 +122,9 @@ function createSupportsHyperlinks(stream) {
|
|
|
122
122
|
case "zed": {
|
|
123
123
|
return true;
|
|
124
124
|
}
|
|
125
|
+
case "Orca": {
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
125
128
|
}
|
|
126
129
|
}
|
|
127
130
|
if (VTE_VERSION) {
|
package/index.js
CHANGED
|
@@ -120,6 +120,12 @@ export function createSupportsHyperlinks(stream) {
|
|
|
120
120
|
return true;
|
|
121
121
|
}
|
|
122
122
|
|
|
123
|
+
case 'Orca': {
|
|
124
|
+
// Orca is an Electron-based terminal (xterm.js + OSC 8
|
|
125
|
+
// linkHandler). https://github.com/stablyai/orca
|
|
126
|
+
return true;
|
|
127
|
+
}
|
|
128
|
+
|
|
123
129
|
// No default
|
|
124
130
|
}
|
|
125
131
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cjser/supports-hyperlinks",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.5.0-cjser.2",
|
|
4
4
|
"description": "Detect whether a terminal supports hyperlinks",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -52,11 +52,11 @@
|
|
|
52
52
|
"types": "./index.d.ts",
|
|
53
53
|
"main": "./dist-cjser/index.cjs",
|
|
54
54
|
"cjser": {
|
|
55
|
-
"sourceVersion": "4.
|
|
55
|
+
"sourceVersion": "4.5.0",
|
|
56
56
|
"cjserVersion": 2,
|
|
57
57
|
"original": {
|
|
58
58
|
"name": "supports-hyperlinks",
|
|
59
|
-
"version": "4.
|
|
59
|
+
"version": "4.5.0",
|
|
60
60
|
"exports": {
|
|
61
61
|
"types": "./index.d.ts",
|
|
62
62
|
"default": "./index.js"
|
package/readme.md
CHANGED
|
@@ -38,6 +38,12 @@ Obeys the `--no-hyperlinks`, `--hyperlink=always`, and `--hyperlink=never` CLI f
|
|
|
38
38
|
|
|
39
39
|
Can be overridden by the user with the flags `--hyperlinks=always` and `--no-hyperlinks`. For situations where using those flags are not possible, add the environment variable `FORCE_HYPERLINK=1` to forcefully enable hyperlinks or `FORCE_HYPERLINK=0` to forcefully disable. The use of `FORCE_HYPERLINK` overrides all other hyperlink support checks.
|
|
40
40
|
|
|
41
|
+
## Related
|
|
42
|
+
|
|
43
|
+
- [terminal-link](https://github.com/sindresorhus/terminal-link) - Create clickable links in the terminal
|
|
44
|
+
- [supports-color](https://github.com/chalk/supports-color) - Detect whether a terminal supports color
|
|
45
|
+
- [supports-terminal-graphics](https://github.com/sindresorhus/supports-terminal-graphics) - Detect which terminal graphics protocols are supported
|
|
46
|
+
|
|
41
47
|
## cjser
|
|
42
48
|
|
|
43
49
|
This package is a CommonJS-compatible build generated by cjser for projects that still need `require()` support. The source version matches the original npm package version, with a cjser prerelease suffix for this generated build.
|