@visulima/is-ansi-color-supported 2.2.12 → 2.2.14

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/CHANGELOG.md CHANGED
@@ -1,3 +1,24 @@
1
+ ## @visulima/is-ansi-color-supported [2.2.14](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.13...@visulima/is-ansi-color-supported@2.2.14) (2025-05-30)
2
+
3
+ ### Bug Fixes
4
+
5
+ * **is-ansi-color-supported:** update dependencies ([f3050bb](https://github.com/visulima/visulima/commit/f3050bbdc93e56e6c94535ccd4b2ff31afc52492))
6
+
7
+ ### Miscellaneous Chores
8
+
9
+ * updated dev dependencies ([2433ed5](https://github.com/visulima/visulima/commit/2433ed5fb662e0303c37edee8ddc21b46c21263f))
10
+
11
+ ## @visulima/is-ansi-color-supported [2.2.13](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.12...@visulima/is-ansi-color-supported@2.2.13) (2025-03-07)
12
+
13
+ ### Bug Fixes
14
+
15
+ * updated @visulima/packem and other dev deps, for better bundling size ([e940581](https://github.com/visulima/visulima/commit/e9405812201594e54dd81d17ddb74177df5f3c24))
16
+
17
+ ### Miscellaneous Chores
18
+
19
+ * fixed issue with pnpm audit, changed browser path ([67337cb](https://github.com/visulima/visulima/commit/67337cb0395442540e7701c4dc8a4fef8a3fe1a2))
20
+ * updated dev dependencies ([487a976](https://github.com/visulima/visulima/commit/487a976932dc7c39edfc19ffd3968960ff338066))
21
+
1
22
  ## @visulima/is-ansi-color-supported [2.2.12](https://github.com/visulima/visulima/compare/@visulima/is-ansi-color-supported@2.2.11...@visulima/is-ansi-color-supported@2.2.12) (2025-01-25)
2
23
 
3
24
  ### Bug Fixes
package/README.md CHANGED
@@ -169,6 +169,7 @@ If you would like to help take a look at the [list of issues](https://github.com
169
169
  The visulima is-ansi-color-supported is open-sourced software licensed under the [MIT][license-url]
170
170
 
171
171
  [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
172
+
172
173
  [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
173
174
  [license-image]: https://img.shields.io/npm/l/@visulima/is-ansi-color-supported?color=blueviolet&style=for-the-badge
174
175
  [license-url]: LICENSE.md "license"
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.js';
2
+ export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.js';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -25,7 +25,7 @@ const isStdoutColorSupported$1 = isColorSupported$1;
25
25
  var __defProp = Object.defineProperty;
26
26
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
27
27
  const isColorSupported = /* @__PURE__ */ __name(() => (() => {
28
- if (process?.env?.NEXT_RUNTIME !== undefined && process?.env.NEXT_RUNTIME.includes("edge")) {
28
+ if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
29
29
  return SPACE_MONO.SPACE_16_COLORS;
30
30
  }
31
31
  return isStdoutColorSupported$1();
@@ -22,7 +22,7 @@ const isStdoutColorSupported$1 = isColorSupported$1;
22
22
  var __defProp = Object.defineProperty;
23
23
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
24
24
  const isColorSupported = /* @__PURE__ */ __name(() => (() => {
25
- if (process?.env?.NEXT_RUNTIME !== undefined && process?.env.NEXT_RUNTIME.includes("edge")) {
25
+ if (process.env.NEXT_RUNTIME !== void 0 && process.env.NEXT_RUNTIME.includes("edge")) {
26
26
  return SPACE_16_COLORS;
27
27
  }
28
28
  return isStdoutColorSupported$1();
@@ -23,7 +23,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
23
23
  }
24
24
  const FORCE_COLOR = "FORCE_COLOR";
25
25
  const hasForceColor = FORCE_COLOR in environment;
26
- const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : undefined;
26
+ const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
27
27
  const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
28
28
  let forceColor;
29
29
  if (forceColorValue === "true") {
@@ -35,7 +35,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
35
35
  } else if (forceColorValueIsString && forceColorValue.length > 0) {
36
36
  forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
37
37
  }
38
- if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== undefined && forceColor < 4) {
38
+ if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
39
39
  return forceColor;
40
40
  }
41
41
  const isForceDisabled = (
@@ -1,5 +1,5 @@
1
- import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
2
- export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.d.mjs';
1
+ import { C as ColorSupportLevel } from './packem_shared/color-spaces-DeN59JDX.js';
2
+ export { S as SPACE_16_COLORS, a as SPACE_256_COLORS, b as SPACE_MONO, c as SPACE_TRUE_COLORS } from './packem_shared/color-spaces-DeN59JDX.js';
3
3
 
4
4
  declare const isStdoutColorSupported: () => ColorSupportLevel;
5
5
  declare const isStderrColorSupported: () => ColorSupportLevel;
@@ -19,7 +19,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
19
19
  }
20
20
  const FORCE_COLOR = "FORCE_COLOR";
21
21
  const hasForceColor = FORCE_COLOR in environment;
22
- const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : undefined;
22
+ const forceColorValue = environment[FORCE_COLOR] ? String(environment[FORCE_COLOR]) : void 0;
23
23
  const forceColorValueIsString = Object.prototype.toString.call(forceColorValue).slice(8, -1) === "String";
24
24
  let forceColor;
25
25
  if (forceColorValue === "true") {
@@ -31,7 +31,7 @@ const isColorSupportedFactory = /* @__PURE__ */ __name((stdName) => {
31
31
  } else if (forceColorValueIsString && forceColorValue.length > 0) {
32
32
  forceColor = Math.min(Number.parseInt(forceColorValue, 10), 3);
33
33
  }
34
- if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== undefined && forceColor < 4) {
34
+ if (forceColorValue !== "true" && forceColorValue !== "false" && forceColor !== void 0 && forceColor < 4) {
35
35
  return forceColor;
36
36
  }
37
37
  const isForceDisabled = (
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/is-ansi-color-supported",
3
- "version": "2.2.12",
3
+ "version": "2.2.14",
4
4
  "description": "Detect whether a terminal or browser supports ansi colors.",
5
5
  "keywords": [
6
6
  "anolilab",
@@ -101,8 +101,23 @@
101
101
  },
102
102
  "main": "dist/is-color-supported.server.cjs",
103
103
  "module": "dist/is-color-supported.server.mjs",
104
- "browser": "./dist/is-color-supported.browser.mjs",
104
+ "browser": "dist/is-color-supported.browser.mjs",
105
105
  "types": "dist/is-color-supported.server.d.ts",
106
+ "typesVersions": {
107
+ ">=5.0": {
108
+ ".": [
109
+ "./dist/is-color-supported.edge-light.d.ts",
110
+ "./dist/is-color-supported.browser.d.ts",
111
+ "./dist/is-color-supported.server.d.ts"
112
+ ],
113
+ "edge-light": [
114
+ "./dist/is-color-supported.edge-light.d.ts"
115
+ ],
116
+ "browser": [
117
+ "./dist/is-color-supported.browser.d.ts"
118
+ ]
119
+ }
120
+ },
106
121
  "files": [
107
122
  "dist/**",
108
123
  "README.md",
@@ -120,20 +135,5 @@
120
135
  "publishConfig": {
121
136
  "access": "public",
122
137
  "provenance": true
123
- },
124
- "typesVersions": {
125
- ">=5.0": {
126
- ".": [
127
- "./dist/is-color-supported.edge-light.d.ts",
128
- "./dist/is-color-supported.browser.d.ts",
129
- "./dist/is-color-supported.server.d.ts"
130
- ],
131
- "edge-light": [
132
- "./dist/is-color-supported.edge-light.d.ts"
133
- ],
134
- "browser": [
135
- "./dist/is-color-supported.browser.d.ts"
136
- ]
137
- }
138
138
  }
139
139
  }