@vltpkg/cli-js 1.0.7 → 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-OKO4MXDT.js → access-FOYRQGJC.js} +1 -1
- package/{bugs-J56QQ3CP.js → bugs-ORVU4I5O.js} +19 -11
- package/{build-CQ2E2XRO.js → build-JLVAGEEU.js} +4 -4
- package/{cache-PPEXAQT7.js → cache-RIOSSQD3.js} +3 -3
- package/{chunk-CIKUT62L.js → chunk-3L2ERW54.js} +2 -2
- package/{chunk-RKXQ66T4.js → chunk-5CNTLC2U.js} +1 -1
- package/{chunk-SVO3HI2G.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-JWWDJYSU.js → chunk-AGHW2E24.js} +17 -14
- package/chunk-AQ3XJJUP.js +75 -0
- package/{chunk-ED2DDTQT.js → chunk-FG633ZKS.js} +31 -4
- package/{chunk-OUF2P2OD.js → chunk-JXVDCQZF.js} +14 -2
- package/{chunk-QWTGTFHN.js → chunk-MUG5K6X2.js} +1 -1
- package/{chunk-CHHGSDAP.js → chunk-NC3QYZPW.js} +3 -3
- package/chunk-OB73T23B.js +30 -0
- package/{chunk-SVBEF5PK.js → chunk-OWML62W5.js} +1 -1
- package/{chunk-JLKFIX2H.js → chunk-UYIA44HE.js} +4 -4
- package/{chunk-GVZRKITF.js → chunk-WY4PAM6D.js} +3 -3
- package/{chunk-A4EKZ32F.js → chunk-YCVPEZRM.js} +2 -2
- package/{chunk-3OPNZI6G.js → chunk-YOE3VZFX.js} +8 -7
- package/{chunk-ADYHZTEI.js → chunk-ZXIF4PVX.js} +13 -6
- package/{ci-WDQ4SQN6.js → ci-2666LKEC.js} +5 -5
- package/cli-package.json +1 -1
- package/{config-XY5CDGTD.js → config-3N7PBEXH.js} +4 -4
- package/{config-JMARDHLW.js → config-WMYY5J37.js} +4 -4
- package/{create-C24ZGR6S.js → create-AEQSO6KX.js} +9 -9
- package/{deprecate-HYHD5WQC.js → deprecate-MW76DAZ5.js} +4 -4
- package/{devtools-66MVSNF5.js → devtools-UEMPW5GG.js} +29 -29
- package/{dist-tag-RPQ5LZWM.js → dist-tag-XGQLYA6C.js} +1 -1
- package/{docs-UKQNAVM3.js → docs-7CCTL3OY.js} +19 -11
- package/{exec-FNZEVDGU.js → exec-GWCIDNOH.js} +9 -9
- package/{exec-cache-GRHS57DV.js → exec-cache-AML2HUTJ.js} +7 -7
- package/{exec-local-AHDW7CKQ.js → exec-local-JRTO2XG4.js} +7 -7
- package/{help-VDBXIWF3.js → help-4KSCV7GN.js} +1 -1
- package/{init-2ICZBLI2.js → init-OHVBHXB7.js} +5 -5
- package/{install-IFSVVRU5.js → install-TFDEHY5J.js} +6 -6
- package/{list-RCAPA3OE.js → list-UD4SDHVE.js} +16 -10
- package/{login-T42R75OV.js → login-B6TIQW62.js} +5 -5
- package/{logout-PVR6J2AK.js → logout-H3CXGLDN.js} +1 -1
- package/{pack-HPLDE4RB.js → pack-YYK4LKBQ.js} +6 -6
- package/package.json +1 -1
- package/{ping-N5U4XHUU.js → ping-G765RWLM.js} +1 -1
- package/{pkg-VNKZX5JC.js → pkg-D4S3SPUH.js} +6 -6
- package/{profile-N7UOXZ2X.js → profile-YDQGMWYP.js} +1 -1
- package/{publish-CRSF7NZP.js → publish-ANHSZPIM.js} +8 -8
- package/{query-MEAXXYOE.js → query-PZ6C6AZJ.js} +16 -10
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +17 -14
- package/{repo-IRTGGLIC.js → repo-ZA3TMERE.js} +19 -11
- package/{reporter-Y7RMSVN4.js → reporter-SDMDYYMJ.js} +72 -72
- package/{run-I6HWURSB.js → run-N4NK35UT.js} +7 -7
- package/{run-exec-BV3RUWQM.js → run-exec-N5FT4QO7.js} +7 -7
- package/security-archive-src-update-expired.js +6 -7
- package/{setup-U6DWTZBA.js → setup-MWWDSKQZ.js} +6 -6
- package/{src-44BBCHST.js → src-6PISL6QX.js} +1 -1
- package/{src-SXMLUOLI.js → src-6UF5YTTL.js} +9 -8
- package/{token-CTUMLTQP.js → token-FFUAFL43.js} +1 -1
- package/{uninstall-UUFXE47B.js → uninstall-A4PUG6RI.js} +14 -7
- package/{unpublish-G4NALOC6.js → unpublish-OJEGZDGQ.js} +1 -1
- package/{update-BGMQQNYE.js → update-ENR6ICMR.js} +5 -5
- package/{version-QVFPFL6M.js → version-K3BUGG7X.js} +5 -5
- package/{view-QFYMJVBE.js → view-SWVQLQCB.js} +4 -4
- 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-5D4XUOSP.js → whoami-MA733O2T.js} +1 -1
- package/chunk-NEFV2B5V.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(
|
|
@@ -27528,8 +27530,9 @@ var RegistryClient = class {
|
|
|
27528
27530
|
}),
|
|
27529
27531
|
urlOpen(authUrl, { signal }).catch((er) => {
|
|
27530
27532
|
if (asError(er).name === "AbortError") return;
|
|
27531
|
-
|
|
27532
|
-
|
|
27533
|
+
log3(
|
|
27534
|
+
`Could not open a browser. Please open ${authUrl} manually.`
|
|
27535
|
+
);
|
|
27533
27536
|
})
|
|
27534
27537
|
]);
|
|
27535
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
|
*/
|
|
@@ -30,7 +30,7 @@ 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
36
|
} from "./chunk-XISRK3R5.js";
|
|
@@ -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";
|
|
@@ -11,15 +11,15 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YCVPEZRM.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-OWML62W5.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-YOE3VZFX.js";
|
|
23
23
|
import {
|
|
24
24
|
commands,
|
|
25
25
|
defaultValues,
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
pickManifest,
|
|
21
21
|
resolve,
|
|
22
22
|
revs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-OWML62W5.js";
|
|
24
24
|
import {
|
|
25
25
|
Spec
|
|
26
26
|
} from "./chunk-XKVU23NC.js";
|
|
@@ -111,7 +111,7 @@ var PackageInfoClient = class {
|
|
|
111
111
|
#tarPoolPromise;
|
|
112
112
|
async getRegistryClient() {
|
|
113
113
|
if (this.#registryClient) return this.#registryClient;
|
|
114
|
-
this.#registryClientPromise ??= import("./src-
|
|
114
|
+
this.#registryClientPromise ??= import("./src-6PISL6QX.js").then(({ RegistryClient }) => {
|
|
115
115
|
this.#registryClient = new RegistryClient(this.options);
|
|
116
116
|
return this.#registryClient;
|
|
117
117
|
});
|
|
@@ -187,15 +187,14 @@ var splitDepID = (id) => {
|
|
|
187
187
|
seenSplitDepIDs.set(id, res);
|
|
188
188
|
return res;
|
|
189
189
|
};
|
|
190
|
+
var seenBaseDepIDs = /* @__PURE__ */ new Map();
|
|
190
191
|
var baseDepID = (id) => {
|
|
192
|
+
const seen = seenBaseDepIDs.get(id);
|
|
193
|
+
if (seen) return seen;
|
|
191
194
|
const [type, first, second] = splitDepID(id);
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
return joinDepIDTuple([type, first, second]);
|
|
196
|
-
default:
|
|
197
|
-
return joinDepIDTuple([type, first]);
|
|
198
|
-
}
|
|
195
|
+
const res = type === "git" || type === "registry" ? joinDepIDTuple([type, first, second]) : joinDepIDTuple([type, first]);
|
|
196
|
+
seenBaseDepIDs.set(id, res);
|
|
197
|
+
return res;
|
|
199
198
|
};
|
|
200
199
|
var seenHydrated = /* @__PURE__ */ new Map();
|
|
201
200
|
var hydrate = (id, name, options = {}) => {
|
|
@@ -411,6 +410,7 @@ var resetCaches = () => {
|
|
|
411
410
|
seenHydratedTuples.clear();
|
|
412
411
|
seenSplitDepIDs.clear();
|
|
413
412
|
seenTuples.clear();
|
|
413
|
+
seenBaseDepIDs.clear();
|
|
414
414
|
};
|
|
415
415
|
|
|
416
416
|
// ../../src/dep-id/src/index.ts
|
|
@@ -870,6 +870,7 @@ export {
|
|
|
870
870
|
splitDepID,
|
|
871
871
|
baseDepID,
|
|
872
872
|
hydrate,
|
|
873
|
+
getTuple,
|
|
873
874
|
isPackageNameConfused,
|
|
874
875
|
getId,
|
|
875
876
|
joinExtra,
|
|
@@ -9,18 +9,24 @@ globalThis.setInterval = _vlt_setInterval;
|
|
|
9
9
|
globalThis.clearInterval = _vlt_clearInterval;
|
|
10
10
|
import {createRequire as _vlt_createRequire} from "node:module";
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
|
+
import {
|
|
13
|
+
openUrl
|
|
14
|
+
} from "./chunk-OB73T23B.js";
|
|
12
15
|
import {
|
|
13
16
|
stderr
|
|
14
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JXVDCQZF.js";
|
|
15
18
|
import {
|
|
16
19
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-7D7SNVBV.js";
|
|
18
21
|
import {
|
|
19
22
|
ViewClass
|
|
20
23
|
} from "./chunk-4KCU2KZL.js";
|
|
21
24
|
import {
|
|
22
|
-
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
getTokenByURL
|
|
26
|
+
} from "./chunk-AGHW2E24.js";
|
|
27
|
+
|
|
28
|
+
// ../../src/cli-sdk/src/query-auth.ts
|
|
29
|
+
var createGetAuthHeader = (conf) => async (url) => getTokenByURL(url, conf.options.identity);
|
|
24
30
|
|
|
25
31
|
// ../../src/cli-sdk/src/mermaid-image-view.ts
|
|
26
32
|
var MermaidImageView = class extends ViewClass {
|
|
@@ -36,16 +42,17 @@ var MermaidImageView = class extends ViewClass {
|
|
|
36
42
|
stderr(`Generating PNG image...`);
|
|
37
43
|
const filePath = await renderMermaidToPng(mermaidText);
|
|
38
44
|
stderr(`Image saved to: ${filePath}`);
|
|
39
|
-
await
|
|
45
|
+
await openUrl(filePath);
|
|
40
46
|
} else {
|
|
41
47
|
stderr(`Generating SVG image...`);
|
|
42
48
|
const filePath = await renderMermaidToFile(mermaidText);
|
|
43
49
|
stderr(`Image saved to: ${filePath}`);
|
|
44
|
-
await
|
|
50
|
+
await openUrl(filePath);
|
|
45
51
|
}
|
|
46
52
|
}
|
|
47
53
|
};
|
|
48
54
|
|
|
49
55
|
export {
|
|
56
|
+
createGetAuthHeader,
|
|
50
57
|
MermaidImageView
|
|
51
58
|
};
|
|
@@ -11,10 +11,10 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
install
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-7D7SNVBV.js";
|
|
15
|
+
import "./chunk-FG633ZKS.js";
|
|
16
|
+
import "./chunk-OWML62W5.js";
|
|
17
|
+
import "./chunk-YOE3VZFX.js";
|
|
18
18
|
import {
|
|
19
19
|
commandUsage
|
|
20
20
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -60,7 +60,7 @@ var usage = () => commandUsage({
|
|
|
60
60
|
var views = {
|
|
61
61
|
json: (i) => i.graph.toJSON(),
|
|
62
62
|
human: lazyView(
|
|
63
|
-
async () => (await import("./reporter-
|
|
63
|
+
async () => (await import("./reporter-SDMDYYMJ.js")).InstallReporter
|
|
64
64
|
)
|
|
65
65
|
};
|
|
66
66
|
var command = async (conf) => {
|
package/cli-package.json
CHANGED
|
@@ -15,11 +15,11 @@ import {
|
|
|
15
15
|
kCustomInspect,
|
|
16
16
|
pairsToRecords,
|
|
17
17
|
recordsToPairs
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-WY4PAM6D.js";
|
|
19
|
+
import "./chunk-YCVPEZRM.js";
|
|
20
20
|
import "./chunk-ZWKI5OSF.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-OWML62W5.js";
|
|
22
|
+
import "./chunk-YOE3VZFX.js";
|
|
23
23
|
import "./chunk-XKVU23NC.js";
|
|
24
24
|
import {
|
|
25
25
|
commands,
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
import {
|
|
17
17
|
pairsToRecords,
|
|
18
18
|
recordsToPairs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-WY4PAM6D.js";
|
|
20
|
+
import "./chunk-YCVPEZRM.js";
|
|
21
21
|
import "./chunk-ZWKI5OSF.js";
|
|
22
22
|
import {
|
|
23
23
|
asRootError
|
|
24
24
|
} from "./chunk-GDJ7JT2R.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-OWML62W5.js";
|
|
26
|
+
import "./chunk-YOE3VZFX.js";
|
|
27
27
|
import {
|
|
28
28
|
commandUsage
|
|
29
29
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -11,18 +11,18 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
vlxResolve
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-5QAFAGO5.js";
|
|
15
15
|
import {
|
|
16
16
|
ExecCommand,
|
|
17
17
|
views
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UYIA44HE.js";
|
|
19
19
|
import "./chunk-RIYFGX27.js";
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-NC3QYZPW.js";
|
|
21
|
+
import "./chunk-YCVPEZRM.js";
|
|
22
22
|
import "./chunk-ZWKI5OSF.js";
|
|
23
23
|
import {
|
|
24
24
|
styleTextStdout
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JXVDCQZF.js";
|
|
26
26
|
import "./chunk-YAIKXFLN.js";
|
|
27
27
|
import "./chunk-G2YT2GWF.js";
|
|
28
28
|
import "./chunk-GDJ7JT2R.js";
|
|
@@ -32,10 +32,10 @@ import "./chunk-WGDTG44V.js";
|
|
|
32
32
|
import {
|
|
33
33
|
exec,
|
|
34
34
|
execFG
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
38
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-7D7SNVBV.js";
|
|
36
|
+
import "./chunk-FG633ZKS.js";
|
|
37
|
+
import "./chunk-OWML62W5.js";
|
|
38
|
+
import "./chunk-YOE3VZFX.js";
|
|
39
39
|
import {
|
|
40
40
|
commandUsage
|
|
41
41
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -11,13 +11,13 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-YCVPEZRM.js";
|
|
15
15
|
import "./chunk-ZWKI5OSF.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveRegistry
|
|
18
18
|
} from "./chunk-5JFRXIK2.js";
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-OWML62W5.js";
|
|
20
|
+
import "./chunk-YOE3VZFX.js";
|
|
21
21
|
import {
|
|
22
22
|
commandUsage
|
|
23
23
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -28,7 +28,7 @@ import "./chunk-XISRK3R5.js";
|
|
|
28
28
|
import "./chunk-HTOTG4TS.js";
|
|
29
29
|
import {
|
|
30
30
|
RegistryClient
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AGHW2E24.js";
|
|
32
32
|
import "./chunk-HAYXR3MW.js";
|
|
33
33
|
import "./chunk-E74WGW5C.js";
|
|
34
34
|
import "./chunk-LPIBYUMT.js";
|