@jsenv/humanize 1.1.1 → 1.1.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.
@@ -239,11 +239,7 @@ const ANSI = createAnsi({
239
239
  processSupportsBasicColor ||
240
240
  // GitHub workflow does support ANSI but "supports-color" returns false
241
241
  // because stream.isTTY returns false, see https://github.com/actions/runner/issues/241
242
- (process.env.GITHUB_WORKFLOW &&
243
- // Check on FORCE_COLOR is to ensure it is prio over GitHub workflow check
244
- // in unit test we use process.env.FORCE_COLOR = 'false' to fake
245
- // that colors are not supported. Let it have priority
246
- process.env.FORCE_COLOR !== "false"),
242
+ process.env.GITHUB_WORKFLOW,
247
243
  });
248
244
 
249
245
  function isUnicodeSupported() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jsenv/humanize",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Generate messages meant to read by humans",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -8,9 +8,5 @@ export const ANSI = createAnsi({
8
8
  processSupportsBasicColor ||
9
9
  // GitHub workflow does support ANSI but "supports-color" returns false
10
10
  // because stream.isTTY returns false, see https://github.com/actions/runner/issues/241
11
- (process.env.GITHUB_WORKFLOW &&
12
- // Check on FORCE_COLOR is to ensure it is prio over GitHub workflow check
13
- // in unit test we use process.env.FORCE_COLOR = 'false' to fake
14
- // that colors are not supported. Let it have priority
15
- process.env.FORCE_COLOR !== "false"),
11
+ process.env.GITHUB_WORKFLOW,
16
12
  });