supports-color 10.1.0 → 10.2.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 +4 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -151,6 +151,10 @@ function _supportsColor(haveStream, {streamIsTTY, sniffFlags = true} = {}) {
151
151
  return 3;
152
152
  }
153
153
 
154
+ if (env.TERM === 'wezterm') {
155
+ return 3;
156
+ }
157
+
154
158
  if ('TERM_PROGRAM' in env) {
155
159
  const version = Number.parseInt((env.TERM_PROGRAM_VERSION || '').split('.')[0], 10);
156
160
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "supports-color",
3
- "version": "10.1.0",
3
+ "version": "10.2.0",
4
4
  "description": "Detect whether a terminal supports color",
5
5
  "license": "MIT",
6
6
  "repository": "chalk/supports-color",