supports-hyperlinks 3.0.0 → 3.1.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 (4) hide show
  1. package/index.js +5 -0
  2. package/license +1 -1
  3. package/package.json +55 -49
  4. package/readme.md +2 -2
package/index.js CHANGED
@@ -66,6 +66,11 @@ function supportsHyperlink(stream) {
66
66
  return false;
67
67
  }
68
68
 
69
+ // Windows Terminal
70
+ if ('WT_SESSION' in process.env) {
71
+ return true;
72
+ }
73
+
69
74
  if (process.platform === 'win32') {
70
75
  return false;
71
76
  }
package/license CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) James Talmage <james@talmage.io> (github.com/jamestalmage)
3
+ Copyright (c) James Talmage <james@talmage.io> (https://github.com/jamestalmage)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
6
6
 
package/package.json CHANGED
@@ -1,51 +1,57 @@
1
1
  {
2
- "name": "supports-hyperlinks",
3
- "version": "3.0.0",
4
- "description": "Detect if your terminal emulator supports hyperlinks",
5
- "license": "MIT",
6
- "repository": "jamestalmage/supports-hyperlinks",
7
- "author": {
8
- "name": "James Talmage",
9
- "email": "james@talmage.io",
10
- "url": "github.com/jamestalmage"
11
- },
12
- "engines": {
13
- "node": ">=14.18"
14
- },
15
- "scripts": {
16
- "prepublishOnly": "npm run create-types",
17
- "test": "xo && nyc ava && tsc",
18
- "create-types": "tsc --project declaration.tsconfig.json"
19
- },
20
- "files": [
21
- "index.js",
22
- "index.d.ts",
23
- "browser.js"
24
- ],
25
- "browser": "browser.js",
26
- "keywords": [
27
- "link",
28
- "terminal",
29
- "hyperlink",
30
- "cli"
31
- ],
32
- "dependencies": {
33
- "has-flag": "^4.0.0",
34
- "supports-color": "^7.0.0"
35
- },
36
- "devDependencies": {
37
- "@tsconfig/node14": "^1.0.3",
38
- "@types/supports-color": "^8.1.1",
39
- "ava": "^2.2.0",
40
- "codecov": "^3.5.0",
41
- "nyc": "^14.1.1",
42
- "typescript": "^4.9.5",
43
- "xo": "^0.24.0"
44
- },
45
- "nyc": {
46
- "reporter": [
47
- "lcov",
48
- "text"
49
- ]
50
- }
2
+ "name": "supports-hyperlinks",
3
+ "version": "3.1.0",
4
+ "description": "Detect if your terminal emulator supports hyperlinks",
5
+ "license": "MIT",
6
+ "repository": "jamestalmage/supports-hyperlinks",
7
+ "funding": "https://github.com/sponsors/sindresorhus",
8
+ "author": {
9
+ "name": "James Talmage",
10
+ "email": "james@talmage.io",
11
+ "url": "github.com/jamestalmage"
12
+ },
13
+ "exports": {
14
+ "types": "./index.d.ts",
15
+ "default": "./index.js"
16
+ },
17
+ "sideEffects": false,
18
+ "engines": {
19
+ "node": ">=14.18"
20
+ },
21
+ "scripts": {
22
+ "prepublishOnly": "npm run create-types",
23
+ "test": "xo && nyc ava && tsc",
24
+ "create-types": "tsc --project declaration.tsconfig.json"
25
+ },
26
+ "files": [
27
+ "index.js",
28
+ "index.d.ts",
29
+ "browser.js"
30
+ ],
31
+ "browser": "browser.js",
32
+ "keywords": [
33
+ "link",
34
+ "terminal",
35
+ "hyperlink",
36
+ "cli"
37
+ ],
38
+ "dependencies": {
39
+ "has-flag": "^4.0.0",
40
+ "supports-color": "^7.0.0"
41
+ },
42
+ "devDependencies": {
43
+ "@tsconfig/node14": "^1.0.3",
44
+ "@types/supports-color": "^8.1.1",
45
+ "ava": "^2.2.0",
46
+ "codecov": "^3.5.0",
47
+ "nyc": "^14.1.1",
48
+ "typescript": "^4.9.5",
49
+ "xo": "^0.24.0"
50
+ },
51
+ "nyc": {
52
+ "reporter": [
53
+ "lcov",
54
+ "text"
55
+ ]
56
+ }
51
57
  }
package/readme.md CHANGED
@@ -10,8 +10,8 @@ As this is a new development, we anticipate the list of supported Terminals to g
10
10
 
11
11
  ## Install
12
12
 
13
- ```
14
- $ npm install supports-hyperlinks
13
+ ```sh
14
+ npm install supports-hyperlinks
15
15
  ```
16
16
 
17
17