@redocly/cli 2.37.0 → 2.39.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.
@@ -4,6 +4,9 @@ import {
4
4
  require_json_pointer,
5
5
  require_openapi_sampler
6
6
  } from "./VXIQEZPR.js";
7
+ import {
8
+ require_supports_color
9
+ } from "./UUU33DK3.js";
7
10
  import {
8
11
  bundle,
9
12
  createConfig,
@@ -13,9 +16,8 @@ import {
13
16
  isPlainObject,
14
17
  lint,
15
18
  pluralize,
16
- require__,
17
- require_supports_color
18
- } from "./CPNIO4J3.js";
19
+ require__
20
+ } from "./KYZEVOA2.js";
19
21
  import {
20
22
  __commonJS,
21
23
  __toESM
@@ -1,5 +1,9 @@
1
1
  import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
+ import {
4
+ AbortFlowError,
5
+ exitWithError
6
+ } from "./U4V3W7MN.js";
3
7
  import {
4
8
  ConfigValidationError,
5
9
  HandledError,
@@ -23,14 +27,7 @@ import {
23
27
  red,
24
28
  stringifyYaml,
25
29
  yellow
26
- } from "./CPNIO4J3.js";
27
-
28
- // src/utils/error.ts
29
- var AbortFlowError = class extends Error {
30
- };
31
- function exitWithError(message) {
32
- throw new HandledError(message);
33
- }
30
+ } from "./KYZEVOA2.js";
34
31
 
35
32
  // src/commands/lint.ts
36
33
  import { performance as performance3 } from "perf_hooks";
@@ -3592,8 +3589,6 @@ async function handleLintConfig(argv, version, config) {
3592
3589
  }
3593
3590
 
3594
3591
  export {
3595
- AbortFlowError,
3596
- exitWithError,
3597
3592
  handleLint,
3598
3593
  outputExtensions,
3599
3594
  getFallbackApisOrExit,
@@ -0,0 +1,17 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ const require = __createRequire(import.meta.url);
3
+ import {
4
+ HandledError
5
+ } from "./KYZEVOA2.js";
6
+
7
+ // src/utils/error.ts
8
+ var AbortFlowError = class extends Error {
9
+ };
10
+ function exitWithError(message) {
11
+ throw new HandledError(message);
12
+ }
13
+
14
+ export {
15
+ AbortFlowError,
16
+ exitWithError
17
+ };
@@ -0,0 +1,125 @@
1
+ import { createRequire as __createRequire } from 'node:module';
2
+ const require = __createRequire(import.meta.url);
3
+ import {
4
+ __commonJS,
5
+ __require
6
+ } from "./5ILQMFXK.js";
7
+
8
+ // ../../node_modules/has-flag/index.js
9
+ var require_has_flag = __commonJS({
10
+ "../../node_modules/has-flag/index.js"(exports, module) {
11
+ "use strict";
12
+ module.exports = (flag, argv = process.argv) => {
13
+ const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
14
+ const position = argv.indexOf(prefix + flag);
15
+ const terminatorPosition = argv.indexOf("--");
16
+ return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
17
+ };
18
+ }
19
+ });
20
+
21
+ // ../../node_modules/supports-color/index.js
22
+ var require_supports_color = __commonJS({
23
+ "../../node_modules/supports-color/index.js"(exports, module) {
24
+ "use strict";
25
+ var os = __require("os");
26
+ var tty = __require("tty");
27
+ var hasFlag = require_has_flag();
28
+ var { env } = process;
29
+ var forceColor;
30
+ if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
31
+ forceColor = 0;
32
+ } else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
33
+ forceColor = 1;
34
+ }
35
+ if ("FORCE_COLOR" in env) {
36
+ if (env.FORCE_COLOR === "true") {
37
+ forceColor = 1;
38
+ } else if (env.FORCE_COLOR === "false") {
39
+ forceColor = 0;
40
+ } else {
41
+ forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
42
+ }
43
+ }
44
+ function translateLevel(level) {
45
+ if (level === 0) {
46
+ return false;
47
+ }
48
+ return {
49
+ level,
50
+ hasBasic: true,
51
+ has256: level >= 2,
52
+ has16m: level >= 3
53
+ };
54
+ }
55
+ function supportsColor(haveStream, streamIsTTY) {
56
+ if (forceColor === 0) {
57
+ return 0;
58
+ }
59
+ if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
60
+ return 3;
61
+ }
62
+ if (hasFlag("color=256")) {
63
+ return 2;
64
+ }
65
+ if (haveStream && !streamIsTTY && forceColor === void 0) {
66
+ return 0;
67
+ }
68
+ const min = forceColor || 0;
69
+ if (env.TERM === "dumb") {
70
+ return min;
71
+ }
72
+ if (process.platform === "win32") {
73
+ const osRelease = os.release().split(".");
74
+ if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
75
+ return Number(osRelease[2]) >= 14931 ? 3 : 2;
76
+ }
77
+ return 1;
78
+ }
79
+ if ("CI" in env) {
80
+ if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "GITHUB_ACTIONS", "BUILDKITE"].some((sign) => sign in env) || env.CI_NAME === "codeship") {
81
+ return 1;
82
+ }
83
+ return min;
84
+ }
85
+ if ("TEAMCITY_VERSION" in env) {
86
+ return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
87
+ }
88
+ if (env.COLORTERM === "truecolor") {
89
+ return 3;
90
+ }
91
+ if ("TERM_PROGRAM" in env) {
92
+ const version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
93
+ switch (env.TERM_PROGRAM) {
94
+ case "iTerm.app":
95
+ return version >= 3 ? 3 : 2;
96
+ case "Apple_Terminal":
97
+ return 2;
98
+ }
99
+ }
100
+ if (/-256(color)?$/i.test(env.TERM)) {
101
+ return 2;
102
+ }
103
+ if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
104
+ return 1;
105
+ }
106
+ if ("COLORTERM" in env) {
107
+ return 1;
108
+ }
109
+ return min;
110
+ }
111
+ function getSupportLevel(stream) {
112
+ const level = supportsColor(stream, stream && stream.isTTY);
113
+ return translateLevel(level);
114
+ }
115
+ module.exports = {
116
+ supportsColor: getSupportLevel,
117
+ stdout: translateLevel(supportsColor(true, tty.isatty(1))),
118
+ stderr: translateLevel(supportsColor(true, tty.isatty(2)))
119
+ };
120
+ }
121
+ });
122
+
123
+ export {
124
+ require_supports_color
125
+ };
@@ -2,11 +2,13 @@ import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
3
  import {
4
4
  RedoclyOAuthClient
5
- } from "./U3LS66ZD.js";
5
+ } from "./BA5AZJUM.js";
6
6
  import "./Y6DTFCLS.js";
7
- import "./YCTAWG2U.js";
8
- import "./IVW4MILQ.js";
9
- import "./CPNIO4J3.js";
7
+ import "./4FB5ZIPP.js";
8
+ import "./2LEVMD2A.js";
9
+ import "./XB6C62FW.js";
10
+ import "./UUU33DK3.js";
11
+ import "./KYZEVOA2.js";
10
12
  import "./Z2I5YXYN.js";
11
13
  import "./5ILQMFXK.js";
12
14
  export {
@@ -1,28 +1,31 @@
1
1
  import { createRequire as __createRequire } from 'node:module';
2
2
  const require = __createRequire(import.meta.url);
3
3
  import {
4
- exitWithError,
5
4
  getExecutionTime,
6
5
  getFallbackApisOrExit
7
- } from "./4UQ4YHWW.js";
6
+ } from "./OYZMAAZV.js";
7
+ import {
8
+ exitWithError
9
+ } from "./U4V3W7MN.js";
8
10
  import {
9
11
  require_dist
10
- } from "./YCTAWG2U.js";
12
+ } from "./4FB5ZIPP.js";
11
13
  import {
12
14
  redocStandaloneSri,
13
15
  redocVersion
14
- } from "./IVW4MILQ.js";
16
+ } from "./2LEVMD2A.js";
15
17
  import {
16
18
  require_json_pointer,
17
19
  require_openapi_sampler
18
20
  } from "./VXIQEZPR.js";
21
+ import "./UUU33DK3.js";
19
22
  import {
20
23
  isAbsoluteUrl,
21
24
  logger,
22
25
  require_fast_deep_equal,
23
26
  require_json_schema_traverse,
24
27
  require_pluralize
25
- } from "./CPNIO4J3.js";
28
+ } from "./KYZEVOA2.js";
26
29
  import "./Z2I5YXYN.js";
27
30
  import {
28
31
  __commonJS,
@@ -8,9 +8,10 @@ import {
8
8
  maskSecrets,
9
9
  parseRuntimeExpression,
10
10
  run
11
- } from "./FRVYIHIR.js";
11
+ } from "./OVY6O6WL.js";
12
12
  import "./VXIQEZPR.js";
13
- import "./CPNIO4J3.js";
13
+ import "./UUU33DK3.js";
14
+ import "./KYZEVOA2.js";
14
15
  import "./Z2I5YXYN.js";
15
16
  import "./5ILQMFXK.js";
16
17
  export {