@socketsecurity/lib 5.18.1 → 5.19.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/CHANGELOG.md +49 -0
- package/README.md +6 -5
- package/dist/abort.d.ts +3 -0
- package/dist/abort.js +1 -0
- package/dist/agent.d.ts +66 -49
- package/dist/agent.js +51 -50
- package/dist/ansi.d.ts +2 -5
- package/dist/ansi.js +3 -2
- package/dist/archives.d.ts +25 -21
- package/dist/archives.js +35 -34
- package/dist/argv/flags.d.ts +100 -91
- package/dist/argv/flags.js +88 -87
- package/dist/argv/parse.d.ts +30 -40
- package/dist/argv/parse.js +33 -32
- package/dist/arrays.d.ts +4 -8
- package/dist/arrays.js +1 -0
- package/dist/bin.d.ts +7 -5
- package/dist/bin.js +52 -29
- package/dist/cacache.d.ts +13 -12
- package/dist/cacache.js +9 -8
- package/dist/cache-with-ttl.d.ts +53 -35
- package/dist/cache-with-ttl.js +1 -0
- package/dist/colors.d.ts +5 -5
- package/dist/colors.js +1 -0
- package/dist/constants/agents.d.ts +5 -9
- package/dist/constants/agents.js +3 -2
- package/dist/constants/core.d.ts +5 -10
- package/dist/constants/core.js +2 -1
- package/dist/constants/encoding.d.ts +3 -3
- package/dist/constants/encoding.js +1 -0
- package/dist/constants/github.d.ts +3 -3
- package/dist/constants/github.js +1 -0
- package/dist/constants/licenses.d.ts +9 -2
- package/dist/constants/licenses.js +1 -0
- package/dist/constants/lifecycle-script-names.js +1 -0
- package/dist/constants/maintained-node-versions.d.ts +3 -0
- package/dist/constants/maintained-node-versions.js +1 -0
- package/dist/constants/node.d.ts +125 -16
- package/dist/constants/node.js +74 -73
- package/dist/constants/package-default-node-range.d.ts +3 -1
- package/dist/constants/package-default-node-range.js +2 -1
- package/dist/constants/package-default-socket-categories.d.ts +0 -1
- package/dist/constants/package-default-socket-categories.js +1 -0
- package/dist/constants/packages.d.ts +12 -17
- package/dist/constants/packages.js +31 -16
- package/dist/constants/platform.d.ts +1 -2
- package/dist/constants/platform.js +2 -1
- package/dist/constants/process.d.ts +18 -0
- package/dist/constants/process.js +1 -0
- package/dist/constants/socket.d.ts +4 -10
- package/dist/constants/socket.js +2 -1
- package/dist/constants/testing.d.ts +3 -3
- package/dist/constants/testing.js +1 -0
- package/dist/constants/time.d.ts +3 -4
- package/dist/constants/time.js +1 -0
- package/dist/constants/typescript.d.ts +10 -3
- package/dist/constants/typescript.js +5 -4
- package/dist/cover/code.d.ts +3 -0
- package/dist/cover/code.js +12 -12
- package/dist/cover/formatters.d.ts +12 -9
- package/dist/cover/formatters.js +19 -18
- package/dist/cover/type.d.ts +3 -0
- package/dist/cover/type.js +1 -0
- package/dist/cover/types.js +1 -0
- package/dist/debug.d.ts +32 -47
- package/dist/debug.js +97 -96
- package/dist/dlx/arborist.d.ts +134 -0
- package/dist/dlx/arborist.js +177 -0
- package/dist/dlx/binary.d.ts +25 -9
- package/dist/dlx/binary.js +34 -12
- package/dist/dlx/cache.d.ts +1 -0
- package/dist/dlx/cache.js +2 -1
- package/dist/dlx/detect.d.ts +15 -0
- package/dist/dlx/detect.js +28 -20
- package/dist/dlx/dir.d.ts +1 -11
- package/dist/dlx/dir.js +2 -12
- package/dist/dlx/integrity.d.ts +86 -0
- package/dist/dlx/integrity.js +112 -0
- package/dist/dlx/lockfile.d.ts +115 -0
- package/dist/dlx/lockfile.js +139 -0
- package/dist/dlx/manifest.d.ts +26 -1
- package/dist/dlx/manifest.js +9 -6
- package/dist/dlx/package.d.ts +58 -3
- package/dist/dlx/package.js +101 -74
- package/dist/dlx/packages.d.ts +1 -11
- package/dist/dlx/packages.js +3 -14
- package/dist/dlx/paths.d.ts +1 -0
- package/dist/dlx/paths.js +2 -1
- package/dist/effects/pulse-frames.js +1 -0
- package/dist/effects/text-shimmer.d.ts +13 -2
- package/dist/effects/text-shimmer.js +50 -46
- package/dist/effects/types.js +1 -0
- package/dist/effects/ultra.js +1 -0
- package/dist/env/ci.d.ts +6 -1
- package/dist/env/ci.js +1 -0
- package/dist/env/debug.d.ts +5 -1
- package/dist/env/debug.js +1 -0
- package/dist/env/github.d.ts +19 -23
- package/dist/env/github.js +5 -4
- package/dist/env/helpers.d.ts +21 -9
- package/dist/env/helpers.js +5 -11
- package/dist/env/home.d.ts +17 -4
- package/dist/env/home.js +2 -1
- package/dist/env/locale.d.ts +4 -3
- package/dist/env/locale.js +1 -0
- package/dist/env/node-auth-token.d.ts +5 -1
- package/dist/env/node-auth-token.js +1 -0
- package/dist/env/node-env.d.ts +5 -1
- package/dist/env/node-env.js +1 -0
- package/dist/env/npm.d.ts +4 -5
- package/dist/env/npm.js +1 -0
- package/dist/env/package-manager.d.ts +4 -3
- package/dist/env/package-manager.js +2 -1
- package/dist/env/path.d.ts +5 -1
- package/dist/env/path.js +1 -0
- package/dist/env/pre-commit.d.ts +5 -1
- package/dist/env/pre-commit.js +1 -0
- package/dist/env/rewire.d.ts +10 -0
- package/dist/env/rewire.js +7 -5
- package/dist/env/shell.d.ts +5 -1
- package/dist/env/shell.js +1 -0
- package/dist/env/socket-cli-shadow.d.ts +4 -5
- package/dist/env/socket-cli-shadow.js +1 -0
- package/dist/env/socket-cli.d.ts +4 -14
- package/dist/env/socket-cli.js +1 -0
- package/dist/env/socket.d.ts +6 -18
- package/dist/env/socket.js +4 -3
- package/dist/env/temp-dir.d.ts +4 -3
- package/dist/env/temp-dir.js +1 -0
- package/dist/env/term.d.ts +5 -1
- package/dist/env/term.js +1 -0
- package/dist/env/test.d.ts +4 -3
- package/dist/env/test.js +1 -0
- package/dist/env/windows.d.ts +4 -4
- package/dist/env/windows.js +1 -0
- package/dist/env/xdg.d.ts +4 -3
- package/dist/env/xdg.js +1 -0
- package/dist/env.d.ts +83 -23
- package/dist/env.js +112 -80
- package/dist/errors.js +1 -0
- package/dist/external/@npmcli/package-json.js +9 -3968
- package/dist/external/@socketregistry/packageurl-js.js +2 -2
- package/dist/external/debug.js +162 -328
- package/dist/external/external-pack.js +3 -2835
- package/dist/external/npm-pack.js +13939 -33342
- package/dist/external/zod.js +160 -7558
- package/dist/fs.d.ts +92 -113
- package/dist/fs.js +35 -35
- package/dist/git.d.ts +170 -164
- package/dist/git.js +113 -87
- package/dist/github.d.ts +249 -227
- package/dist/github.js +82 -81
- package/dist/globs.d.ts +31 -17
- package/dist/globs.js +51 -58
- package/dist/http-request.d.ts +99 -99
- package/dist/http-request.js +182 -156
- package/dist/ipc-cli.d.ts +28 -0
- package/dist/{utils/get-ipc.js → ipc-cli.js} +4 -3
- package/dist/ipc.d.ts +9 -299
- package/dist/ipc.js +18 -204
- package/dist/json/edit.d.ts +3 -1
- package/dist/json/edit.js +30 -30
- package/dist/json/format.d.ts +36 -36
- package/dist/json/format.js +22 -21
- package/dist/json/parse.d.ts +4 -2
- package/dist/json/parse.js +1 -0
- package/dist/json/types.js +1 -0
- package/dist/{links/index.d.ts → links.d.ts} +6 -2
- package/dist/{links/index.js → links.js} +5 -4
- package/dist/logger.d.ts +4 -6
- package/dist/logger.js +61 -53
- package/dist/memoization.d.ts +52 -49
- package/dist/memoization.js +55 -33
- package/dist/objects.d.ts +25 -44
- package/dist/objects.js +2 -1
- package/dist/package-extensions.d.ts +6 -0
- package/dist/package-extensions.js +2 -1
- package/dist/packages/edit.d.ts +3 -5
- package/dist/packages/edit.js +4 -3
- package/dist/packages/exports.d.ts +11 -14
- package/dist/packages/exports.js +11 -10
- package/dist/packages/isolation.d.ts +4 -0
- package/dist/packages/isolation.js +20 -19
- package/dist/packages/licenses.d.ts +3 -10
- package/dist/packages/licenses.js +2 -1
- package/dist/packages/manifest.d.ts +3 -3
- package/dist/packages/manifest.js +1 -0
- package/dist/packages/normalize.d.ts +3 -4
- package/dist/packages/normalize.js +1 -0
- package/dist/packages/operations.d.ts +3 -10
- package/dist/packages/operations.js +1 -0
- package/dist/packages/provenance.d.ts +10 -8
- package/dist/packages/provenance.js +55 -54
- package/dist/packages/specs.d.ts +3 -5
- package/dist/packages/specs.js +1 -0
- package/dist/packages/validation.d.ts +3 -3
- package/dist/packages/validation.js +1 -0
- package/dist/packages.d.ts +2 -17
- package/dist/packages.js +2 -1
- package/dist/paths/dirnames.d.ts +0 -2
- package/dist/paths/dirnames.js +1 -0
- package/dist/paths/exts.d.ts +0 -1
- package/dist/paths/exts.js +1 -0
- package/dist/paths/filenames.d.ts +0 -1
- package/dist/paths/filenames.js +1 -0
- package/dist/paths/globs.d.ts +0 -1
- package/dist/paths/globs.js +1 -0
- package/dist/paths/normalize.d.ts +115 -123
- package/dist/paths/normalize.js +128 -127
- package/dist/paths/packages.d.ts +3 -2
- package/dist/paths/packages.js +2 -1
- package/dist/paths/rewire.d.ts +9 -0
- package/dist/paths/rewire.js +5 -3
- package/dist/paths/socket.d.ts +37 -23
- package/dist/paths/socket.js +26 -25
- package/dist/performance.d.ts +87 -84
- package/dist/performance.js +97 -96
- package/dist/process-lock.d.ts +41 -1
- package/dist/process-lock.js +24 -17
- package/dist/promise-queue.d.ts +6 -0
- package/dist/promise-queue.js +1 -0
- package/dist/promises.d.ts +40 -55
- package/dist/promises.js +12 -11
- package/dist/regexps.d.ts +0 -5
- package/dist/regexps.js +1 -0
- package/dist/releases/github.d.ts +59 -63
- package/dist/releases/github.js +95 -100
- package/dist/releases/socket-btm.d.ts +9 -2
- package/dist/releases/socket-btm.js +32 -25
- package/dist/sea.d.ts +5 -0
- package/dist/sea.js +1 -0
- package/dist/shadow.d.ts +4 -0
- package/dist/shadow.js +1 -0
- package/dist/signal-exit.d.ts +7 -7
- package/dist/signal-exit.js +46 -45
- package/dist/sorts.d.ts +5 -7
- package/dist/sorts.js +11 -10
- package/dist/spawn.d.ts +96 -77
- package/dist/spawn.js +39 -38
- package/dist/spinner.d.ts +21 -22
- package/dist/spinner.js +15 -11
- package/dist/ssri.d.ts +31 -36
- package/dist/ssri.js +15 -14
- package/dist/stdio/_stream.d.ts +31 -0
- package/dist/stdio/_stream.js +57 -0
- package/dist/stdio/divider.d.ts +40 -36
- package/dist/stdio/divider.js +10 -9
- package/dist/stdio/footer.d.ts +20 -0
- package/dist/stdio/footer.js +12 -2
- package/dist/stdio/header.d.ts +4 -16
- package/dist/stdio/header.js +1 -9
- package/dist/stdio/stderr.d.ts +51 -39
- package/dist/stdio/stderr.js +19 -22
- package/dist/stdio/stdout.d.ts +54 -52
- package/dist/stdio/stdout.js +35 -33
- package/dist/streams.d.ts +4 -3
- package/dist/streams.js +1 -0
- package/dist/strings.d.ts +31 -85
- package/dist/strings.js +5 -49
- package/dist/suppress-warnings.d.ts +32 -15
- package/dist/suppress-warnings.js +14 -13
- package/dist/tables.d.ts +30 -26
- package/dist/tables.js +24 -23
- package/dist/temporary-executor.d.ts +4 -0
- package/dist/temporary-executor.js +1 -0
- package/dist/themes/context.d.ts +30 -26
- package/dist/themes/context.js +19 -18
- package/dist/themes/index.d.ts +0 -4
- package/dist/themes/index.js +1 -0
- package/dist/themes/themes.d.ts +1 -1
- package/dist/themes/themes.js +1 -0
- package/dist/themes/types.js +1 -0
- package/dist/themes/utils.d.ts +46 -43
- package/dist/themes/utils.js +45 -44
- package/dist/types.d.ts +48 -52
- package/dist/types.js +35 -35
- package/dist/url.d.ts +48 -53
- package/dist/url.js +38 -37
- package/dist/validation/json-parser.d.ts +19 -190
- package/dist/validation/json-parser.js +5 -69
- package/dist/validation/types.d.ts +9 -33
- package/dist/validation/types.js +1 -0
- package/dist/versions.d.ts +1 -0
- package/dist/versions.js +2 -1
- package/dist/words.d.ts +3 -6
- package/dist/words.js +1 -0
- package/dist/zod.js +1 -0
- package/package.json +34 -70
- package/dist/external/@inquirer/checkbox.js +0 -5
- package/dist/external/@inquirer/confirm.js +0 -5
- package/dist/external/@inquirer/input.js +0 -5
- package/dist/external/@inquirer/password.js +0 -5
- package/dist/external/@inquirer/search.js +0 -5
- package/dist/external/@inquirer/select.js +0 -5
- package/dist/functions.d.ts +0 -57
- package/dist/functions.js +0 -70
- package/dist/stdio/clear.d.ts +0 -140
- package/dist/stdio/clear.js +0 -95
- package/dist/stdio/mask.d.ts +0 -151
- package/dist/stdio/mask.js +0 -224
- package/dist/stdio/progress.d.ts +0 -148
- package/dist/stdio/progress.js +0 -212
- package/dist/stdio/prompts.d.ts +0 -195
- package/dist/stdio/prompts.js +0 -176
- package/dist/utils/get-ipc.d.ts +0 -15
package/dist/stdio/prompts.js
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* Socket Lib - Built with esbuild */
|
|
3
|
-
var __create = Object.create;
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
-
var __export = (target, all) => {
|
|
10
|
-
for (var name in all)
|
|
11
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from))
|
|
16
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
17
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
18
|
-
}
|
|
19
|
-
return to;
|
|
20
|
-
};
|
|
21
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
22
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
23
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
24
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
25
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
26
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
27
|
-
mod
|
|
28
|
-
));
|
|
29
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
30
|
-
var prompts_exports = {};
|
|
31
|
-
__export(prompts_exports, {
|
|
32
|
-
Separator: () => ActualSeparator,
|
|
33
|
-
checkbox: () => checkbox,
|
|
34
|
-
confirm: () => confirm,
|
|
35
|
-
createInquirerTheme: () => createInquirerTheme,
|
|
36
|
-
createSeparator: () => createSeparator,
|
|
37
|
-
input: () => input,
|
|
38
|
-
password: () => password,
|
|
39
|
-
search: () => search,
|
|
40
|
-
select: () => select,
|
|
41
|
-
wrapPrompt: () => wrapPrompt
|
|
42
|
-
});
|
|
43
|
-
module.exports = __toCommonJS(prompts_exports);
|
|
44
|
-
var import_process = require("../constants/process");
|
|
45
|
-
var import_checkbox = __toESM(require("../external/@inquirer/checkbox"));
|
|
46
|
-
var import_confirm = __toESM(require("../external/@inquirer/confirm"));
|
|
47
|
-
var import_input = __toESM(require("../external/@inquirer/input"));
|
|
48
|
-
var import_password = __toESM(require("../external/@inquirer/password"));
|
|
49
|
-
var searchModule = __toESM(require("../external/@inquirer/search"));
|
|
50
|
-
var selectModuleImport = __toESM(require("../external/@inquirer/select"));
|
|
51
|
-
var import_yoctocolors_cjs = __toESM(require("../external/yoctocolors-cjs"));
|
|
52
|
-
var import_spinner = require("../spinner");
|
|
53
|
-
var import_context = require("../themes/context");
|
|
54
|
-
var import_themes = require("../themes/themes");
|
|
55
|
-
var import_utils = require("../themes/utils");
|
|
56
|
-
const abortSignal = (0, import_process.getAbortSignal)();
|
|
57
|
-
const spinner = (0, import_spinner.getDefaultSpinner)();
|
|
58
|
-
const searchRaw = searchModule.default;
|
|
59
|
-
const selectModule = selectModuleImport;
|
|
60
|
-
const selectRaw = selectModule.default;
|
|
61
|
-
const ActualSeparator = selectModule.Separator;
|
|
62
|
-
function applyColor(text, color) {
|
|
63
|
-
if (typeof color === "string") {
|
|
64
|
-
return import_yoctocolors_cjs.default[color](text);
|
|
65
|
-
}
|
|
66
|
-
const { 0: r, 1: g, 2: b } = color;
|
|
67
|
-
return `\x1B[38;2;${r};${g};${b}m${text}\x1B[39m`;
|
|
68
|
-
}
|
|
69
|
-
function resolveTheme(theme) {
|
|
70
|
-
return typeof theme === "string" ? import_themes.THEMES[theme] : theme;
|
|
71
|
-
}
|
|
72
|
-
function isSocketTheme(value) {
|
|
73
|
-
return typeof value === "object" && value !== null && "name" in value && "colors" in value;
|
|
74
|
-
}
|
|
75
|
-
function createInquirerTheme(theme) {
|
|
76
|
-
if (typeof theme === "string" || isSocketTheme(theme)) {
|
|
77
|
-
const socketTheme = resolveTheme(theme);
|
|
78
|
-
const promptColor = (0, import_utils.resolveColor)(
|
|
79
|
-
socketTheme.colors.prompt,
|
|
80
|
-
socketTheme.colors
|
|
81
|
-
);
|
|
82
|
-
const textDimColor = (0, import_utils.resolveColor)(
|
|
83
|
-
socketTheme.colors.textDim,
|
|
84
|
-
socketTheme.colors
|
|
85
|
-
);
|
|
86
|
-
const errorColor = socketTheme.colors.error;
|
|
87
|
-
const successColor = socketTheme.colors.success;
|
|
88
|
-
const primaryColor = socketTheme.colors.primary;
|
|
89
|
-
return {
|
|
90
|
-
style: {
|
|
91
|
-
// Message text (uses colors.prompt)
|
|
92
|
-
message: (text) => applyColor(text, promptColor),
|
|
93
|
-
// Answer text (uses primary color)
|
|
94
|
-
answer: (text) => applyColor(text, primaryColor),
|
|
95
|
-
// Help text / descriptions (uses textDim)
|
|
96
|
-
help: (text) => applyColor(text, textDimColor),
|
|
97
|
-
description: (text) => applyColor(text, textDimColor),
|
|
98
|
-
// Disabled items (uses textDim)
|
|
99
|
-
disabled: (text) => applyColor(text, textDimColor),
|
|
100
|
-
// Error messages (uses error color)
|
|
101
|
-
error: (text) => applyColor(text, errorColor),
|
|
102
|
-
// Highlight/active (uses primary color)
|
|
103
|
-
highlight: (text) => applyColor(text, primaryColor)
|
|
104
|
-
},
|
|
105
|
-
icon: {
|
|
106
|
-
// Use success color for confirmed items
|
|
107
|
-
checked: applyColor("\u2713", successColor),
|
|
108
|
-
unchecked: " ",
|
|
109
|
-
// Cursor uses primary color
|
|
110
|
-
cursor: applyColor("\u276F", primaryColor)
|
|
111
|
-
}
|
|
112
|
-
};
|
|
113
|
-
}
|
|
114
|
-
return theme;
|
|
115
|
-
}
|
|
116
|
-
// @__NO_SIDE_EFFECTS__
|
|
117
|
-
function wrapPrompt(inquirerPrompt) {
|
|
118
|
-
return async (...args) => {
|
|
119
|
-
const origContext = args.length > 1 ? args[1] : void 0;
|
|
120
|
-
const { spinner: contextSpinner, ...contextWithoutSpinner } = origContext ?? {};
|
|
121
|
-
const spinnerInstance = contextSpinner !== void 0 ? contextSpinner : spinner;
|
|
122
|
-
const signal = abortSignal;
|
|
123
|
-
const config = args[0];
|
|
124
|
-
if (config && typeof config === "object") {
|
|
125
|
-
if (!config.theme) {
|
|
126
|
-
config.theme = createInquirerTheme((0, import_context.getTheme)());
|
|
127
|
-
} else {
|
|
128
|
-
config.theme = createInquirerTheme(config.theme);
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
if (origContext) {
|
|
132
|
-
args[1] = {
|
|
133
|
-
signal,
|
|
134
|
-
...contextWithoutSpinner
|
|
135
|
-
};
|
|
136
|
-
} else {
|
|
137
|
-
args[1] = { signal };
|
|
138
|
-
}
|
|
139
|
-
const wasSpinning = !!spinnerInstance?.isSpinning;
|
|
140
|
-
spinnerInstance?.stop();
|
|
141
|
-
let result;
|
|
142
|
-
try {
|
|
143
|
-
result = await inquirerPrompt(...args);
|
|
144
|
-
} catch (e) {
|
|
145
|
-
if (e instanceof TypeError) {
|
|
146
|
-
throw e;
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
if (wasSpinning) {
|
|
150
|
-
spinnerInstance.start();
|
|
151
|
-
}
|
|
152
|
-
return typeof result === "string" ? result.trim() : result;
|
|
153
|
-
};
|
|
154
|
-
}
|
|
155
|
-
const checkbox = /* @__PURE__ */ wrapPrompt(import_checkbox.default);
|
|
156
|
-
const confirm = /* @__PURE__ */ wrapPrompt(import_confirm.default);
|
|
157
|
-
const input = /* @__PURE__ */ wrapPrompt(import_input.default);
|
|
158
|
-
const password = /* @__PURE__ */ wrapPrompt(import_password.default);
|
|
159
|
-
const search = /* @__PURE__ */ wrapPrompt(searchRaw);
|
|
160
|
-
const select = /* @__PURE__ */ wrapPrompt(selectRaw);
|
|
161
|
-
function createSeparator(text) {
|
|
162
|
-
return new ActualSeparator(text);
|
|
163
|
-
}
|
|
164
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
165
|
-
0 && (module.exports = {
|
|
166
|
-
Separator,
|
|
167
|
-
checkbox,
|
|
168
|
-
confirm,
|
|
169
|
-
createInquirerTheme,
|
|
170
|
-
createSeparator,
|
|
171
|
-
input,
|
|
172
|
-
password,
|
|
173
|
-
search,
|
|
174
|
-
select,
|
|
175
|
-
wrapPrompt
|
|
176
|
-
});
|
package/dist/utils/get-ipc.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* IPC (Inter-Process Communication) object getter.
|
|
3
|
-
* Handles communication between parent and child processes.
|
|
4
|
-
*/
|
|
5
|
-
export interface IpcObject {
|
|
6
|
-
SOCKET_CLI_FIX?: string | undefined;
|
|
7
|
-
SOCKET_CLI_OPTIMIZE?: boolean | undefined;
|
|
8
|
-
SOCKET_CLI_SHADOW_ACCEPT_RISKS?: boolean | undefined;
|
|
9
|
-
SOCKET_CLI_SHADOW_API_TOKEN?: string | undefined;
|
|
10
|
-
SOCKET_CLI_SHADOW_BIN?: string | undefined;
|
|
11
|
-
SOCKET_CLI_SHADOW_PROGRESS?: boolean | undefined;
|
|
12
|
-
SOCKET_CLI_SHADOW_SILENT?: boolean | undefined;
|
|
13
|
-
}
|
|
14
|
-
export declare function getIpc(): Promise<IpcObject>;
|
|
15
|
-
export declare function getIpc<K extends keyof IpcObject>(key: K): Promise<IpcObject[K]>;
|