@vltpkg/cli-js 1.0.6 → 1.0.8
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/{access-CMN3GDV4.js → access-FOYRQGJC.js} +3 -3
- package/{bugs-MEP373JU.js → bugs-ORVU4I5O.js} +21 -13
- package/{build-TKUT6V2P.js → build-JLVAGEEU.js} +6 -6
- package/{cache-3VLQ7CWL.js → cache-RIOSSQD3.js} +6 -6
- package/{chunk-FBHWUWBW.js → chunk-3L2ERW54.js} +3 -3
- package/{chunk-EJUKA3HX.js → chunk-5CNTLC2U.js} +1 -1
- package/{chunk-AHTQ5ADD.js → chunk-5QAFAGO5.js} +3 -3
- package/{chunk-3NGV7EC6.js → chunk-7D7SNVBV.js} +1177 -214
- package/{chunk-34VLICEH.js → chunk-ADLHAQRA.js} +5 -5
- package/{chunk-PND2URIT.js → chunk-AGHW2E24.js} +33 -21
- package/chunk-AQ3XJJUP.js +75 -0
- package/{chunk-ED2DDTQT.js → chunk-FG633ZKS.js} +31 -4
- package/{chunk-AL42Z2D3.js → chunk-JXVDCQZF.js} +16 -4
- package/{chunk-QWTGTFHN.js → chunk-MUG5K6X2.js} +1 -1
- package/{chunk-LQGUEFV6.js → chunk-NC3QYZPW.js} +3 -3
- package/chunk-OB73T23B.js +30 -0
- package/{chunk-SVBEF5PK.js → chunk-OWML62W5.js} +1 -1
- package/{chunk-LCDBW6IT.js → chunk-PTR5IGFQ.js} +1 -1
- package/{chunk-G7BEW32U.js → chunk-UYIA44HE.js} +4 -4
- package/{chunk-XVA4ZRW5.js → chunk-WY4PAM6D.js} +166 -43
- package/{chunk-WP6CYBPM.js → chunk-XISRK3R5.js} +21 -6
- package/{chunk-FEIPJIEN.js → chunk-YAIKXFLN.js} +1 -1
- package/{chunk-O7OUBUZ3.js → chunk-YCVPEZRM.js} +2 -2
- package/{chunk-3OPNZI6G.js → chunk-YOE3VZFX.js} +8 -7
- package/{chunk-4LBWNGU6.js → chunk-ZXIF4PVX.js} +13 -6
- package/{ci-ODHEBQNE.js → ci-2666LKEC.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-5HCRQACM.js → config-3N7PBEXH.js} +7 -5
- package/{config-35TJIXFF.js → config-WMYY5J37.js} +6 -6
- package/{create-5BESMSRT.js → create-AEQSO6KX.js} +12 -12
- package/{deprecate-6YTC2E2E.js → deprecate-MW76DAZ5.js} +6 -6
- package/{devtools-OKXASR4F.js → devtools-UEMPW5GG.js} +29 -29
- package/{dist-tag-HHCPJPJL.js → dist-tag-XGQLYA6C.js} +3 -3
- package/{docs-M7KRVAON.js → docs-7CCTL3OY.js} +21 -13
- package/{exec-H664T76F.js → exec-GWCIDNOH.js} +12 -12
- package/{exec-cache-EQUYR4PE.js → exec-cache-AML2HUTJ.js} +10 -10
- package/{exec-local-OUOXFTQ6.js → exec-local-JRTO2XG4.js} +10 -10
- package/{help-F4DM2AQP.js → help-4KSCV7GN.js} +4 -4
- package/{init-7D5MFAP5.js → init-OHVBHXB7.js} +7 -7
- package/{install-OZBDTEAY.js → install-TFDEHY5J.js} +8 -8
- package/{list-DRQS77GZ.js → list-UD4SDHVE.js} +19 -13
- package/{login-JAWRM634.js → login-B6TIQW62.js} +21 -5
- package/{logout-3ACX34HP.js → logout-H3CXGLDN.js} +3 -3
- package/{pack-XUEMZORZ.js → pack-YYK4LKBQ.js} +8 -8
- package/package.json +1 -1
- package/{ping-FQGTZ5FI.js → ping-G765RWLM.js} +3 -3
- package/{pkg-D4OYJPRA.js → pkg-D4S3SPUH.js} +8 -8
- package/{profile-UNVFHARP.js → profile-YDQGMWYP.js} +3 -3
- package/{publish-FSZSNKBN.js → publish-ANHSZPIM.js} +11 -11
- package/{query-QHCEICAY.js → query-PZ6C6AZJ.js} +19 -13
- package/{registry-43SSGAPE.js → registry-BMWXMQS4.js} +2 -2
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +33 -21
- package/{repo-KHFU55BU.js → repo-ZA3TMERE.js} +21 -13
- package/{reporter-Y3LUXPQS.js → reporter-SDMDYYMJ.js} +75 -75
- package/{run-4GHCV2NW.js → run-N4NK35UT.js} +10 -10
- package/{run-exec-N2B7XW7Y.js → run-exec-N5FT4QO7.js} +10 -10
- package/security-archive-src-update-expired.js +6 -7
- package/{setup-3PSRN42W.js → setup-MWWDSKQZ.js} +45 -17
- package/{src-D7FPRPSM.js → src-6PISL6QX.js} +1 -1
- package/{src-2Q2V6EI2.js → src-6UF5YTTL.js} +12 -11
- package/{token-3RNS2EZO.js → token-FFUAFL43.js} +3 -3
- package/{uninstall-RBT3ENOD.js → uninstall-A4PUG6RI.js} +16 -9
- package/{unpublish-AS7IBBGN.js → unpublish-OJEGZDGQ.js} +3 -3
- package/{update-6CBZZ5PN.js → update-ENR6ICMR.js} +7 -7
- package/{version-PW4DD2HC.js → version-K3BUGG7X.js} +7 -7
- package/{view-LRZPRP7J.js → view-SWVQLQCB.js} +6 -6
- package/vlr.js +1 -1
- package/vlrx.js +1 -1
- package/vlt.js +1 -1
- package/vlx.js +1 -1
- package/vlxl.js +1 -1
- package/{whoami-EASZYMSY.js → whoami-MA733O2T.js} +3 -3
- package/chunk-VWCDSE2C.js +0 -75
|
@@ -10,12 +10,13 @@ globalThis.clearInterval = _vlt_clearInterval;
|
|
|
10
10
|
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
|
+
addKey,
|
|
13
14
|
asDependency
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7D7SNVBV.js";
|
|
15
16
|
import {
|
|
16
17
|
joinDepIDTuple,
|
|
17
18
|
splitDepID
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YOE3VZFX.js";
|
|
19
20
|
import {
|
|
20
21
|
Spec
|
|
21
22
|
} from "./chunk-XKVU23NC.js";
|
|
@@ -70,7 +71,6 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
70
71
|
const type = getType(config.values);
|
|
71
72
|
const importers = getWorkspaceImporters(config.values, monorepo);
|
|
72
73
|
const specOptions = config.options;
|
|
73
|
-
const getName = (s) => s.name === "(unknown)" ? s.spec : s.name;
|
|
74
74
|
const parsedItems = [];
|
|
75
75
|
let hasFileSpecs = false;
|
|
76
76
|
for (const item of items) {
|
|
@@ -93,7 +93,7 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
93
93
|
monorepo
|
|
94
94
|
);
|
|
95
95
|
importerDeps.set(
|
|
96
|
-
|
|
96
|
+
addKey(rebased),
|
|
97
97
|
asDependency({ spec: rebased, type: depType })
|
|
98
98
|
);
|
|
99
99
|
}
|
|
@@ -103,7 +103,7 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
103
103
|
const newDependencies = /* @__PURE__ */ new Map();
|
|
104
104
|
for (const { spec, type: depType } of parsedItems) {
|
|
105
105
|
newDependencies.set(
|
|
106
|
-
|
|
106
|
+
addKey(spec),
|
|
107
107
|
asDependency({ spec, type: depType })
|
|
108
108
|
);
|
|
109
109
|
}
|
|
@@ -13218,13 +13218,13 @@ var require_mock_call_history = __commonJS({
|
|
|
13218
13218
|
function makeFilterCalls(parameterName) {
|
|
13219
13219
|
return (parameterValue, logs) => {
|
|
13220
13220
|
if (typeof parameterValue === "string" || parameterValue == null) {
|
|
13221
|
-
return logs.filter((
|
|
13222
|
-
return
|
|
13221
|
+
return logs.filter((log4) => {
|
|
13222
|
+
return log4[parameterName] === parameterValue;
|
|
13223
13223
|
});
|
|
13224
13224
|
}
|
|
13225
13225
|
if (parameterValue instanceof RegExp) {
|
|
13226
|
-
return logs.filter((
|
|
13227
|
-
return parameterValue.test(
|
|
13226
|
+
return logs.filter((log4) => {
|
|
13227
|
+
return parameterValue.test(log4[parameterName]);
|
|
13228
13228
|
});
|
|
13229
13229
|
}
|
|
13230
13230
|
throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
|
|
@@ -13319,8 +13319,8 @@ var require_mock_call_history = __commonJS({
|
|
|
13319
13319
|
return this.logs.filter(criteria);
|
|
13320
13320
|
}
|
|
13321
13321
|
if (criteria instanceof RegExp) {
|
|
13322
|
-
return this.logs.filter((
|
|
13323
|
-
return criteria.test(
|
|
13322
|
+
return this.logs.filter((log4) => {
|
|
13323
|
+
return criteria.test(log4.toString());
|
|
13324
13324
|
});
|
|
13325
13325
|
}
|
|
13326
13326
|
if (typeof criteria === "object" && criteria !== null) {
|
|
@@ -13370,13 +13370,13 @@ var require_mock_call_history = __commonJS({
|
|
|
13370
13370
|
this.logs = [];
|
|
13371
13371
|
}
|
|
13372
13372
|
[kMockCallHistoryAddLog](requestInit) {
|
|
13373
|
-
const
|
|
13374
|
-
this.logs.push(
|
|
13375
|
-
return
|
|
13373
|
+
const log4 = new MockCallHistoryLog(requestInit);
|
|
13374
|
+
this.logs.push(log4);
|
|
13375
|
+
return log4;
|
|
13376
13376
|
}
|
|
13377
13377
|
*[Symbol.iterator]() {
|
|
13378
|
-
for (const
|
|
13379
|
-
yield
|
|
13378
|
+
for (const log4 of this.calls()) {
|
|
13379
|
+
yield log4;
|
|
13380
13380
|
}
|
|
13381
13381
|
}
|
|
13382
13382
|
};
|
|
@@ -27071,7 +27071,8 @@ var otplease = async (client, options, response) => {
|
|
|
27071
27071
|
const notice = String(npmNotice);
|
|
27072
27072
|
const match = otpChallengeNotice.exec(notice);
|
|
27073
27073
|
if (match?.[1]) {
|
|
27074
|
-
await urlOpen(match[1])
|
|
27074
|
+
await urlOpen(match[1]).catch(() => {
|
|
27075
|
+
});
|
|
27075
27076
|
log(notice);
|
|
27076
27077
|
return {
|
|
27077
27078
|
retry: {
|
|
@@ -27356,6 +27357,7 @@ var exchangeToken = async (idToken, packageName, registry) => {
|
|
|
27356
27357
|
};
|
|
27357
27358
|
|
|
27358
27359
|
// ../../src/registry-client/src/index.ts
|
|
27360
|
+
var log3 = (msg) => console.error(msg);
|
|
27359
27361
|
var isCacheableMethod = (m) => m === "GET" || m === "HEAD";
|
|
27360
27362
|
var cacheKey = (method, url) => `${method !== "GET" ? method + " " : ""}${url}`;
|
|
27361
27363
|
var { version } = loadPackageJson(
|
|
@@ -27474,13 +27476,24 @@ var RegistryClient = class {
|
|
|
27474
27476
|
await deleteToken(registry, this.identity);
|
|
27475
27477
|
}
|
|
27476
27478
|
/**
|
|
27477
|
-
* Log into the registry specified
|
|
27479
|
+
* Log into the registry specified.
|
|
27480
|
+
*
|
|
27481
|
+
* When a list of registries is provided, the web login flow runs once
|
|
27482
|
+
* against the first of them, and the token it returns is saved for all
|
|
27483
|
+
* of them. This is for registries that share credentials -- like the
|
|
27484
|
+
* ones under a single vlt.io account -- where opening the browser once
|
|
27485
|
+
* per registry would just be asking for the same token again.
|
|
27478
27486
|
*
|
|
27479
27487
|
* Does not return the token or expose it, just saves to the auth keychain
|
|
27480
27488
|
* and returns void if it worked. Otherwise, error is raised.
|
|
27481
27489
|
*/
|
|
27482
27490
|
async login(registry) {
|
|
27483
|
-
const
|
|
27491
|
+
const registries = Array.isArray(registry) ? registry : [registry];
|
|
27492
|
+
const [first] = registries;
|
|
27493
|
+
if (!first) {
|
|
27494
|
+
throw error("No registry provided to log in against");
|
|
27495
|
+
}
|
|
27496
|
+
const webLoginURL = new URL("-/v1/login", registryBase(first));
|
|
27484
27497
|
const response = await this.request(webLoginURL, {
|
|
27485
27498
|
method: "POST",
|
|
27486
27499
|
useCache: false,
|
|
@@ -27494,11 +27507,9 @@ var RegistryClient = class {
|
|
|
27494
27507
|
const challenge = getWebAuthChallenge(response.json());
|
|
27495
27508
|
if (challenge) {
|
|
27496
27509
|
const result = await this.webAuthOpener(challenge);
|
|
27497
|
-
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
this.identity
|
|
27501
|
-
);
|
|
27510
|
+
for (const reg of registries) {
|
|
27511
|
+
await setToken(reg, `Bearer ${result.token}`, this.identity);
|
|
27512
|
+
}
|
|
27502
27513
|
return;
|
|
27503
27514
|
}
|
|
27504
27515
|
}
|
|
@@ -27519,8 +27530,9 @@ var RegistryClient = class {
|
|
|
27519
27530
|
}),
|
|
27520
27531
|
urlOpen(authUrl, { signal }).catch((er) => {
|
|
27521
27532
|
if (asError(er).name === "AbortError") return;
|
|
27522
|
-
|
|
27523
|
-
|
|
27533
|
+
log3(
|
|
27534
|
+
`Could not open a browser. Please open ${authUrl} manually.`
|
|
27535
|
+
);
|
|
27524
27536
|
})
|
|
27525
27537
|
]);
|
|
27526
27538
|
return result;
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {Buffer} from "node:buffer";
|
|
3
|
+
import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
|
|
4
|
+
globalThis.setTimeout = _vlt_setTimeout;
|
|
5
|
+
globalThis.clearTimeout = _vlt_clearTimeout;
|
|
6
|
+
globalThis.setImmediate = _vlt_setImmediate;
|
|
7
|
+
globalThis.clearImmediate = _vlt_clearImmediate;
|
|
8
|
+
globalThis.setInterval = _vlt_setInterval;
|
|
9
|
+
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
error
|
|
14
|
+
} from "./chunk-WZWDS3W4.js";
|
|
15
|
+
import {
|
|
16
|
+
__glob
|
|
17
|
+
} from "./chunk-PZLD7RTK.js";
|
|
18
|
+
|
|
19
|
+
// import("./commands/**/*.ts") in ../../src/cli-sdk/src/load-command.ts
|
|
20
|
+
var globImport_commands_ts = __glob({
|
|
21
|
+
"./commands/access.ts": () => import("./access-FOYRQGJC.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-ORVU4I5O.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-JLVAGEEU.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-RIOSSQD3.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-2666LKEC.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-WMYY5J37.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-AEQSO6KX.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-MW76DAZ5.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-XGQLYA6C.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-7CCTL3OY.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-AML2HUTJ.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-JRTO2XG4.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-GWCIDNOH.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-4KSCV7GN.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-OHVBHXB7.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-TFDEHY5J.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-SDMDYYMJ.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-UD4SDHVE.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-B6TIQW62.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-H3CXGLDN.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-YYK4LKBQ.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-G765RWLM.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-D4S3SPUH.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-YDQGMWYP.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-ANHSZPIM.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-PZ6C6AZJ.js"),
|
|
47
|
+
"./commands/registry.ts": () => import("./registry-BMWXMQS4.js"),
|
|
48
|
+
"./commands/repo.ts": () => import("./repo-ZA3TMERE.js"),
|
|
49
|
+
"./commands/run-exec.ts": () => import("./run-exec-N5FT4QO7.js"),
|
|
50
|
+
"./commands/run.ts": () => import("./run-N4NK35UT.js"),
|
|
51
|
+
"./commands/setup.ts": () => import("./setup-MWWDSKQZ.js"),
|
|
52
|
+
"./commands/token.ts": () => import("./token-FFUAFL43.js"),
|
|
53
|
+
"./commands/uninstall.ts": () => import("./uninstall-A4PUG6RI.js"),
|
|
54
|
+
"./commands/unpublish.ts": () => import("./unpublish-OJEGZDGQ.js"),
|
|
55
|
+
"./commands/update.ts": () => import("./update-ENR6ICMR.js"),
|
|
56
|
+
"./commands/version.ts": () => import("./version-K3BUGG7X.js"),
|
|
57
|
+
"./commands/view.ts": () => import("./view-SWVQLQCB.js"),
|
|
58
|
+
"./commands/whoami.ts": () => import("./whoami-MA733O2T.js")
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
62
|
+
var loadCommand = async (command) => {
|
|
63
|
+
try {
|
|
64
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw error("Could not load command", {
|
|
67
|
+
found: command,
|
|
68
|
+
cause: e
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
loadCommand
|
|
75
|
+
};
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
asDepID,
|
|
14
14
|
baseDepID,
|
|
15
15
|
splitDepID
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-YOE3VZFX.js";
|
|
17
17
|
import {
|
|
18
18
|
loadPackageJson
|
|
19
19
|
} from "./chunk-E74WGW5C.js";
|
|
@@ -250,9 +250,7 @@ var asPackageReportData = (o) => {
|
|
|
250
250
|
import { resolve } from "node:path";
|
|
251
251
|
var __CODE_SPLIT_SCRIPT_NAME = resolve(import.meta.dirname, "security-archive-src-update-expired.js");
|
|
252
252
|
|
|
253
|
-
// ../../src/security-archive/src/
|
|
254
|
-
var SOCKET_API_V0_URL = "https://api.socket.dev/v0/purl?alerts=true";
|
|
255
|
-
var SOCKET_PUBLIC_API_TOKEN = "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
253
|
+
// ../../src/security-archive/src/browser.ts
|
|
256
254
|
var npmRegistryURL = "https://registry.npmjs.org/";
|
|
257
255
|
var normalizeRegistryURL = (url) => url.endsWith("/") ? url : `${url}/`;
|
|
258
256
|
var nodeRegistryURL = (node) => {
|
|
@@ -268,6 +266,10 @@ var usesNpmRegistry = (node) => {
|
|
|
268
266
|
const npmAlias = node.options.registries?.[defaultRegistryName];
|
|
269
267
|
return !!npmAlias && normalizeRegistryURL(npmAlias) === origin;
|
|
270
268
|
};
|
|
269
|
+
|
|
270
|
+
// ../../src/security-archive/src/index.ts
|
|
271
|
+
var SOCKET_API_V0_URL = "https://api.socket.dev/v0/purl?alerts=true";
|
|
272
|
+
var SOCKET_PUBLIC_API_TOKEN = "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
271
273
|
var { version } = loadPackageJson(
|
|
272
274
|
import.meta.filename,
|
|
273
275
|
"cli-package.json"
|
|
@@ -313,6 +315,31 @@ var SecurityArchive = class _SecurityArchive extends I {
|
|
|
313
315
|
this.#path = options.path ?? new XDG("vlt").cache("security-archive.db");
|
|
314
316
|
this.#retries = options.retries ?? 3;
|
|
315
317
|
}
|
|
318
|
+
/**
|
|
319
|
+
* Get the report data for a node, keyed by its base {@link DepID}.
|
|
320
|
+
*/
|
|
321
|
+
get(k, options) {
|
|
322
|
+
return super.get(baseDepID(k), options);
|
|
323
|
+
}
|
|
324
|
+
/**
|
|
325
|
+
* Check for report data, keyed by the base {@link DepID}.
|
|
326
|
+
*/
|
|
327
|
+
has(k) {
|
|
328
|
+
return super.has(baseDepID(k));
|
|
329
|
+
}
|
|
330
|
+
/**
|
|
331
|
+
* Store report data for a node, keyed by its base {@link DepID} so
|
|
332
|
+
* peer-suffixed copies of the same package share one entry.
|
|
333
|
+
*/
|
|
334
|
+
set(k, v, setOptions) {
|
|
335
|
+
return super.set(baseDepID(k), v, setOptions);
|
|
336
|
+
}
|
|
337
|
+
/**
|
|
338
|
+
* Delete the report data stored under the base {@link DepID}.
|
|
339
|
+
*/
|
|
340
|
+
delete(k) {
|
|
341
|
+
return super.delete(baseDepID(k));
|
|
342
|
+
}
|
|
316
343
|
/**
|
|
317
344
|
* Retrieves a node using its name and version.
|
|
318
345
|
*/
|
|
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
generateDefaultHelp,
|
|
14
14
|
generateFullHelp
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-YAIKXFLN.js";
|
|
16
16
|
import {
|
|
17
17
|
flush,
|
|
18
18
|
trackCommand,
|
|
@@ -30,10 +30,10 @@ import {
|
|
|
30
30
|
import {
|
|
31
31
|
isGraphRunError,
|
|
32
32
|
splitDepID
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-YOE3VZFX.js";
|
|
34
34
|
import {
|
|
35
35
|
defaultView
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-XISRK3R5.js";
|
|
37
37
|
import {
|
|
38
38
|
isLazyView,
|
|
39
39
|
isViewClass,
|
|
@@ -445,6 +445,17 @@ var supportsColor2 = (stream) => {
|
|
|
445
445
|
};
|
|
446
446
|
var stdout = (...args) => console.log(...args);
|
|
447
447
|
var stderr = (...args) => console.error(...args);
|
|
448
|
+
var flushStream = (stream) => new Promise((res) => {
|
|
449
|
+
if (!stream.writableLength) return res();
|
|
450
|
+
stream.write("", () => res());
|
|
451
|
+
});
|
|
452
|
+
var flushAndExit = async (code) => {
|
|
453
|
+
await Promise.all([
|
|
454
|
+
flushStream(process.stdout),
|
|
455
|
+
flushStream(process.stderr)
|
|
456
|
+
]);
|
|
457
|
+
return process.exit(code);
|
|
458
|
+
};
|
|
448
459
|
var styleText = (f, s) => utilStyleText(f, s, { validateStream: false });
|
|
449
460
|
var styleTextStdout = (_, s) => s;
|
|
450
461
|
var styleTextStderr = (_, s) => s;
|
|
@@ -591,7 +602,7 @@ var outputCommand = async (cliCommand, conf, { start, vltVersion } = {
|
|
|
591
602
|
...formatOptions,
|
|
592
603
|
colors: stderrColor
|
|
593
604
|
});
|
|
594
|
-
|
|
605
|
+
await flushAndExit(process.exitCode);
|
|
595
606
|
}
|
|
596
607
|
};
|
|
597
608
|
|
|
@@ -599,6 +610,7 @@ export {
|
|
|
599
610
|
indent,
|
|
600
611
|
stdout,
|
|
601
612
|
stderr,
|
|
613
|
+
flushAndExit,
|
|
602
614
|
styleTextStdout,
|
|
603
615
|
outputCommand
|
|
604
616
|
};
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
actual,
|
|
14
14
|
callLimit,
|
|
15
15
|
createVirtualRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7D7SNVBV.js";
|
|
17
17
|
import {
|
|
18
18
|
SecurityArchive
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-FG633ZKS.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -115,7 +115,7 @@ var reloadConfig = async (folder) => {
|
|
|
115
115
|
unload("project");
|
|
116
116
|
} catch {
|
|
117
117
|
}
|
|
118
|
-
const { Config } = await import("./config-
|
|
118
|
+
const { Config } = await import("./config-3N7PBEXH.js");
|
|
119
119
|
return Config.load(folder, process.argv, true);
|
|
120
120
|
};
|
|
121
121
|
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
var global = globalThis;
|
|
2
|
+
import {Buffer} from "node:buffer";
|
|
3
|
+
import {setTimeout as _vlt_setTimeout,clearTimeout as _vlt_clearTimeout,setImmediate as _vlt_setImmediate,clearImmediate as _vlt_clearImmediate,setInterval as _vlt_setInterval,clearInterval as _vlt_clearInterval} from "node:timers";
|
|
4
|
+
globalThis.setTimeout = _vlt_setTimeout;
|
|
5
|
+
globalThis.clearTimeout = _vlt_clearTimeout;
|
|
6
|
+
globalThis.setImmediate = _vlt_setImmediate;
|
|
7
|
+
globalThis.clearImmediate = _vlt_clearImmediate;
|
|
8
|
+
globalThis.setInterval = _vlt_setInterval;
|
|
9
|
+
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
|
+
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
|
+
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
stderr
|
|
14
|
+
} from "./chunk-JXVDCQZF.js";
|
|
15
|
+
import {
|
|
16
|
+
urlOpen
|
|
17
|
+
} from "./chunk-HAYXR3MW.js";
|
|
18
|
+
|
|
19
|
+
// ../../src/cli-sdk/src/open-url.ts
|
|
20
|
+
var openUrl = async (url) => {
|
|
21
|
+
try {
|
|
22
|
+
await urlOpen(url);
|
|
23
|
+
} catch {
|
|
24
|
+
stderr(`Could not open a browser. Please open ${url} manually.`);
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export {
|
|
29
|
+
openUrl
|
|
30
|
+
};
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
} from "./chunk-RIYFGX27.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NC3QYZPW.js";
|
|
18
18
|
import {
|
|
19
19
|
stderr,
|
|
20
20
|
stdout,
|
|
21
21
|
styleTextStdout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JXVDCQZF.js";
|
|
23
23
|
import {
|
|
24
24
|
require_emoji_regex
|
|
25
25
|
} from "./chunk-VTEFO2FT.js";
|
|
@@ -27,10 +27,10 @@ import {
|
|
|
27
27
|
Query,
|
|
28
28
|
actual,
|
|
29
29
|
isRunResult
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-7D7SNVBV.js";
|
|
31
31
|
import {
|
|
32
32
|
Monorepo
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-OWML62W5.js";
|
|
34
34
|
import {
|
|
35
35
|
isErrorWithCause
|
|
36
36
|
} from "./chunk-VFBCWAOC.js";
|