@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
|
@@ -11,17 +11,17 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
packTarball
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-MUG5K6X2.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-NC3QYZPW.js";
|
|
18
18
|
import "./chunk-ZWKI5OSF.js";
|
|
19
19
|
import {
|
|
20
20
|
prettyBytes
|
|
21
21
|
} from "./chunk-XA47WS4N.js";
|
|
22
22
|
import {
|
|
23
23
|
stderr
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-JXVDCQZF.js";
|
|
25
25
|
import "./chunk-YAIKXFLN.js";
|
|
26
26
|
import "./chunk-G2YT2GWF.js";
|
|
27
27
|
import "./chunk-GDJ7JT2R.js";
|
|
@@ -33,12 +33,12 @@ import {
|
|
|
33
33
|
Query,
|
|
34
34
|
actual,
|
|
35
35
|
run
|
|
36
|
-
} from "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
} from "./chunk-7D7SNVBV.js";
|
|
37
|
+
import "./chunk-FG633ZKS.js";
|
|
38
38
|
import {
|
|
39
39
|
minimatch
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
40
|
+
} from "./chunk-OWML62W5.js";
|
|
41
|
+
import "./chunk-YOE3VZFX.js";
|
|
42
42
|
import {
|
|
43
43
|
commandUsage
|
|
44
44
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
RegistryClient,
|
|
51
51
|
oidc,
|
|
52
52
|
registryBase
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-AGHW2E24.js";
|
|
54
54
|
import "./chunk-HAYXR3MW.js";
|
|
55
55
|
import "./chunk-E74WGW5C.js";
|
|
56
56
|
import "./chunk-LPIBYUMT.js";
|
|
@@ -10,17 +10,19 @@ 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
|
-
MermaidImageView
|
|
14
|
-
|
|
13
|
+
MermaidImageView,
|
|
14
|
+
createGetAuthHeader
|
|
15
|
+
} from "./chunk-ZXIF4PVX.js";
|
|
15
16
|
import {
|
|
16
17
|
createDiffFilesProvider
|
|
17
18
|
} from "./chunk-RIYFGX27.js";
|
|
19
|
+
import "./chunk-OB73T23B.js";
|
|
18
20
|
import {
|
|
19
21
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NC3QYZPW.js";
|
|
21
23
|
import {
|
|
22
24
|
stdout
|
|
23
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-JXVDCQZF.js";
|
|
24
26
|
import "./chunk-YAIKXFLN.js";
|
|
25
27
|
import "./chunk-G2YT2GWF.js";
|
|
26
28
|
import "./chunk-GDJ7JT2R.js";
|
|
@@ -34,12 +36,12 @@ import {
|
|
|
34
36
|
humanReadableOutput,
|
|
35
37
|
jsonOutput,
|
|
36
38
|
mermaidOutput
|
|
37
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-7D7SNVBV.js";
|
|
38
40
|
import {
|
|
39
41
|
SecurityArchive
|
|
40
|
-
} from "./chunk-
|
|
41
|
-
import "./chunk-
|
|
42
|
-
import "./chunk-
|
|
42
|
+
} from "./chunk-FG633ZKS.js";
|
|
43
|
+
import "./chunk-OWML62W5.js";
|
|
44
|
+
import "./chunk-YOE3VZFX.js";
|
|
43
45
|
import {
|
|
44
46
|
commandUsage
|
|
45
47
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -47,6 +49,7 @@ import "./chunk-XKVU23NC.js";
|
|
|
47
49
|
import "./chunk-XISRK3R5.js";
|
|
48
50
|
import "./chunk-4KCU2KZL.js";
|
|
49
51
|
import "./chunk-HTOTG4TS.js";
|
|
52
|
+
import "./chunk-AGHW2E24.js";
|
|
50
53
|
import "./chunk-HAYXR3MW.js";
|
|
51
54
|
import "./chunk-E74WGW5C.js";
|
|
52
55
|
import "./chunk-LPIBYUMT.js";
|
|
@@ -180,6 +183,7 @@ var command = async (conf) => {
|
|
|
180
183
|
const queryString = targetQueryString || positionalQueryString;
|
|
181
184
|
const hostContexts = await createHostContextsMap(conf);
|
|
182
185
|
const diffFiles = createDiffFilesProvider(conf.options.projectRoot);
|
|
186
|
+
const getAuthHeader = createGetAuthHeader(conf);
|
|
183
187
|
const importers = /* @__PURE__ */ new Set();
|
|
184
188
|
const scopeIDs = [];
|
|
185
189
|
let scopeNodes;
|
|
@@ -193,7 +197,8 @@ var command = async (conf) => {
|
|
|
193
197
|
importers: importers2,
|
|
194
198
|
securityArchive,
|
|
195
199
|
hostContexts,
|
|
196
|
-
diffFiles
|
|
200
|
+
diffFiles,
|
|
201
|
+
getAuthHeader
|
|
197
202
|
});
|
|
198
203
|
const { nodes: resultNodes } = await scopeQuery.search(
|
|
199
204
|
scopeQueryString,
|
|
@@ -254,7 +259,8 @@ var command = async (conf) => {
|
|
|
254
259
|
importers: importers_,
|
|
255
260
|
securityArchive,
|
|
256
261
|
hostContexts,
|
|
257
|
-
diffFiles
|
|
262
|
+
diffFiles,
|
|
263
|
+
getAuthHeader
|
|
258
264
|
});
|
|
259
265
|
const query = queryString || (graph ? defaultProjectQueryString : defaultLocalScopeQueryString);
|
|
260
266
|
const {
|
|
@@ -13220,13 +13220,13 @@ var require_mock_call_history = __commonJS({
|
|
|
13220
13220
|
function makeFilterCalls(parameterName) {
|
|
13221
13221
|
return (parameterValue, logs) => {
|
|
13222
13222
|
if (typeof parameterValue === "string" || parameterValue == null) {
|
|
13223
|
-
return logs.filter((
|
|
13224
|
-
return
|
|
13223
|
+
return logs.filter((log4) => {
|
|
13224
|
+
return log4[parameterName] === parameterValue;
|
|
13225
13225
|
});
|
|
13226
13226
|
}
|
|
13227
13227
|
if (parameterValue instanceof RegExp) {
|
|
13228
|
-
return logs.filter((
|
|
13229
|
-
return parameterValue.test(
|
|
13228
|
+
return logs.filter((log4) => {
|
|
13229
|
+
return parameterValue.test(log4[parameterName]);
|
|
13230
13230
|
});
|
|
13231
13231
|
}
|
|
13232
13232
|
throw new InvalidArgumentError(`${parameterName} parameter should be one of string, regexp, undefined or null`);
|
|
@@ -13321,8 +13321,8 @@ var require_mock_call_history = __commonJS({
|
|
|
13321
13321
|
return this.logs.filter(criteria);
|
|
13322
13322
|
}
|
|
13323
13323
|
if (criteria instanceof RegExp) {
|
|
13324
|
-
return this.logs.filter((
|
|
13325
|
-
return criteria.test(
|
|
13324
|
+
return this.logs.filter((log4) => {
|
|
13325
|
+
return criteria.test(log4.toString());
|
|
13326
13326
|
});
|
|
13327
13327
|
}
|
|
13328
13328
|
if (typeof criteria === "object" && criteria !== null) {
|
|
@@ -13372,13 +13372,13 @@ var require_mock_call_history = __commonJS({
|
|
|
13372
13372
|
this.logs = [];
|
|
13373
13373
|
}
|
|
13374
13374
|
[kMockCallHistoryAddLog](requestInit) {
|
|
13375
|
-
const
|
|
13376
|
-
this.logs.push(
|
|
13377
|
-
return
|
|
13375
|
+
const log4 = new MockCallHistoryLog(requestInit);
|
|
13376
|
+
this.logs.push(log4);
|
|
13377
|
+
return log4;
|
|
13378
13378
|
}
|
|
13379
13379
|
*[Symbol.iterator]() {
|
|
13380
|
-
for (const
|
|
13381
|
-
yield
|
|
13380
|
+
for (const log4 of this.calls()) {
|
|
13381
|
+
yield log4;
|
|
13382
13382
|
}
|
|
13383
13383
|
}
|
|
13384
13384
|
};
|
|
@@ -33405,7 +33405,8 @@ var otplease = async (client, options, response) => {
|
|
|
33405
33405
|
const notice = String(npmNotice);
|
|
33406
33406
|
const match = otpChallengeNotice.exec(notice);
|
|
33407
33407
|
if (match?.[1]) {
|
|
33408
|
-
await urlOpen(match[1])
|
|
33408
|
+
await urlOpen(match[1]).catch(() => {
|
|
33409
|
+
});
|
|
33409
33410
|
log2(notice);
|
|
33410
33411
|
return {
|
|
33411
33412
|
retry: {
|
|
@@ -33545,6 +33546,7 @@ var readBody = async (response, entry) => {
|
|
|
33545
33546
|
var import_undici2 = __toESM(require_undici(), 1);
|
|
33546
33547
|
|
|
33547
33548
|
// ../../src/registry-client/src/index.ts
|
|
33549
|
+
var log3 = (msg) => console.error(msg);
|
|
33548
33550
|
var isCacheableMethod = (m2) => m2 === "GET" || m2 === "HEAD";
|
|
33549
33551
|
var cacheKey = (method, url) => `${method !== "GET" ? method + " " : ""}${url}`;
|
|
33550
33552
|
var { version } = loadPackageJson(
|
|
@@ -33717,8 +33719,9 @@ var RegistryClient = class {
|
|
|
33717
33719
|
}),
|
|
33718
33720
|
urlOpen(authUrl, { signal }).catch((er) => {
|
|
33719
33721
|
if (asError(er).name === "AbortError") return;
|
|
33720
|
-
|
|
33721
|
-
|
|
33722
|
+
log3(
|
|
33723
|
+
`Could not open a browser. Please open ${authUrl} manually.`
|
|
33724
|
+
);
|
|
33722
33725
|
})
|
|
33723
33726
|
]);
|
|
33724
33727
|
return result;
|
|
@@ -12,22 +12,31 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
require_lib
|
|
14
14
|
} from "./chunk-CLVRCGOZ.js";
|
|
15
|
+
import {
|
|
16
|
+
openUrl
|
|
17
|
+
} from "./chunk-OB73T23B.js";
|
|
15
18
|
import {
|
|
16
19
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-NC3QYZPW.js";
|
|
18
21
|
import {
|
|
19
22
|
PackageInfoClient
|
|
20
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YCVPEZRM.js";
|
|
21
24
|
import "./chunk-ZWKI5OSF.js";
|
|
25
|
+
import "./chunk-JXVDCQZF.js";
|
|
26
|
+
import "./chunk-YAIKXFLN.js";
|
|
27
|
+
import "./chunk-G2YT2GWF.js";
|
|
28
|
+
import "./chunk-GDJ7JT2R.js";
|
|
29
|
+
import "./chunk-5JFRXIK2.js";
|
|
30
|
+
import "./chunk-WGDTG44V.js";
|
|
22
31
|
import {
|
|
23
32
|
Query,
|
|
24
33
|
actual
|
|
25
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-7D7SNVBV.js";
|
|
26
35
|
import {
|
|
27
36
|
SecurityArchive
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-FG633ZKS.js";
|
|
38
|
+
import "./chunk-OWML62W5.js";
|
|
39
|
+
import "./chunk-YOE3VZFX.js";
|
|
31
40
|
import {
|
|
32
41
|
commandUsage
|
|
33
42
|
} from "./chunk-PTR5IGFQ.js";
|
|
@@ -35,10 +44,9 @@ import {
|
|
|
35
44
|
Spec
|
|
36
45
|
} from "./chunk-XKVU23NC.js";
|
|
37
46
|
import "./chunk-XISRK3R5.js";
|
|
47
|
+
import "./chunk-4KCU2KZL.js";
|
|
38
48
|
import "./chunk-HTOTG4TS.js";
|
|
39
|
-
import
|
|
40
|
-
urlOpen
|
|
41
|
-
} from "./chunk-HAYXR3MW.js";
|
|
49
|
+
import "./chunk-HAYXR3MW.js";
|
|
42
50
|
import "./chunk-E74WGW5C.js";
|
|
43
51
|
import "./chunk-LPIBYUMT.js";
|
|
44
52
|
import "./chunk-UBLFPJHV.js";
|
|
@@ -168,7 +176,7 @@ var command = async (conf) => {
|
|
|
168
176
|
if (!result) {
|
|
169
177
|
throw error("Unexpected empty result");
|
|
170
178
|
}
|
|
171
|
-
await
|
|
179
|
+
await openUrl(result.url);
|
|
172
180
|
return result;
|
|
173
181
|
}
|
|
174
182
|
return results;
|
|
@@ -185,7 +193,7 @@ var command = async (conf) => {
|
|
|
185
193
|
if (!name) {
|
|
186
194
|
throw error("No package name found");
|
|
187
195
|
}
|
|
188
|
-
await
|
|
196
|
+
await openUrl(url);
|
|
189
197
|
return { url, name };
|
|
190
198
|
};
|
|
191
199
|
export {
|