@redocly/cli 2.41.2 → 2.43.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.
- package/README.md +15 -0
- package/THIRD_PARTY_NOTICES +3 -2
- package/lib/chunks/32XCOMOR.js +7 -0
- package/lib/chunks/3BCHPW6T.js +22 -0
- package/lib/chunks/3VZLNQK3.js +47 -0
- package/lib/chunks/4VF6MPJJ.js +11 -0
- package/lib/chunks/55GMSQDD.js +7 -0
- package/lib/chunks/5E3VKU5T.js +7 -0
- package/lib/chunks/AE6JGTY4.js +7 -0
- package/lib/chunks/C35TOMVY.js +8 -0
- package/lib/chunks/D5T6ETPZ.js +8 -0
- package/lib/chunks/DNOXLF53.js +8 -0
- package/lib/chunks/E36IFTLX.js +59 -0
- package/lib/chunks/ECZUPR2N.js +7 -0
- package/lib/chunks/EU6GURJZ.js +7 -0
- package/lib/chunks/HXYO6QS2.js +3132 -0
- package/lib/chunks/IW4HG6VD.js +19 -0
- package/lib/chunks/KIVPQZDC.js +31 -0
- package/lib/chunks/KLY5RV3W.js +7 -0
- package/lib/chunks/KM7RL6C4.js +2317 -0
- package/lib/chunks/L3YH7RCT.js +8 -0
- package/lib/chunks/NEWT5A6S.js +159 -0
- package/lib/chunks/NGPG6D6W.js +7 -0
- package/lib/chunks/O6MCQRCP.js +59 -0
- package/lib/chunks/O6PRCLSV.js +13 -0
- package/lib/chunks/OFAMJNQ6.js +7 -0
- package/lib/chunks/P26PQ2RU.js +7 -0
- package/lib/chunks/PFD7KGH7.js +93 -0
- package/lib/chunks/QFG7TTKG.js +22 -0
- package/lib/chunks/RFWIIJFG.js +7 -0
- package/lib/chunks/RS5PUOTT.js +18 -0
- package/lib/chunks/TMQJQANP.js +7 -0
- package/lib/chunks/UPPWQBGX.js +7 -0
- package/lib/chunks/UXH3ZSSV.js +9 -0
- package/lib/chunks/UYZXI3NO.js +7 -0
- package/lib/chunks/WNTLDT6L.js +184 -0
- package/lib/chunks/WZXA5XPB.js +7 -0
- package/lib/chunks/X6IKW6K4.js +7 -0
- package/lib/index.js +226 -13885
- package/package.json +1 -1
- package/lib/chunks/3CX2Z7JI.js +0 -496
- package/lib/chunks/3UUTQVCJ.js +0 -3614
- package/lib/chunks/4FB5ZIPP.js +0 -1133
- package/lib/chunks/5ILQMFXK.js +0 -59
- package/lib/chunks/7F5O43EU.js +0 -1756
- package/lib/chunks/7IX44JLO.js +0 -16
- package/lib/chunks/7MOL2QVN.js +0 -92635
- package/lib/chunks/A3VFVVHD.js +0 -25
- package/lib/chunks/A6JSOHCP.js +0 -41
- package/lib/chunks/AIT3U3JT.js +0 -22
- package/lib/chunks/ASYQPOQY.js +0 -681
- package/lib/chunks/BVP23YP7.js +0 -13374
- package/lib/chunks/FO6BDVGE.js +0 -25
- package/lib/chunks/GFU5KGSW.js +0 -92
- package/lib/chunks/ICPYP2LP.js +0 -401
- package/lib/chunks/KPMZLKQG.js +0 -79
- package/lib/chunks/KRMBH6JF.js +0 -17902
- package/lib/chunks/NLIKC7UP.js +0 -528
- package/lib/chunks/NW3XJZXQ.js +0 -175
- package/lib/chunks/P6UGG7F6.js +0 -414
- package/lib/chunks/RRC5IDC3.js +0 -2416
- package/lib/chunks/T6UZU3XM.js +0 -17
- package/lib/chunks/TS33ZDKX.js +0 -35
- package/lib/chunks/UUU33DK3.js +0 -125
- package/lib/chunks/VUDTNFRL.js +0 -42
- package/lib/chunks/VXIQEZPR.js +0 -2564
- package/lib/chunks/W7G5WVPB.js +0 -44
- package/lib/chunks/XB6C62FW.js +0 -18497
- package/lib/chunks/XHPY6UJF.js +0 -1638
- package/lib/chunks/Y6DTFCLS.js +0 -15
- package/lib/chunks/Z2664VV5.js +0 -39331
- package/lib/chunks/Z2I5YXYN.js +0 -20272
- package/lib/chunks/ZK3QRKL5.js +0 -129
package/lib/chunks/T6UZU3XM.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
const require = __createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
HandledError
|
|
5
|
-
} from "./Z2664VV5.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
|
-
};
|
package/lib/chunks/TS33ZDKX.js
DELETED
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
const require = __createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
esm_exports,
|
|
5
|
-
init_esm
|
|
6
|
-
} from "./XHPY6UJF.js";
|
|
7
|
-
import {
|
|
8
|
-
__commonJS,
|
|
9
|
-
__require,
|
|
10
|
-
__toCommonJS
|
|
11
|
-
} from "./5ILQMFXK.js";
|
|
12
|
-
|
|
13
|
-
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js
|
|
14
|
-
var require_getMachineId_linux = __commonJS({
|
|
15
|
-
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-linux.js"(exports) {
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.getMachineId = void 0;
|
|
18
|
-
var fs_1 = __require("fs");
|
|
19
|
-
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
20
|
-
async function getMachineId() {
|
|
21
|
-
const paths = ["/etc/machine-id", "/var/lib/dbus/machine-id"];
|
|
22
|
-
for (const path of paths) {
|
|
23
|
-
try {
|
|
24
|
-
const result = await fs_1.promises.readFile(path, { encoding: "utf8" });
|
|
25
|
-
return result.trim();
|
|
26
|
-
} catch (e) {
|
|
27
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
return void 0;
|
|
31
|
-
}
|
|
32
|
-
exports.getMachineId = getMachineId;
|
|
33
|
-
}
|
|
34
|
-
});
|
|
35
|
-
export default require_getMachineId_linux();
|
package/lib/chunks/UUU33DK3.js
DELETED
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
};
|
package/lib/chunks/VUDTNFRL.js
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
const require = __createRequire(import.meta.url);
|
|
3
|
-
import {
|
|
4
|
-
require_execAsync
|
|
5
|
-
} from "./AIT3U3JT.js";
|
|
6
|
-
import {
|
|
7
|
-
esm_exports,
|
|
8
|
-
init_esm
|
|
9
|
-
} from "./XHPY6UJF.js";
|
|
10
|
-
import {
|
|
11
|
-
__commonJS,
|
|
12
|
-
__require,
|
|
13
|
-
__toCommonJS
|
|
14
|
-
} from "./5ILQMFXK.js";
|
|
15
|
-
|
|
16
|
-
// ../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js
|
|
17
|
-
var require_getMachineId_bsd = __commonJS({
|
|
18
|
-
"../../node_modules/@opentelemetry/resources/build/src/detectors/platform/node/machine-id/getMachineId-bsd.js"(exports) {
|
|
19
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
|
-
exports.getMachineId = void 0;
|
|
21
|
-
var fs_1 = __require("fs");
|
|
22
|
-
var execAsync_1 = require_execAsync();
|
|
23
|
-
var api_1 = (init_esm(), __toCommonJS(esm_exports));
|
|
24
|
-
async function getMachineId() {
|
|
25
|
-
try {
|
|
26
|
-
const result = await fs_1.promises.readFile("/etc/hostid", { encoding: "utf8" });
|
|
27
|
-
return result.trim();
|
|
28
|
-
} catch (e) {
|
|
29
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
30
|
-
}
|
|
31
|
-
try {
|
|
32
|
-
const result = await (0, execAsync_1.execAsync)("kenv -q smbios.system.uuid");
|
|
33
|
-
return result.stdout.trim();
|
|
34
|
-
} catch (e) {
|
|
35
|
-
api_1.diag.debug(`error reading machine id: ${e}`);
|
|
36
|
-
}
|
|
37
|
-
return void 0;
|
|
38
|
-
}
|
|
39
|
-
exports.getMachineId = getMachineId;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
export default require_getMachineId_bsd();
|