@socketsecurity/lib 6.0.9 → 6.0.10
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 +6 -0
- package/README.md +8 -9
- package/dist/abort/signal.d.ts +1 -1
- package/dist/abort/signal.js +1 -1
- package/dist/ai/agent-context.d.mts +1 -1
- package/dist/ai/agent-context.js +3 -2
- package/dist/ai/backends.d.mts +3 -3
- package/dist/ai/backends.js +2 -2
- package/dist/ai/billing-context.d.mts +74 -0
- package/dist/ai/billing-context.js +129 -0
- package/dist/ai/credentials.d.mts +39 -5
- package/dist/ai/credentials.js +61 -6
- package/dist/ai/discover.d.mts +4 -0
- package/dist/ai/discover.js +4 -0
- package/dist/ai/exec.d.mts +1 -1
- package/dist/ai/exec.js +1 -1
- package/dist/ai/http.d.mts +8 -8
- package/dist/ai/http.js +6 -6
- package/dist/ai/profiles.d.mts +9 -10
- package/dist/ai/profiles.js +0 -5
- package/dist/ai/role.d.mts +58 -0
- package/dist/ai/role.js +96 -0
- package/dist/ai/route-heuristic.d.mts +177 -0
- package/dist/ai/route-heuristic.js +194 -0
- package/dist/ai/route.d.mts +10 -9
- package/dist/ai/route.js +14 -13
- package/dist/ai/spawn.d.mts +2 -1
- package/dist/ai/spawn.js +25 -2
- package/dist/ai/subagent-status.d.mts +2 -0
- package/dist/ai/subagent-status.js +2 -0
- package/dist/ai/tier.d.mts +1 -1
- package/dist/ai/types.d.mts +9 -2
- package/dist/ai/worktree.d.mts +1 -1
- package/dist/ai/worktree.js +3 -2
- package/dist/argv/parse.d.ts +2 -0
- package/dist/argv/parse.js +2 -0
- package/dist/bin/_internal.d.ts +1 -1
- package/dist/bin/_internal.js +1 -1
- package/dist/bin/prim.cjs +446 -300
- package/dist/bin/shadow.js +2 -1
- package/dist/bin/which.d.ts +28 -3
- package/dist/bin/which.js +45 -3
- package/dist/cacache/_internal.d.ts +10 -2
- package/dist/cacache/_internal.js +6 -10
- package/dist/cache/ttl/_internal.d.ts +33 -0
- package/dist/cache/ttl/_internal.js +68 -0
- package/dist/cache/ttl/browser.d.ts +56 -0
- package/dist/cache/ttl/browser.js +257 -0
- package/dist/cache/ttl/store.js +10 -33
- package/dist/cache/ttl/types.d.ts +46 -3
- package/dist/checks/primordials-defaults.d.ts +5 -5
- package/dist/checks/primordials-defaults.js +5 -5
- package/dist/checks/primordials.d.ts +1 -1
- package/dist/checks/primordials.js +25 -17
- package/dist/cli/check-primordials.d.ts +6 -1
- package/dist/cli/check-primordials.js +14 -5
- package/dist/cli/check.js +1 -1
- package/dist/cli/socket-lib.d.ts +1 -1
- package/dist/cli/socket-lib.js +3 -3
- package/dist/colors/socket-palette.d.ts +1 -1
- package/dist/compression/brotli.d.ts +6 -2
- package/dist/compression/brotli.js +4 -0
- package/dist/compression/gzip.d.ts +6 -2
- package/dist/compression/gzip.js +6 -1
- package/dist/config/layers.d.ts +4 -4
- package/dist/config/layers.js +4 -4
- package/dist/constants/agents.d.ts +3 -0
- package/dist/constants/agents.js +3 -0
- package/dist/constants/node.d.ts +14 -0
- package/dist/constants/node.js +14 -0
- package/dist/constants/package-default-node-range.js +1 -5
- package/dist/constants/packages.d.ts +5 -0
- package/dist/constants/packages.js +5 -0
- package/dist/constants/platform.d.ts +1 -1
- package/dist/constants/platform.js +1 -1
- package/dist/constants/socket.js +1 -1
- package/dist/constants/typescript.d.ts +5 -0
- package/dist/constants/typescript.js +5 -0
- package/dist/debug/_internal.d.ts +22 -7
- package/dist/debug/_internal.js +33 -15
- package/dist/debug/namespace.js +11 -8
- package/dist/debug/output.d.ts +12 -1
- package/dist/debug/output.js +33 -16
- package/dist/dlx/binary-resolution.js +7 -4
- package/dist/eco/npm/npm/parse-lockfile.js +2 -1
- package/dist/eco/npm/vlt/exec.d.ts +1 -1
- package/dist/eco/npm/vlt/exec.js +1 -1
- package/dist/env/agents.d.ts +6 -0
- package/dist/env/agents.js +29 -0
- package/dist/env/flags.d.ts +12 -0
- package/dist/env/flags.js +23 -0
- package/dist/env/github-status.js +2 -2
- package/dist/env/providers.d.ts +6 -0
- package/dist/env/providers.js +23 -0
- package/dist/env/proxy.js +1 -1
- package/dist/env/rewire.d.ts +32 -0
- package/dist/env/rewire.js +55 -23
- package/dist/env/runtimes.d.ts +9 -0
- package/dist/env/runtimes.js +53 -0
- package/dist/env/socket-cli.d.ts +5 -2
- package/dist/env/socket-cli.js +6 -3
- package/dist/errors/predicates.d.ts +3 -2
- package/dist/errors/predicates.js +5 -3
- package/dist/errors/stack.js +2 -1
- package/dist/events/exit/_internal.d.ts +1 -23
- package/dist/external/@npmcli/package-json.js +179 -88
- package/dist/external/@npmcli/promise-spawn.js +2 -2
- package/dist/external/@sinclair/typebox/value.js +5 -4
- package/dist/external/@socketregistry/yocto-spinner.js +3 -3
- package/dist/external/adm-zip.d.ts +82 -0
- package/dist/external/adm-zip.js +2 -2
- package/dist/external/cacache.d.ts +87 -0
- package/dist/external/debug.d.ts +22 -0
- package/dist/external/debug.js +11 -4
- package/dist/external/del.d.ts +1 -0
- package/dist/external/external-pack.d.ts +12 -0
- package/dist/external/external-pack.js +41 -34
- package/dist/external/fast-glob.d.ts +8 -0
- package/dist/external/fast-sort.d.ts +1 -0
- package/dist/external/get-east-asian-width.d.ts +5 -0
- package/dist/external/get-east-asian-width.js +8 -1
- package/dist/external/has-flag.d.ts +1 -0
- package/dist/external/inquirer-pack.d.ts +18 -0
- package/dist/external/libnpmexec.d.ts +35 -0
- package/dist/external/libnpmpack.d.ts +1 -0
- package/dist/external/make-fetch-happen.d.ts +13 -0
- package/dist/external/normalize-package-data.d.ts +4 -0
- package/dist/external/npm-core.d.ts +14 -0
- package/dist/external/npm-pack.d.ts +24 -0
- package/dist/external/npm-pack.js +1551 -1867
- package/dist/external/npm-package-arg.d.ts +4 -0
- package/dist/external/p-map.js +8 -1
- package/dist/external/pacote.d.ts +15 -0
- package/dist/external/pico-pack.d.ts +16 -0
- package/dist/external/pico-pack.js +38 -23
- package/dist/external/picomatch.d.ts +96 -0
- package/dist/external/pony-cause.d.ts +14 -0
- package/dist/external/semver.d.ts +60 -0
- package/dist/external/semver.js +1459 -4
- package/dist/external/shell-quote.d.ts +51 -0
- package/dist/external/shell-quote.js +55 -15
- package/dist/external/signal-exit.d.ts +1 -0
- package/dist/external/spdx-correct.d.ts +4 -0
- package/dist/external/spdx-expression-parse.d.ts +4 -0
- package/dist/external/spdx-pack.d.ts +10 -0
- package/dist/external/std-env.d.ts +284 -0
- package/dist/external/std-env.js +323 -0
- package/dist/external/streaming-iterables.d.ts +11 -0
- package/dist/external/supports-color.d.ts +1 -0
- package/dist/external/tar-fs.d.ts +31 -0
- package/dist/external/validate-npm-package-name.d.ts +4 -0
- package/dist/external/which.d.ts +25 -0
- package/dist/external/which.js +2 -2
- package/dist/external/yargs-parser.d.ts +2 -0
- package/dist/external/yargs-parser.js +11 -3
- package/dist/external/yoctocolors-cjs.d.ts +51 -0
- package/dist/external-tools/bazel/asset-names.d.ts +1 -1
- package/dist/external-tools/bazel/from-download.d.ts +1 -1
- package/dist/external-tools/bazel/resolve.d.ts +3 -0
- package/dist/external-tools/bazel/resolve.js +3 -0
- package/dist/external-tools/cdxgen/asset-names.d.ts +5 -5
- package/dist/external-tools/cdxgen/asset-names.js +3 -3
- package/dist/external-tools/cdxgen/from-download.d.ts +2 -2
- package/dist/external-tools/cdxgen/from-download.js +1 -1
- package/dist/external-tools/cdxgen/resolve.d.ts +4 -1
- package/dist/external-tools/cdxgen/resolve.js +4 -1
- package/dist/external-tools/cdxgen/types.d.ts +1 -1
- package/dist/external-tools/from-download.d.ts +2 -2
- package/dist/external-tools/from-download.js +1 -1
- package/dist/external-tools/janus/asset-names.d.ts +4 -1
- package/dist/external-tools/janus/asset-names.js +3 -0
- package/dist/external-tools/janus/from-download.d.ts +3 -3
- package/dist/external-tools/janus/from-download.js +2 -2
- package/dist/external-tools/janus/resolve.d.ts +3 -0
- package/dist/external-tools/janus/resolve.js +3 -0
- package/dist/external-tools/jre/asset-names.d.ts +3 -1
- package/dist/external-tools/jre/asset-names.js +2 -0
- package/dist/external-tools/jre/from-download.d.ts +1 -1
- package/dist/external-tools/manifest.d.ts +5 -3
- package/dist/external-tools/manifest.js +4 -2
- package/dist/external-tools/opengrep/asset-names.d.ts +1 -1
- package/dist/external-tools/opengrep/resolve.d.ts +3 -0
- package/dist/external-tools/opengrep/resolve.js +3 -0
- package/dist/external-tools/python/asset-names.d.ts +3 -1
- package/dist/external-tools/python/asset-names.js +7 -3
- package/dist/external-tools/python/pin.js +3 -1
- package/dist/external-tools/python/resolve.d.ts +3 -0
- package/dist/external-tools/python/resolve.js +3 -0
- package/dist/external-tools/sbt/resolve.d.ts +3 -0
- package/dist/external-tools/sbt/resolve.js +3 -0
- package/dist/external-tools/skillspector/from-uv.d.ts +1 -1
- package/dist/external-tools/synp/resolve.d.ts +3 -0
- package/dist/external-tools/synp/resolve.js +3 -0
- package/dist/external-tools/trivy/asset-names.d.ts +1 -1
- package/dist/external-tools/trivy/resolve.d.ts +3 -0
- package/dist/external-tools/trivy/resolve.js +3 -0
- package/dist/external-tools/trufflehog/asset-names.d.ts +4 -1
- package/dist/external-tools/trufflehog/asset-names.js +3 -0
- package/dist/external-tools/trufflehog/from-download.d.ts +1 -1
- package/dist/external-tools/trufflehog/resolve.d.ts +3 -0
- package/dist/external-tools/trufflehog/resolve.js +3 -0
- package/dist/external-tools/uv/asset-names.d.ts +1 -1
- package/dist/external-tools/uv/resolve.d.ts +3 -0
- package/dist/external-tools/uv/resolve.js +3 -0
- package/dist/fleet/repo-config.d.ts +8 -6
- package/dist/fleet/repo-config.js +8 -6
- package/dist/fs/_internal.d.ts +1 -1
- package/dist/fs/_internal.js +1 -1
- package/dist/fs/access.d.ts +2 -0
- package/dist/fs/access.js +2 -0
- package/dist/fs/allowed-dirs-cache.js +5 -3
- package/dist/fs/find.js +1 -2
- package/dist/fs/inspect.d.ts +2 -2
- package/dist/fs/read-file.js +3 -4
- package/dist/fs/safe.js +1 -1
- package/dist/git/_internal.js +5 -1
- package/dist/github/commit.d.ts +92 -0
- package/dist/github/commit.js +113 -0
- package/dist/github/ghsa.js +1 -1
- package/dist/github/refs-graphql.js +1 -1
- package/dist/github/request.js +1 -1
- package/dist/github/token.d.ts +5 -2
- package/dist/github/token.js +6 -4
- package/dist/github/workflow-runs.d.ts +107 -0
- package/dist/github/workflow-runs.js +98 -0
- package/dist/http-request/_internal.d.ts +1 -1
- package/dist/http-request/browser.d.ts +6 -0
- package/dist/http-request/browser.js +3 -2
- package/dist/http-request/download.js +2 -0
- package/dist/http-request/headers.d.ts +1 -1
- package/dist/http-request/headers.js +1 -1
- package/dist/http-request/request-attempt.js +6 -3
- package/dist/http-request/request-types.d.ts +10 -1
- package/dist/http-request/request.js +2 -2
- package/dist/http-request/user-agent.d.ts +23 -2
- package/dist/http-request/user-agent.js +48 -6
- package/dist/integrity.d.ts +3 -1
- package/dist/integrity.js +3 -1
- package/dist/json/format.js +4 -1
- package/dist/logger/_internal.d.ts +13 -15
- package/dist/logger/_internal.js +21 -21
- package/dist/logger/colors.d.ts +9 -3
- package/dist/logger/colors.js +6 -13
- package/dist/logger/console-methods.js +2 -2
- package/dist/logger/console.d.ts +1 -0
- package/dist/logger/console.js +9 -9
- package/dist/logger/node.js +2 -1
- package/dist/native-messaging/install.js +1 -1
- package/dist/native-messaging/rate-limit.d.ts +4 -1
- package/dist/native-messaging/rate-limit.js +4 -1
- package/dist/node/events.d.ts +3 -0
- package/dist/node/events.js +3 -0
- package/dist/node/fs.d.ts +1 -1
- package/dist/node/timers-promises.d.ts +3 -0
- package/dist/node/timers-promises.js +3 -0
- package/dist/node/url.d.ts +3 -0
- package/dist/node/url.js +3 -0
- package/dist/npm/meta-cache.d.ts +183 -0
- package/dist/npm/meta-cache.js +318 -0
- package/dist/npm/meta-slice.d.ts +27 -0
- package/dist/npm/meta-slice.js +68 -0
- package/dist/npm/meta-types.d.ts +282 -0
- package/dist/npm/meta-types.js +2 -0
- package/dist/npm/meta.d.ts +125 -0
- package/dist/npm/meta.js +347 -0
- package/dist/npm/registry.d.ts +212 -0
- package/dist/npm/registry.js +284 -0
- package/dist/objects/getters.d.ts +1 -1
- package/dist/objects/getters.js +1 -1
- package/dist/packages/manifest.js +6 -7
- package/dist/packages/metadata-extensions.js +2 -4
- package/dist/packages/provenance.d.ts +8 -0
- package/dist/packages/provenance.js +8 -0
- package/dist/packages/tarball.js +1 -2
- package/dist/packages/validation.d.ts +0 -10
- package/dist/packages/validation.js +0 -14
- package/dist/paths/exts.d.ts +30 -0
- package/dist/paths/exts.js +30 -0
- package/dist/paths/filenames.d.ts +6 -0
- package/dist/paths/filenames.js +6 -0
- package/dist/paths/globs.d.ts +6 -0
- package/dist/paths/globs.js +6 -0
- package/dist/paths/resolve.js +19 -14
- package/dist/paths/socket.d.ts +8 -8
- package/dist/paths/socket.js +8 -8
- package/dist/perf/report.js +4 -2
- package/dist/pkg-ext/data.js +0 -2
- package/dist/primordials/globals.d.ts +1 -1
- package/dist/primordials/globals.js +1 -1
- package/dist/primordials/headers.d.ts +13 -1
- package/dist/primordials/headers.js +13 -1
- package/dist/primordials/process.d.ts +1 -1
- package/dist/primordials/process.js +1 -1
- package/dist/primordials/url.d.ts +18 -0
- package/dist/primordials/url.js +18 -0
- package/dist/process/spawn/child.js +3 -5
- package/dist/promises/_internal.d.ts +1 -1
- package/dist/promises/_internal.js +1 -2
- package/dist/promises/options.js +3 -3
- package/dist/releases/socket-btm-binary-naming.js +12 -1
- package/dist/secrets/_internal.d.ts +1 -1
- package/dist/secrets/_internal.js +1 -1
- package/dist/secrets/find.d.ts +2 -2
- package/dist/secrets/find.js +2 -2
- package/dist/secrets/keychain.d.ts +10 -1
- package/dist/secrets/keychain.js +10 -1
- package/dist/secrets/socket-api-token.d.ts +1 -1
- package/dist/secrets/socket-api-token.js +1 -1
- package/dist/secrets/types.d.ts +1 -1
- package/dist/smol/http.d.ts +2 -0
- package/dist/smol/http.js +2 -0
- package/dist/smol/https.d.ts +2 -0
- package/dist/smol/https.js +2 -0
- package/dist/sorts/_internal.d.ts +2 -3
- package/dist/sorts/_internal.js +1 -3
- package/dist/spinner/format.js +2 -4
- package/dist/stdio/footer.js +8 -7
- package/dist/stdio/prompts.d.ts +8 -15
- package/dist/stdio/prompts.js +18 -29
- package/dist/strings/predicates.d.ts +2 -2
- package/dist/strings/search.js +1 -1
- package/dist/strings/types.d.ts +4 -0
- package/dist/strings/width.d.ts +1 -0
- package/dist/strings/width.js +17 -8
- package/dist/themes/context.d.ts +13 -0
- package/dist/themes/context.js +23 -8
- package/dist/versions/_internal.d.ts +43 -13
- package/dist/versions/_internal.js +27 -15
- package/dist/versions/compare.d.ts +16 -10
- package/dist/versions/compare.js +36 -16
- package/dist/versions/parse.js +1 -1
- package/dist/versions/range.js +3 -2
- package/dist/words/pluralize.js +4 -1
- package/llms.txt +63 -750
- package/package.json +200 -35
|
@@ -80,7 +80,7 @@ var require_posix = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
80
80
|
const myGroups = options.groups ?? process.getgroups?.() ?? [];
|
|
81
81
|
const myGid = options.gid ?? process.getgid?.() ?? myGroups[0];
|
|
82
82
|
if (myUid === void 0 || myGid === void 0) throw new _p_ErrorCtor("cannot get uid or gid");
|
|
83
|
-
const groups = new _p_SetCtor([myGid, ...myGroups]);
|
|
83
|
+
const groups = /* @__PURE__ */ new _p_SetCtor([myGid, ...myGroups]);
|
|
84
84
|
const mod = stat.mode;
|
|
85
85
|
const uid = stat.uid;
|
|
86
86
|
const gid = stat.gid;
|
|
@@ -210,7 +210,7 @@ var require_cjs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
210
210
|
}));
|
|
211
211
|
|
|
212
212
|
//#endregion
|
|
213
|
-
//#region node_modules/.pnpm/which@
|
|
213
|
+
//#region node_modules/.pnpm/which@7.0.0/node_modules/which/lib/index.js
|
|
214
214
|
var require_lib$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
215
215
|
const { isexe, sync: isexeSync } = require_cjs();
|
|
216
216
|
const { join, delimiter, sep, posix } = require("path");
|
|
@@ -3302,7 +3302,7 @@ var require_hash$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
3302
3302
|
let Accumulator = BigInt("14695981039346656037");
|
|
3303
3303
|
const [Prime, Size] = [BigInt("1099511628211"), BigInt("18446744073709551616")];
|
|
3304
3304
|
const Bytes = Array.from({ length: 256 }).map((_, i) => BigInt(i));
|
|
3305
|
-
const F64 = new Float64Array(1);
|
|
3305
|
+
const F64 = /* @__PURE__ */ new Float64Array(1);
|
|
3306
3306
|
const F64In = new DataView(F64.buffer);
|
|
3307
3307
|
const F64Out = new Uint8Array(F64.buffer);
|
|
3308
3308
|
function* NumberToBytes(value) {
|
|
@@ -4960,7 +4960,8 @@ var require_errors$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
/** Returns an iterator for each error in this value. */
|
|
4962
4962
|
function Errors(...args) {
|
|
4963
|
-
|
|
4963
|
+
const iterator = args.length === 3 ? Visit(args[0], args[1], "", args[2]) : Visit(args[0], [], "", args[1]);
|
|
4964
|
+
return new ValueErrorIterator(iterator);
|
|
4964
4965
|
}
|
|
4965
4966
|
}));
|
|
4966
4967
|
|
|
@@ -5327,7 +5328,7 @@ var require_create$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
5327
5328
|
function FromUint8Array(schema, references) {
|
|
5328
5329
|
if ((0, index_1.HasPropertyKey)(schema, "default")) return FromDefault(schema.default);
|
|
5329
5330
|
else if (schema.minByteLength !== void 0) return new Uint8Array(schema.minByteLength);
|
|
5330
|
-
else return new Uint8Array(0);
|
|
5331
|
+
else return /* @__PURE__ */ new Uint8Array(0);
|
|
5331
5332
|
}
|
|
5332
5333
|
function FromUnknown(schema, references) {
|
|
5333
5334
|
if ((0, index_1.HasPropertyKey)(schema, "default")) return FromDefault(schema.default);
|
|
@@ -7103,7 +7104,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
7103
7104
|
exports.ParseError = ParseError;
|
|
7104
7105
|
var ParseRegistry;
|
|
7105
7106
|
(function(ParseRegistry) {
|
|
7106
|
-
const registry = new Map([
|
|
7107
|
+
const registry = /* @__PURE__ */ new Map([
|
|
7107
7108
|
["Assert", (type, references, value) => {
|
|
7108
7109
|
(0, index_3.Assert)(type, references, value);
|
|
7109
7110
|
return value;
|
|
@@ -22,7 +22,7 @@ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).expor
|
|
|
22
22
|
|
|
23
23
|
//#region node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js
|
|
24
24
|
var require_yoctocolors_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
25
|
-
const hasColors = require("
|
|
25
|
+
const hasColors = require("tty")?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
26
26
|
const format = (open, close) => {
|
|
27
27
|
if (!hasColors) return (input) => input;
|
|
28
28
|
const openCode = `\u001B[${open}m`;
|
|
@@ -134,7 +134,7 @@ var require_yocto_spinner = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
134
134
|
}
|
|
135
135
|
let _process;
|
|
136
136
|
function getProcess() {
|
|
137
|
-
if (_process === void 0) _process = require("
|
|
137
|
+
if (_process === void 0) _process = require("process");
|
|
138
138
|
return _process;
|
|
139
139
|
}
|
|
140
140
|
let _yoctocolors;
|
|
@@ -170,7 +170,7 @@ var require_yocto_spinner = /* @__PURE__ */ __commonJSMin(((exports, module) =>
|
|
|
170
170
|
}
|
|
171
171
|
let _stripVTControlCharacters;
|
|
172
172
|
function stripVTControlCharacters(string) {
|
|
173
|
-
if (_stripVTControlCharacters === void 0) _stripVTControlCharacters = (/* @__PURE__ */ require("
|
|
173
|
+
if (_stripVTControlCharacters === void 0) _stripVTControlCharacters = (/* @__PURE__ */ require("util")).stripVTControlCharacters;
|
|
174
174
|
return _stripVTControlCharacters(string);
|
|
175
175
|
}
|
|
176
176
|
function getFrame(spinner, index) {
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export interface IZipEntry {
|
|
2
|
+
entryName: string
|
|
3
|
+
name: string
|
|
4
|
+
comment: string
|
|
5
|
+
isDirectory: boolean
|
|
6
|
+
header: any
|
|
7
|
+
getData(): Buffer
|
|
8
|
+
getDataAsync(callback: (data: Buffer, err?: string) => void): void
|
|
9
|
+
setData(value: string | Buffer): void
|
|
10
|
+
getCompressedData(): Buffer
|
|
11
|
+
toString(): string
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface AdmZipOptions {
|
|
15
|
+
noSort?: boolean
|
|
16
|
+
readEntries?: boolean
|
|
17
|
+
method?: number
|
|
18
|
+
fs?: any
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface AdmZipInstance {
|
|
22
|
+
getEntries(): IZipEntry[]
|
|
23
|
+
getEntry(name: string): IZipEntry | null
|
|
24
|
+
addFile(
|
|
25
|
+
entryName: string,
|
|
26
|
+
content: Buffer,
|
|
27
|
+
comment?: string,
|
|
28
|
+
attr?: number,
|
|
29
|
+
): void
|
|
30
|
+
addLocalFile(
|
|
31
|
+
localPath: string,
|
|
32
|
+
zipPath?: string,
|
|
33
|
+
zipName?: string,
|
|
34
|
+
comment?: string,
|
|
35
|
+
): void
|
|
36
|
+
addLocalFolder(localPath: string, zipPath?: string, filter?: RegExp): void
|
|
37
|
+
addZipComment(comment: string): void
|
|
38
|
+
getZipComment(): string
|
|
39
|
+
deleteFile(entryName: string): void
|
|
40
|
+
extractAllTo(
|
|
41
|
+
targetPath: string,
|
|
42
|
+
overwrite?: boolean,
|
|
43
|
+
keepOriginalPermission?: boolean,
|
|
44
|
+
outFileName?: string,
|
|
45
|
+
): void
|
|
46
|
+
extractEntryTo(
|
|
47
|
+
entry: string | IZipEntry,
|
|
48
|
+
targetPath: string,
|
|
49
|
+
maintainEntryPath?: boolean,
|
|
50
|
+
overwrite?: boolean,
|
|
51
|
+
keepOriginalPermission?: boolean,
|
|
52
|
+
outFileName?: string,
|
|
53
|
+
): boolean
|
|
54
|
+
readAsText(fileName: string, encoding?: string): string
|
|
55
|
+
readFile(
|
|
56
|
+
entry: string | IZipEntry,
|
|
57
|
+
callback?: (data: Buffer, err?: string) => void,
|
|
58
|
+
): Buffer | undefined
|
|
59
|
+
readFileAsync(
|
|
60
|
+
entry: string | IZipEntry,
|
|
61
|
+
callback: (data: Buffer, err: string) => void,
|
|
62
|
+
): void
|
|
63
|
+
toBuffer(
|
|
64
|
+
onSuccess?: Function,
|
|
65
|
+
onFail?: Function,
|
|
66
|
+
onItemStart?: Function,
|
|
67
|
+
onItemEnd?: Function,
|
|
68
|
+
): Buffer | null
|
|
69
|
+
writeZip(
|
|
70
|
+
targetFileName?: string,
|
|
71
|
+
callback?: (error: Error | null) => void,
|
|
72
|
+
): void
|
|
73
|
+
writeZipPromise(targetFileName?: string, props?: object): Promise<void>
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export interface AdmZipConstructor {
|
|
77
|
+
new (filePath?: string | Buffer, options?: AdmZipOptions): AdmZipInstance
|
|
78
|
+
(filePath?: string | Buffer, options?: AdmZipOptions): AdmZipInstance
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
declare const AdmZip: AdmZipConstructor
|
|
82
|
+
export default AdmZip
|
package/dist/external/adm-zip.js
CHANGED
|
@@ -206,7 +206,7 @@ var require_utils = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
206
206
|
const Errors = require_errors();
|
|
207
207
|
const isWin = typeof process === "object" && "win32" === process.platform;
|
|
208
208
|
const is_Obj = (obj) => typeof obj === "object" && obj !== null;
|
|
209
|
-
const crcTable = new _p_Uint32ArrayCtor(256).map((t, c) => {
|
|
209
|
+
const crcTable = (/* @__PURE__ */ new _p_Uint32ArrayCtor(256)).map((t, c) => {
|
|
210
210
|
for (let k = 0; k < 8; k++) if ((c & 1) !== 0) c = 3988292384 ^ c >>> 1;
|
|
211
211
|
else c >>>= 1;
|
|
212
212
|
return c >>> 0;
|
|
@@ -967,7 +967,7 @@ var require_inflater = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
967
967
|
var require_zipcrypto = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
968
968
|
const { randomFillSync } = require("crypto");
|
|
969
969
|
const Errors = require_errors();
|
|
970
|
-
const crctable = new _p_Uint32ArrayCtor(256).map((t, crc) => {
|
|
970
|
+
const crctable = (/* @__PURE__ */ new _p_Uint32ArrayCtor(256)).map((t, crc) => {
|
|
971
971
|
for (let j = 0; j < 8; j++) if (0 !== (crc & 1)) crc = crc >>> 1 ^ 3988292384;
|
|
972
972
|
else crc >>>= 1;
|
|
973
973
|
return crc >>> 0;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
export namespace Cacache {
|
|
2
|
+
export interface GetOptions {
|
|
3
|
+
integrity?: string | undefined
|
|
4
|
+
size?: number | undefined
|
|
5
|
+
memoize?: boolean | undefined
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
export interface PutOptions {
|
|
9
|
+
integrity?: string | undefined
|
|
10
|
+
size?: number | undefined
|
|
11
|
+
metadata?: any | undefined
|
|
12
|
+
memoize?: boolean | undefined
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export interface CacheEntry {
|
|
16
|
+
data: Buffer
|
|
17
|
+
integrity: string
|
|
18
|
+
key: string
|
|
19
|
+
metadata?: any | undefined
|
|
20
|
+
path: string
|
|
21
|
+
size: number
|
|
22
|
+
time: number
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface LsEntry {
|
|
26
|
+
key: string
|
|
27
|
+
integrity: string
|
|
28
|
+
path: string
|
|
29
|
+
time: number
|
|
30
|
+
size: number
|
|
31
|
+
metadata?: any | undefined
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface CacacheInstance {
|
|
36
|
+
get: {
|
|
37
|
+
(
|
|
38
|
+
cache: string,
|
|
39
|
+
key: string,
|
|
40
|
+
options?: Cacache.GetOptions,
|
|
41
|
+
): Promise<Cacache.CacheEntry>
|
|
42
|
+
sync: (
|
|
43
|
+
cache: string,
|
|
44
|
+
key: string,
|
|
45
|
+
options?: Cacache.GetOptions,
|
|
46
|
+
) => Cacache.CacheEntry
|
|
47
|
+
}
|
|
48
|
+
put: {
|
|
49
|
+
(
|
|
50
|
+
cache: string,
|
|
51
|
+
key: string,
|
|
52
|
+
data: string | Buffer,
|
|
53
|
+
options?: Cacache.PutOptions,
|
|
54
|
+
): Promise<{ integrity: string; size: number }>
|
|
55
|
+
sync: (
|
|
56
|
+
cache: string,
|
|
57
|
+
key: string,
|
|
58
|
+
data: string | Buffer,
|
|
59
|
+
options?: Cacache.PutOptions,
|
|
60
|
+
) => { integrity: string; size: number }
|
|
61
|
+
}
|
|
62
|
+
rm: {
|
|
63
|
+
entry: {
|
|
64
|
+
(cache: string, key: string): Promise<void>
|
|
65
|
+
sync: (cache: string, key: string) => void
|
|
66
|
+
}
|
|
67
|
+
all: {
|
|
68
|
+
(cache: string): Promise<void>
|
|
69
|
+
sync: (cache: string) => void
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
ls: {
|
|
73
|
+
(cache: string): Promise<Record<string, Cacache.LsEntry>>
|
|
74
|
+
stream: (cache: string) => AsyncIterable<Cacache.LsEntry>
|
|
75
|
+
}
|
|
76
|
+
tmp: {
|
|
77
|
+
withTmp: (
|
|
78
|
+
cache: string,
|
|
79
|
+
opts: any,
|
|
80
|
+
callback: (tmpDirPath: string) => Promise<any>,
|
|
81
|
+
) => Promise<any>
|
|
82
|
+
}
|
|
83
|
+
[key: string]: any
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
declare const cacache: CacacheInstance
|
|
87
|
+
export default cacache
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface Debug {
|
|
2
|
+
(namespace: string): DebugInstance
|
|
3
|
+
enable(namespaces: string): void
|
|
4
|
+
disable(): void
|
|
5
|
+
enabled(namespace: string): boolean
|
|
6
|
+
inspectOpts?: {
|
|
7
|
+
showHidden?: boolean | null
|
|
8
|
+
depth?: number | boolean | null
|
|
9
|
+
colors?: boolean
|
|
10
|
+
[key: string]: any
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export interface DebugInstance {
|
|
15
|
+
(...args: any[]): void
|
|
16
|
+
enabled: boolean
|
|
17
|
+
log: (...args: any[]) => void
|
|
18
|
+
namespace: string
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare const debug: Debug
|
|
22
|
+
export default debug
|
package/dist/external/debug.js
CHANGED
|
@@ -16,7 +16,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
16
16
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
17
17
|
var __getProtoOf = Object.getPrototypeOf;
|
|
18
18
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
-
var __esmMin = (fn, res) => () =>
|
|
19
|
+
var __esmMin = (fn, res, err) => () => {
|
|
20
|
+
if (err) throw err[0];
|
|
21
|
+
try {
|
|
22
|
+
return fn && (res = fn(fn = 0)), res;
|
|
23
|
+
} catch (e) {
|
|
24
|
+
throw err = [e], e;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
20
27
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
21
28
|
var __exportAll = (all, no_symbols) => {
|
|
22
29
|
let target = {};
|
|
@@ -52,11 +59,11 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
52
59
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53
60
|
|
|
54
61
|
//#endregion
|
|
55
|
-
let node_process = require("
|
|
62
|
+
let node_process = require("process");
|
|
56
63
|
node_process = __toESM(node_process, 1);
|
|
57
|
-
let node_os = require("
|
|
64
|
+
let node_os = require("os");
|
|
58
65
|
node_os = __toESM(node_os, 1);
|
|
59
|
-
let node_tty = require("
|
|
66
|
+
let node_tty = require("tty");
|
|
60
67
|
const { ArrayPrototypeUnshift: _p_ArrayPrototypeUnshift } = require('../primordials/array.js')
|
|
61
68
|
|
|
62
69
|
const { DateCtor: _p_DateCtor } = require('../primordials/date.js')
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from 'del'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { default as hasFlag } from 'has-flag'
|
|
2
|
+
import type { default as signalExit } from 'signal-exit'
|
|
3
|
+
import type { default as supportsColor } from 'supports-color'
|
|
4
|
+
|
|
5
|
+
export interface ExternalPack {
|
|
6
|
+
hasFlag: typeof hasFlag
|
|
7
|
+
signalExit: typeof signalExit
|
|
8
|
+
supportsColor: typeof supportsColor
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
declare const externalPack: ExternalPack
|
|
12
|
+
export default externalPack
|
|
@@ -16,7 +16,14 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
16
16
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
17
17
|
var __getProtoOf = Object.getPrototypeOf;
|
|
18
18
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
19
|
-
var __esmMin = (fn, res) => () =>
|
|
19
|
+
var __esmMin = (fn, res, err) => () => {
|
|
20
|
+
if (err) throw err[0];
|
|
21
|
+
try {
|
|
22
|
+
return fn && (res = fn(fn = 0)), res;
|
|
23
|
+
} catch (e) {
|
|
24
|
+
throw err = [e], e;
|
|
25
|
+
}
|
|
26
|
+
};
|
|
20
27
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
21
28
|
var __exportAll = (all, no_symbols) => {
|
|
22
29
|
let target = {};
|
|
@@ -52,19 +59,19 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
52
59
|
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
53
60
|
|
|
54
61
|
//#endregion
|
|
55
|
-
let node_process = require("
|
|
62
|
+
let node_process = require("process");
|
|
56
63
|
node_process = __toESM(node_process, 1);
|
|
57
|
-
let node_os = require("
|
|
64
|
+
let node_os = require("os");
|
|
58
65
|
node_os = __toESM(node_os, 1);
|
|
59
|
-
let node_tty = require("
|
|
66
|
+
let node_tty = require("tty");
|
|
60
67
|
node_tty = __toESM(node_tty, 1);
|
|
61
68
|
let process$1 = require("process");
|
|
62
69
|
process$1 = __toESM(process$1, 1);
|
|
63
|
-
let node_async_hooks = require("
|
|
64
|
-
let node_util = require("
|
|
65
|
-
let node_readline = require("
|
|
70
|
+
let node_async_hooks = require("async_hooks");
|
|
71
|
+
let node_util = require("util");
|
|
72
|
+
let node_readline = require("readline");
|
|
66
73
|
node_readline = __toESM(node_readline, 1);
|
|
67
|
-
let node_path = require("
|
|
74
|
+
let node_path = require("path");
|
|
68
75
|
const { ArrayFrom: _p_ArrayFrom, ArrayIsArray: _p_ArrayIsArray } = require('../primordials/array.js')
|
|
69
76
|
|
|
70
77
|
const { ErrorCtor: _p_ErrorCtor } = require('../primordials/error.js')
|
|
@@ -421,7 +428,7 @@ var init_has_flag = __esmMin((() => {
|
|
|
421
428
|
//#endregion
|
|
422
429
|
//#region node_modules/.pnpm/yoctocolors-cjs@2.1.3/node_modules/yoctocolors-cjs/index.js
|
|
423
430
|
var require_yoctocolors_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
424
|
-
const hasColors = require("
|
|
431
|
+
const hasColors = require("tty")?.WriteStream?.prototype?.hasColors?.() ?? false;
|
|
425
432
|
const format = (open, close) => {
|
|
426
433
|
if (!hasColors) return (input) => input;
|
|
427
434
|
const openCode = `\u001B[${open}m`;
|
|
@@ -488,7 +495,7 @@ var require_yoctocolors_cjs = /* @__PURE__ */ __commonJSMin(((exports, module) =
|
|
|
488
495
|
}));
|
|
489
496
|
|
|
490
497
|
//#endregion
|
|
491
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
498
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/key.js
|
|
492
499
|
var isUpKey, isDownKey, isSpaceKey, isBackspaceKey, isTabKey, isNumberKey, isEnterKey;
|
|
493
500
|
var init_key = __esmMin((() => {
|
|
494
501
|
isUpKey = (key, keybindings = []) => key.name === "up" || keybindings.includes("vim") && key.name === "k" || keybindings.includes("emacs") && key.ctrl && key.name === "p";
|
|
@@ -501,7 +508,7 @@ var init_key = __esmMin((() => {
|
|
|
501
508
|
}));
|
|
502
509
|
|
|
503
510
|
//#endregion
|
|
504
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
511
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/errors.js
|
|
505
512
|
var AbortPromptError, CancelPromptError, ExitPromptError, HookError, ValidationError;
|
|
506
513
|
var init_errors = __esmMin((() => {
|
|
507
514
|
AbortPromptError = class extends Error {
|
|
@@ -528,7 +535,7 @@ var init_errors = __esmMin((() => {
|
|
|
528
535
|
}));
|
|
529
536
|
|
|
530
537
|
//#endregion
|
|
531
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
538
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/hook-engine.js
|
|
532
539
|
function createStore(rl) {
|
|
533
540
|
return {
|
|
534
541
|
rl,
|
|
@@ -629,7 +636,7 @@ var init_hook_engine = __esmMin((() => {
|
|
|
629
636
|
}));
|
|
630
637
|
|
|
631
638
|
//#endregion
|
|
632
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
639
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-state.js
|
|
633
640
|
function isFactory(value) {
|
|
634
641
|
return typeof value === "function";
|
|
635
642
|
}
|
|
@@ -652,7 +659,7 @@ var init_use_state = __esmMin((() => {
|
|
|
652
659
|
}));
|
|
653
660
|
|
|
654
661
|
//#endregion
|
|
655
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
662
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-effect.js
|
|
656
663
|
function useEffect(cb, depArray) {
|
|
657
664
|
withPointer((pointer) => {
|
|
658
665
|
const oldDeps = pointer.get();
|
|
@@ -954,7 +961,7 @@ var init_dist$10 = __esmMin((() => {
|
|
|
954
961
|
}));
|
|
955
962
|
|
|
956
963
|
//#endregion
|
|
957
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
964
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/theme.js
|
|
958
965
|
var defaultTheme;
|
|
959
966
|
var init_theme = __esmMin((() => {
|
|
960
967
|
init_dist$10();
|
|
@@ -991,7 +998,7 @@ var init_theme = __esmMin((() => {
|
|
|
991
998
|
}));
|
|
992
999
|
|
|
993
1000
|
//#endregion
|
|
994
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1001
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/make-theme.js
|
|
995
1002
|
function isPlainObject(value) {
|
|
996
1003
|
if (typeof value !== "object" || value === null) return false;
|
|
997
1004
|
let proto = value;
|
|
@@ -1014,7 +1021,7 @@ var init_make_theme = __esmMin((() => {
|
|
|
1014
1021
|
}));
|
|
1015
1022
|
|
|
1016
1023
|
//#endregion
|
|
1017
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1024
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-prefix.js
|
|
1018
1025
|
function usePrefix({ status = "idle", theme }) {
|
|
1019
1026
|
const [showLoader, setShowLoader] = useState(false);
|
|
1020
1027
|
const [tick, setTick] = useState(0);
|
|
@@ -1046,7 +1053,7 @@ var init_use_prefix = __esmMin((() => {
|
|
|
1046
1053
|
}));
|
|
1047
1054
|
|
|
1048
1055
|
//#endregion
|
|
1049
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1056
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-memo.js
|
|
1050
1057
|
function useMemo(fn, dependencies) {
|
|
1051
1058
|
return withPointer((pointer) => {
|
|
1052
1059
|
const prev = pointer.get();
|
|
@@ -1066,7 +1073,7 @@ var init_use_memo = __esmMin((() => {
|
|
|
1066
1073
|
}));
|
|
1067
1074
|
|
|
1068
1075
|
//#endregion
|
|
1069
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1076
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-ref.js
|
|
1070
1077
|
function useRef(val) {
|
|
1071
1078
|
return useState({ current: val })[0];
|
|
1072
1079
|
}
|
|
@@ -1075,7 +1082,7 @@ var init_use_ref = __esmMin((() => {
|
|
|
1075
1082
|
}));
|
|
1076
1083
|
|
|
1077
1084
|
//#endregion
|
|
1078
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1085
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/use-keypress.js
|
|
1079
1086
|
function useKeypress(userHandler) {
|
|
1080
1087
|
const signal = useRef(userHandler);
|
|
1081
1088
|
signal.current = userHandler;
|
|
@@ -1429,7 +1436,7 @@ var init_main = __esmMin((() => {
|
|
|
1429
1436
|
}));
|
|
1430
1437
|
|
|
1431
1438
|
//#endregion
|
|
1432
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1439
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/utils.js
|
|
1433
1440
|
/**
|
|
1434
1441
|
* Force line returns at specific width. This function is ANSI code friendly and it'll
|
|
1435
1442
|
* ignore invisible codes during width calculation.
|
|
@@ -1461,7 +1468,7 @@ var init_utils = __esmMin((() => {
|
|
|
1461
1468
|
}));
|
|
1462
1469
|
|
|
1463
1470
|
//#endregion
|
|
1464
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1471
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/pagination/use-pagination.js
|
|
1465
1472
|
function usePointerPosition({ active, renderedItems, pageSize, loop }) {
|
|
1466
1473
|
const state = useRef({
|
|
1467
1474
|
lastPointer: active,
|
|
@@ -1521,7 +1528,7 @@ function usePagination({ items, active, renderItem, pageSize, loop = true }) {
|
|
|
1521
1528
|
const activeItemPosition = pointer + activeItem.length <= pageSize ? pointer : pageSize - activeItem.length;
|
|
1522
1529
|
const pageBuffer = _p_ArrayFrom({ length: pageSize });
|
|
1523
1530
|
pageBuffer.splice(activeItemPosition, activeItem.length, ...activeItem);
|
|
1524
|
-
const itemVisited = new _p_SetCtor([active]);
|
|
1531
|
+
const itemVisited = /* @__PURE__ */ new _p_SetCtor([active]);
|
|
1525
1532
|
let bufferPointer = activeItemPosition + activeItem.length;
|
|
1526
1533
|
let itemPointer = bound(active + 1);
|
|
1527
1534
|
while (bufferPointer < pageSize && !itemVisited.has(itemPointer) && (loop && renderedLength > pageSize ? itemPointer !== active : itemPointer > active)) {
|
|
@@ -1845,7 +1852,7 @@ var init_dist$7 = __esmMin((() => {
|
|
|
1845
1852
|
}));
|
|
1846
1853
|
|
|
1847
1854
|
//#endregion
|
|
1848
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1855
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/screen-manager.js
|
|
1849
1856
|
var height, lastLine, ScreenManager;
|
|
1850
1857
|
var init_screen_manager = __esmMin((() => {
|
|
1851
1858
|
init_utils();
|
|
@@ -1906,7 +1913,7 @@ var init_screen_manager = __esmMin((() => {
|
|
|
1906
1913
|
}));
|
|
1907
1914
|
|
|
1908
1915
|
//#endregion
|
|
1909
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1916
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/promise-polyfill.js
|
|
1910
1917
|
var PromisePolyfill;
|
|
1911
1918
|
var init_promise_polyfill = __esmMin((() => {
|
|
1912
1919
|
PromisePolyfill = class extends Promise {
|
|
@@ -1926,7 +1933,7 @@ var init_promise_polyfill = __esmMin((() => {
|
|
|
1926
1933
|
}));
|
|
1927
1934
|
|
|
1928
1935
|
//#endregion
|
|
1929
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
1936
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/create-prompt.js
|
|
1930
1937
|
function getCallSites() {
|
|
1931
1938
|
const _prepareStackTrace = Error.prepareStackTrace;
|
|
1932
1939
|
let result = [];
|
|
@@ -2038,7 +2045,7 @@ var init_create_prompt = __esmMin((() => {
|
|
|
2038
2045
|
}));
|
|
2039
2046
|
|
|
2040
2047
|
//#endregion
|
|
2041
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
2048
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/lib/Separator.js
|
|
2042
2049
|
var Separator;
|
|
2043
2050
|
var init_Separator = __esmMin((() => {
|
|
2044
2051
|
init_dist$10();
|
|
@@ -2055,7 +2062,7 @@ var init_Separator = __esmMin((() => {
|
|
|
2055
2062
|
}));
|
|
2056
2063
|
|
|
2057
2064
|
//#endregion
|
|
2058
|
-
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@
|
|
2065
|
+
//#region node_modules/.pnpm/@inquirer+core@11.1.8_@types+node@26.1.0/node_modules/@inquirer/core/dist/index.js
|
|
2059
2066
|
var init_dist$6 = __esmMin((() => {
|
|
2060
2067
|
init_key();
|
|
2061
2068
|
init_errors();
|
|
@@ -2072,7 +2079,7 @@ var init_dist$6 = __esmMin((() => {
|
|
|
2072
2079
|
}));
|
|
2073
2080
|
|
|
2074
2081
|
//#endregion
|
|
2075
|
-
//#region node_modules/.pnpm/@inquirer+checkbox@5.1.3_@types+node@
|
|
2082
|
+
//#region node_modules/.pnpm/@inquirer+checkbox@5.1.3_@types+node@26.1.0/node_modules/@inquirer/checkbox/dist/index.js
|
|
2076
2083
|
var dist_exports$5 = /* @__PURE__ */ __exportAll({
|
|
2077
2084
|
Separator: () => Separator,
|
|
2078
2085
|
default: () => dist_default$5
|
|
@@ -2269,7 +2276,7 @@ var init_dist$5 = __esmMin((() => {
|
|
|
2269
2276
|
}));
|
|
2270
2277
|
|
|
2271
2278
|
//#endregion
|
|
2272
|
-
//#region node_modules/.pnpm/@inquirer+confirm@6.0.11_@types+node@
|
|
2279
|
+
//#region node_modules/.pnpm/@inquirer+confirm@6.0.11_@types+node@26.1.0/node_modules/@inquirer/confirm/dist/index.js
|
|
2273
2280
|
var dist_exports$4 = /* @__PURE__ */ __exportAll({ default: () => dist_default$4 });
|
|
2274
2281
|
function getBooleanValue(value, defaultValue) {
|
|
2275
2282
|
let answer = defaultValue !== false;
|
|
@@ -2315,7 +2322,7 @@ var init_dist$4 = __esmMin((() => {
|
|
|
2315
2322
|
}));
|
|
2316
2323
|
|
|
2317
2324
|
//#endregion
|
|
2318
|
-
//#region node_modules/.pnpm/@inquirer+input@5.0.11_@types+node@
|
|
2325
|
+
//#region node_modules/.pnpm/@inquirer+input@5.0.11_@types+node@26.1.0/node_modules/@inquirer/input/dist/index.js
|
|
2319
2326
|
var dist_exports$3 = /* @__PURE__ */ __exportAll({ default: () => dist_default$3 });
|
|
2320
2327
|
var inputTheme, dist_default$3;
|
|
2321
2328
|
var init_dist$3 = __esmMin((() => {
|
|
@@ -2390,7 +2397,7 @@ var init_dist$3 = __esmMin((() => {
|
|
|
2390
2397
|
}));
|
|
2391
2398
|
|
|
2392
2399
|
//#endregion
|
|
2393
|
-
//#region node_modules/.pnpm/@inquirer+password@5.0.11_@types+node@
|
|
2400
|
+
//#region node_modules/.pnpm/@inquirer+password@5.0.11_@types+node@26.1.0/node_modules/@inquirer/password/dist/index.js
|
|
2394
2401
|
var dist_exports$2 = /* @__PURE__ */ __exportAll({ default: () => dist_default$2 });
|
|
2395
2402
|
var passwordTheme, dist_default$2;
|
|
2396
2403
|
var init_dist$2 = __esmMin((() => {
|
|
@@ -2444,7 +2451,7 @@ var init_dist$2 = __esmMin((() => {
|
|
|
2444
2451
|
}));
|
|
2445
2452
|
|
|
2446
2453
|
//#endregion
|
|
2447
|
-
//#region node_modules/.pnpm/@inquirer+search@4.1.7_@types+node@
|
|
2454
|
+
//#region node_modules/.pnpm/@inquirer+search@4.1.7_@types+node@26.1.0/node_modules/@inquirer/search/dist/index.js
|
|
2448
2455
|
var dist_exports$1 = /* @__PURE__ */ __exportAll({
|
|
2449
2456
|
Separator: () => Separator,
|
|
2450
2457
|
default: () => dist_default$1
|
|
@@ -2610,7 +2617,7 @@ var init_dist$1 = __esmMin((() => {
|
|
|
2610
2617
|
}));
|
|
2611
2618
|
|
|
2612
2619
|
//#endregion
|
|
2613
|
-
//#region node_modules/.pnpm/@inquirer+select@5.1.3_@types+node@
|
|
2620
|
+
//#region node_modules/.pnpm/@inquirer+select@5.1.3_@types+node@26.1.0/node_modules/@inquirer/select/dist/index.js
|
|
2614
2621
|
var dist_exports = /* @__PURE__ */ __exportAll({
|
|
2615
2622
|
Separator: () => Separator,
|
|
2616
2623
|
default: () => dist_default
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export function createNewSortInstance(config?: any): any
|
|
@@ -17,7 +17,14 @@ var __name = (target, value) => __defProp(target, "name", {
|
|
|
17
17
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
18
18
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
19
19
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
20
|
-
var __esmMin = (fn, res) => () =>
|
|
20
|
+
var __esmMin = (fn, res, err) => () => {
|
|
21
|
+
if (err) throw err[0];
|
|
22
|
+
try {
|
|
23
|
+
return fn && (res = fn(fn = 0)), res;
|
|
24
|
+
} catch (e) {
|
|
25
|
+
throw err = [e], e;
|
|
26
|
+
}
|
|
27
|
+
};
|
|
21
28
|
var __exportAll = (all, no_symbols) => {
|
|
22
29
|
let target = {};
|
|
23
30
|
for (var name in all) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { hasFlag as default } from './external-pack'
|