@vltpkg/cli-js 1.0.1 → 1.0.2
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-SXQICNAN.js → access-DB347PPG.js} +4 -4
- package/{bugs-OOPMFRCI.js → bugs-QBKI62J6.js} +10 -10
- package/{build-HDXI5OA7.js → build-EFJ3FFGU.js} +6 -6
- package/{cache-RW4Y4XNQ.js → cache-BQJCMDJN.js} +8 -8
- package/{chunk-U6DM3ROE.js → chunk-3HUTU5SO.js} +1 -1
- package/{chunk-F2FKLPZD.js → chunk-3MBSXZ62.js} +1 -1
- package/{chunk-UCD3RJYG.js → chunk-42UTZKAU.js} +5 -5
- package/{chunk-E5YE7UTZ.js → chunk-47IR6Z6C.js} +33 -16
- package/{chunk-4ZXA6RLP.js → chunk-5OGQND6H.js} +1 -1
- package/{chunk-3SQ5Y324.js → chunk-5PFGKHIS.js} +5 -7
- package/{chunk-EFWPI6IY.js → chunk-BSB4XGBB.js} +1 -1
- package/{chunk-EQ633HIM.js → chunk-CTDFRLS4.js} +3 -3
- package/{chunk-CCQYIYTA.js → chunk-DEMBZY23.js} +6 -6
- package/{chunk-ICJRCXSG.js → chunk-F2GLBPGQ.js} +8 -7
- package/{chunk-MT76WHSM.js → chunk-FM5DQZVN.js} +12 -6
- package/{chunk-MU7Y4R5E.js → chunk-L34LR5DV.js} +2 -2
- package/chunk-NS4VFXHX.js +49 -0
- package/{chunk-FAG776ZD.js → chunk-ONVLPT73.js} +1 -1
- package/{chunk-2PLIV3N3.js → chunk-Q46JRSZU.js} +718 -3
- package/{chunk-D5CP6O6G.js → chunk-TM4LHSZV.js} +4 -4
- package/{chunk-EHEVBLDB.js → chunk-ULCDRVY2.js} +4 -4
- package/{chunk-4RZDJQ5U.js → chunk-UVZJFBYE.js} +1 -1
- package/{chunk-WXMYKCQW.js → chunk-WAFERMRI.js} +39 -16
- package/{chunk-VM2RMMY4.js → chunk-YDUHQU7N.js} +3 -3
- package/{chunk-VZ7UNZHR.js → chunk-YRMICBI4.js} +2 -2
- package/chunk-ZLZ4XF46.js +75 -0
- package/{ci-MTYU2K2A.js → ci-A22A6TCQ.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-TVAXCTQO.js → config-JL4TW2AV.js} +7 -7
- package/{config-6NXV2BXW.js → config-VOLRKFYD.js} +8 -8
- package/{create-LXI5DCDW.js → create-SL7HEXCS.js} +14 -14
- package/{deprecate-2AQBL5XT.js → deprecate-ZK525LQW.js} +8 -8
- package/{dist-tag-BFSYLRIH.js → dist-tag-FY3FB5VH.js} +5 -5
- package/{docs-ADPJ4B4C.js → docs-6BPWZJFW.js} +10 -10
- package/{exec-GMS54RAC.js → exec-JZ5J7DI7.js} +14 -14
- package/{exec-cache-R5LVZL5Z.js → exec-cache-VGSXKZVF.js} +12 -12
- package/{exec-local-TVCLZGIM.js → exec-local-GPZUSOSM.js} +11 -11
- package/{help-6CECUD6C.js → help-XI7TNIRU.js} +1 -1
- package/{init-XXFLGYVP.js → init-6KWM7CDI.js} +7 -7
- package/{install-6KMXYSF5.js → install-4VLOKCWH.js} +8 -8
- package/{list-RUO3SUKY.js → list-3VLGWGKU.js} +11 -11
- package/{login-6I2CGO7I.js → login-3DGPSWCG.js} +4 -4
- package/{logout-JTU4BJKH.js → logout-DBFMZC6J.js} +4 -4
- package/{pack-NCWH2TUA.js → pack-LHNYEZ5W.js} +8 -8
- package/package.json +6 -6
- package/{ping-4MEAC2WD.js → ping-VLLX5LIH.js} +4 -4
- package/{pkg-ENSKG6G7.js → pkg-FYPUMX7U.js} +8 -8
- package/{profile-62YHNFSO.js → profile-FOQ74TB7.js} +4 -4
- package/{publish-PPY724N2.js → publish-DFURU7DW.js} +10 -10
- package/{query-NLWXKOOT.js → query-NC3EABMW.js} +11 -11
- package/{registry-QGI44LG4.js → registry-5DUFCPD6.js} +3 -3
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +1679 -23
- package/{repo-BFRAXIVU.js → repo-IZXACKQ2.js} +10 -10
- package/{reporter-2XBYWAVU.js → reporter-UU654STB.js} +2 -2
- package/{run-7O65747G.js → run-RDFVO7FY.js} +11 -11
- package/{run-exec-2OYWHL6K.js → run-exec-OGMXEVN5.js} +11 -11
- package/security-archive-src-update-expired.js +28 -2
- package/{setup-MMIDAIJI.js → setup-KTJQPDJB.js} +17 -10
- package/{src-OK3KHDYR.js → src-BJU7XZNK.js} +12 -12
- package/{token-VLVXUW54.js → token-SKICECA4.js} +4 -4
- package/{uninstall-TAG6QIAG.js → uninstall-MTZJ33TO.js} +8 -8
- package/{unpublish-Y4L5J2IA.js → unpublish-3QBJZFHQ.js} +5 -5
- package/{update-RYH4RKBS.js → update-TH477PKA.js} +7 -7
- package/{version-COHB32ON.js → version-YIBQZLQS.js} +7 -7
- package/{view-P7U4MF43.js → view-FG74OAOV.js} +8 -8
- 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-47MVFMZC.js → whoami-LHJ4PRJQ.js} +4 -4
- package/chunk-HB7CKTYO.js +0 -75
- package/chunk-PW6S6AIO.js +0 -716
|
@@ -11,20 +11,20 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
resolveRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ONVLPT73.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
17
|
} from "./chunk-LCDBW6IT.js";
|
|
18
18
|
import {
|
|
19
19
|
RegistryClient
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-3HUTU5SO.js";
|
|
21
21
|
import "./chunk-CNSTFT7U.js";
|
|
22
22
|
import "./chunk-7NHXV6AH.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NS4VFXHX.js";
|
|
24
24
|
import "./chunk-E74WGW5C.js";
|
|
25
25
|
import "./chunk-WP6CYBPM.js";
|
|
26
26
|
import "./chunk-UBLFPJHV.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-Q46JRSZU.js";
|
|
28
28
|
import "./chunk-XNLSTHDK.js";
|
|
29
29
|
import {
|
|
30
30
|
error
|
|
@@ -14,36 +14,36 @@ import {
|
|
|
14
14
|
} from "./chunk-CLVRCGOZ.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YDUHQU7N.js";
|
|
18
18
|
import {
|
|
19
19
|
Query,
|
|
20
20
|
actual
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-47IR6Z6C.js";
|
|
22
22
|
import {
|
|
23
23
|
SecurityArchive
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3MBSXZ62.js";
|
|
25
25
|
import {
|
|
26
26
|
PackageInfoClient
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-WAFERMRI.js";
|
|
28
28
|
import "./chunk-FWKQ7YDF.js";
|
|
29
|
-
import "./chunk-
|
|
30
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-F2GLBPGQ.js";
|
|
30
|
+
import "./chunk-FM5DQZVN.js";
|
|
31
31
|
import "./chunk-HTOTG4TS.js";
|
|
32
32
|
import {
|
|
33
33
|
commandUsage
|
|
34
34
|
} from "./chunk-LCDBW6IT.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-3HUTU5SO.js";
|
|
36
36
|
import {
|
|
37
37
|
urlOpen
|
|
38
38
|
} from "./chunk-CNSTFT7U.js";
|
|
39
39
|
import "./chunk-7NHXV6AH.js";
|
|
40
40
|
import {
|
|
41
|
-
|
|
42
|
-
} from "./chunk-
|
|
41
|
+
Spec
|
|
42
|
+
} from "./chunk-NS4VFXHX.js";
|
|
43
43
|
import "./chunk-E74WGW5C.js";
|
|
44
44
|
import "./chunk-WP6CYBPM.js";
|
|
45
45
|
import "./chunk-UBLFPJHV.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-Q46JRSZU.js";
|
|
47
47
|
import "./chunk-XNLSTHDK.js";
|
|
48
48
|
import {
|
|
49
49
|
error
|
|
@@ -11,22 +11,22 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
build
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-47IR6Z6C.js";
|
|
15
|
+
import "./chunk-3MBSXZ62.js";
|
|
16
|
+
import "./chunk-F2GLBPGQ.js";
|
|
17
|
+
import "./chunk-FM5DQZVN.js";
|
|
18
18
|
import "./chunk-HTOTG4TS.js";
|
|
19
19
|
import {
|
|
20
20
|
commandUsage
|
|
21
21
|
} from "./chunk-LCDBW6IT.js";
|
|
22
22
|
import "./chunk-7NHXV6AH.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-NS4VFXHX.js";
|
|
24
24
|
import "./chunk-E74WGW5C.js";
|
|
25
25
|
import "./chunk-WP6CYBPM.js";
|
|
26
26
|
import "./chunk-UBLFPJHV.js";
|
|
27
27
|
import {
|
|
28
28
|
isErrorWithCause
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-Q46JRSZU.js";
|
|
30
30
|
import "./chunk-XNLSTHDK.js";
|
|
31
31
|
import {
|
|
32
32
|
error
|
|
@@ -15,31 +15,31 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ULCDRVY2.js";
|
|
19
19
|
import "./chunk-G2YT2GWF.js";
|
|
20
20
|
import "./chunk-Y7CQIZ7Y.js";
|
|
21
21
|
import {
|
|
22
22
|
ViewClass
|
|
23
23
|
} from "./chunk-RXNA2XCX.js";
|
|
24
24
|
import "./chunk-WGDTG44V.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-BSB4XGBB.js";
|
|
26
|
+
import "./chunk-FM5DQZVN.js";
|
|
27
|
+
import "./chunk-ONVLPT73.js";
|
|
28
28
|
import {
|
|
29
29
|
commandUsage
|
|
30
30
|
} from "./chunk-LCDBW6IT.js";
|
|
31
31
|
import {
|
|
32
32
|
CacheEntry
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-3HUTU5SO.js";
|
|
34
34
|
import "./chunk-CNSTFT7U.js";
|
|
35
35
|
import "./chunk-7NHXV6AH.js";
|
|
36
36
|
import {
|
|
37
|
-
|
|
38
|
-
} from "./chunk-
|
|
37
|
+
Spec
|
|
38
|
+
} from "./chunk-NS4VFXHX.js";
|
|
39
39
|
import "./chunk-E74WGW5C.js";
|
|
40
40
|
import "./chunk-WP6CYBPM.js";
|
|
41
41
|
import "./chunk-UBLFPJHV.js";
|
|
42
|
-
import "./chunk-
|
|
42
|
+
import "./chunk-Q46JRSZU.js";
|
|
43
43
|
import "./chunk-XNLSTHDK.js";
|
|
44
44
|
import {
|
|
45
45
|
error
|
|
@@ -14,26 +14,26 @@ import {
|
|
|
14
14
|
} from "./chunk-RIYFGX27.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-YDUHQU7N.js";
|
|
18
18
|
import {
|
|
19
19
|
stderr,
|
|
20
20
|
stdout,
|
|
21
21
|
styleTextStdout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ULCDRVY2.js";
|
|
23
23
|
import {
|
|
24
24
|
Query,
|
|
25
25
|
actual,
|
|
26
26
|
isRunResult
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-47IR6Z6C.js";
|
|
28
28
|
import {
|
|
29
29
|
require_emoji_regex
|
|
30
30
|
} from "./chunk-VTEFO2FT.js";
|
|
31
31
|
import {
|
|
32
32
|
Monorepo
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-F2GLBPGQ.js";
|
|
34
34
|
import {
|
|
35
35
|
isErrorWithCause
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-Q46JRSZU.js";
|
|
37
37
|
import {
|
|
38
38
|
error
|
|
39
39
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
AbortError,
|
|
14
14
|
SecurityArchive,
|
|
15
15
|
pRetry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-3MBSXZ62.js";
|
|
17
17
|
import {
|
|
18
18
|
Monorepo,
|
|
19
19
|
PackageJson,
|
|
20
20
|
getUser,
|
|
21
21
|
minimatch,
|
|
22
22
|
platformCheck
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-F2GLBPGQ.js";
|
|
24
24
|
import {
|
|
25
25
|
asDepID,
|
|
26
26
|
getId,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
joinExtra,
|
|
34
34
|
splitDepID,
|
|
35
35
|
splitExtra
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-FM5DQZVN.js";
|
|
37
37
|
import {
|
|
38
38
|
load,
|
|
39
39
|
walkUp
|
|
@@ -43,31 +43,32 @@ import {
|
|
|
43
43
|
rimraf
|
|
44
44
|
} from "./chunk-7NHXV6AH.js";
|
|
45
45
|
import {
|
|
46
|
-
Spec
|
|
47
|
-
|
|
48
|
-
defaultGitHostArchives,
|
|
49
|
-
defaultGitHosts,
|
|
50
|
-
defaultJsrRegistries,
|
|
51
|
-
defaultRegistries,
|
|
52
|
-
defaultRegistryName,
|
|
53
|
-
defaultScopeRegistries,
|
|
54
|
-
getOptions,
|
|
55
|
-
gitHostWebsites
|
|
56
|
-
} from "./chunk-PW6S6AIO.js";
|
|
46
|
+
Spec as Spec2
|
|
47
|
+
} from "./chunk-NS4VFXHX.js";
|
|
57
48
|
import {
|
|
58
49
|
graphStep
|
|
59
50
|
} from "./chunk-UBLFPJHV.js";
|
|
60
51
|
import {
|
|
52
|
+
Spec,
|
|
61
53
|
Version,
|
|
62
54
|
asError,
|
|
63
55
|
asManifest,
|
|
64
56
|
asNormalizedManifest,
|
|
57
|
+
assertPathSafeName,
|
|
65
58
|
assertRecordStringString,
|
|
66
59
|
compare,
|
|
60
|
+
defaultGitHostArchives,
|
|
61
|
+
defaultGitHosts,
|
|
62
|
+
defaultJsrRegistries,
|
|
63
|
+
defaultRegistries,
|
|
64
|
+
defaultRegistryName,
|
|
65
|
+
defaultScopeRegistries,
|
|
67
66
|
dependencyTypes,
|
|
68
67
|
eq,
|
|
69
68
|
expandNormalizedManifestSymbols,
|
|
70
69
|
fastSplit,
|
|
70
|
+
getOptions,
|
|
71
|
+
gitHostWebsites,
|
|
71
72
|
gt,
|
|
72
73
|
gte,
|
|
73
74
|
intersects,
|
|
@@ -86,7 +87,7 @@ import {
|
|
|
86
87
|
satisfies,
|
|
87
88
|
shortDependencyTypes,
|
|
88
89
|
subset
|
|
89
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-Q46JRSZU.js";
|
|
90
91
|
import {
|
|
91
92
|
XDG
|
|
92
93
|
} from "./chunk-XNLSTHDK.js";
|
|
@@ -9339,6 +9340,7 @@ var Graph = class {
|
|
|
9339
9340
|
if (to) {
|
|
9340
9341
|
spec2.name = to.name || "(unknown)";
|
|
9341
9342
|
spec2.spec = `${to.name}@${spec2.bareSpec}`;
|
|
9343
|
+
assertPathSafeName(spec2.name, spec2.spec);
|
|
9342
9344
|
} else {
|
|
9343
9345
|
throw error(
|
|
9344
9346
|
"Impossible to place a missing, nameless dependency",
|
|
@@ -9689,6 +9691,7 @@ var loadNodes = (graph, nodes, options, actual2, throwOnMissingManifest) => {
|
|
|
9689
9691
|
const nodeCount = entries.length;
|
|
9690
9692
|
const registryVersionCache = nodeCount > 50 ? /* @__PURE__ */ new Map() : null;
|
|
9691
9693
|
for (const [id2, lockfileNode] of entries) {
|
|
9694
|
+
asDepID(id2);
|
|
9692
9695
|
const [
|
|
9693
9696
|
flags,
|
|
9694
9697
|
name,
|
|
@@ -11767,6 +11770,17 @@ var fixupAddedNames = (add, manifest, options, spec2) => {
|
|
|
11767
11770
|
return spec2;
|
|
11768
11771
|
};
|
|
11769
11772
|
|
|
11773
|
+
// ../../src/graph/src/path-security-error.ts
|
|
11774
|
+
var codes = /* @__PURE__ */ new Set(["EINVALIDNAME"]);
|
|
11775
|
+
var isPathSecurityError = (er) => {
|
|
11776
|
+
for (let e = er; e && typeof e === "object"; e = e.cause) {
|
|
11777
|
+
const { code } = e;
|
|
11778
|
+
if (typeof code === "string" && codes.has(code))
|
|
11779
|
+
return true;
|
|
11780
|
+
}
|
|
11781
|
+
return false;
|
|
11782
|
+
};
|
|
11783
|
+
|
|
11770
11784
|
// ../../src/graph/src/reify/extract-node.ts
|
|
11771
11785
|
var getOptionalFailedNodeRemover = (node, diff2) => {
|
|
11772
11786
|
return diff2 ? optionalFail(diff2, node) : node.isOptional() ? () => removeOptionalSubgraph(node.graph, node) : void 0;
|
|
@@ -12483,6 +12497,7 @@ var fetchManifestsForDeps = async (packageInfo, graph, fromNode, deps, scurry, p
|
|
|
12483
12497
|
// part of a graph (either lockfile or actual) and it has valid manifest
|
|
12484
12498
|
// data so we shortcut the package info manifest fetch here
|
|
12485
12499
|
existingNode?.detached && existingNode.manifest ? Promise.resolve(existingNode.manifest) : packageInfo.manifest(spec2, { from: scurry.resolve(fromNode.location) }).then((manifest) => manifest).catch((er) => {
|
|
12500
|
+
if (isPathSecurityError(er)) throw er;
|
|
12486
12501
|
if (edgeOptional || fromNode.optional) {
|
|
12487
12502
|
return void 0;
|
|
12488
12503
|
}
|
|
@@ -12554,7 +12569,8 @@ var processPlacementTasks = async (graph, options, placementTasks, add, modifier
|
|
|
12554
12569
|
fromNode,
|
|
12555
12570
|
type2,
|
|
12556
12571
|
spec2,
|
|
12557
|
-
|
|
12572
|
+
// report broken manifest names against the dependency spec
|
|
12573
|
+
normalizeManifest(manifest, String(spec2)),
|
|
12558
12574
|
fileTypeInfo?.id,
|
|
12559
12575
|
joinExtra({ peerSetHash, modifier: queryModifier })
|
|
12560
12576
|
);
|
|
@@ -12934,6 +12950,7 @@ var build3 = async (options) => {
|
|
|
12934
12950
|
monorepo
|
|
12935
12951
|
});
|
|
12936
12952
|
} catch (err) {
|
|
12953
|
+
if (isPathSecurityError(err)) throw err;
|
|
12937
12954
|
const cause = err.cause;
|
|
12938
12955
|
if (cause?.code === "ELOCKFILEVERSION") {
|
|
12939
12956
|
if (typeof cause.found === "number" && typeof cause.wanted === "number") {
|
|
@@ -11,24 +11,21 @@ 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-WAFERMRI.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F2GLBPGQ.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-FM5DQZVN.js";
|
|
23
23
|
import {
|
|
24
24
|
find,
|
|
25
25
|
load,
|
|
26
26
|
reload,
|
|
27
27
|
save
|
|
28
28
|
} from "./chunk-HTOTG4TS.js";
|
|
29
|
-
import {
|
|
30
|
-
getOptions
|
|
31
|
-
} from "./chunk-PW6S6AIO.js";
|
|
32
29
|
import {
|
|
33
30
|
commands,
|
|
34
31
|
definition,
|
|
@@ -39,8 +36,9 @@ import {
|
|
|
39
36
|
import {
|
|
40
37
|
assertRecordStringString,
|
|
41
38
|
assertRecordStringT,
|
|
39
|
+
getOptions,
|
|
42
40
|
isRecordStringString
|
|
43
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-Q46JRSZU.js";
|
|
44
42
|
import {
|
|
45
43
|
error
|
|
46
44
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -16,14 +16,14 @@ import {
|
|
|
16
16
|
} from "./chunk-FWKQ7YDF.js";
|
|
17
17
|
import {
|
|
18
18
|
minimatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-F2GLBPGQ.js";
|
|
20
20
|
import {
|
|
21
21
|
parse,
|
|
22
22
|
stringify
|
|
23
23
|
} from "./chunk-HTOTG4TS.js";
|
|
24
24
|
import {
|
|
25
|
-
|
|
26
|
-
} from "./chunk-
|
|
25
|
+
Spec
|
|
26
|
+
} from "./chunk-NS4VFXHX.js";
|
|
27
27
|
import {
|
|
28
28
|
error
|
|
29
29
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -12,22 +12,22 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
findCmdShimIfExists,
|
|
14
14
|
install
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-47IR6Z6C.js";
|
|
16
16
|
import {
|
|
17
17
|
PackageInfoClient
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-WAFERMRI.js";
|
|
19
19
|
import {
|
|
20
20
|
PathScurry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-F2GLBPGQ.js";
|
|
22
22
|
import {
|
|
23
23
|
walkUp
|
|
24
24
|
} from "./chunk-HTOTG4TS.js";
|
|
25
25
|
import {
|
|
26
|
-
|
|
27
|
-
} from "./chunk-
|
|
26
|
+
Spec
|
|
27
|
+
} from "./chunk-NS4VFXHX.js";
|
|
28
28
|
import {
|
|
29
29
|
parseScope
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-Q46JRSZU.js";
|
|
31
31
|
import {
|
|
32
32
|
XDG
|
|
33
33
|
} from "./chunk-XNLSTHDK.js";
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
graphRun,
|
|
14
14
|
graphRunSync,
|
|
15
15
|
joinDepIDTuple
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FM5DQZVN.js";
|
|
17
17
|
import {
|
|
18
18
|
load,
|
|
19
19
|
parse as parse2,
|
|
@@ -27,19 +27,19 @@ import {
|
|
|
27
27
|
whichSync
|
|
28
28
|
} from "./chunk-7NHXV6AH.js";
|
|
29
29
|
import {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
} from "./chunk-PW6S6AIO.js";
|
|
30
|
+
Spec
|
|
31
|
+
} from "./chunk-NS4VFXHX.js";
|
|
33
32
|
import {
|
|
34
33
|
Range,
|
|
35
34
|
Version,
|
|
36
35
|
asManifest,
|
|
37
36
|
isRange,
|
|
37
|
+
isSpec,
|
|
38
38
|
longDependencyTypes,
|
|
39
39
|
normalizeManifest,
|
|
40
40
|
parse,
|
|
41
41
|
satisfies
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-Q46JRSZU.js";
|
|
43
43
|
import {
|
|
44
44
|
error
|
|
45
45
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -1143,7 +1143,8 @@ var PackageJson = class {
|
|
|
1143
1143
|
const res = normalizeManifest(
|
|
1144
1144
|
asManifest(
|
|
1145
1145
|
parse2(readFileSync2(filename, { encoding: "utf8" }))
|
|
1146
|
-
)
|
|
1146
|
+
),
|
|
1147
|
+
filename
|
|
1147
1148
|
);
|
|
1148
1149
|
this.#cache.set(dir, res);
|
|
1149
1150
|
this.#pathCache.set(res, dir);
|
|
@@ -6122,7 +6123,7 @@ var Workspace = class {
|
|
|
6122
6123
|
this.path = path2;
|
|
6123
6124
|
this.fullpath = fullpath;
|
|
6124
6125
|
this.manifest = manifest;
|
|
6125
|
-
this.name = manifest.name ?? path2;
|
|
6126
|
+
this.name = manifest.name ?? basename2(path2);
|
|
6126
6127
|
}
|
|
6127
6128
|
get keys() {
|
|
6128
6129
|
if (this.#keys) {
|
|
@@ -9,12 +9,14 @@ 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
|
+
Spec as Spec2
|
|
14
|
+
} from "./chunk-NS4VFXHX.js";
|
|
12
15
|
import {
|
|
13
16
|
Spec,
|
|
14
|
-
Spec2,
|
|
15
17
|
currentDefaultRegistryName,
|
|
16
18
|
defaultRegistryName
|
|
17
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-Q46JRSZU.js";
|
|
18
20
|
import {
|
|
19
21
|
error
|
|
20
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -25,10 +27,12 @@ var EXTRA_PEER_SET_DELIMITER = "peer.";
|
|
|
25
27
|
var depIDRegExp = new RegExp(
|
|
26
28
|
`^((git)?${delimiter}[^${delimiter}]*${delimiter}[^${delimiter}]*(${delimiter}[^${delimiter}]*)?$|^(file|remote|workspace)${delimiter}[^${delimiter}]*)(${delimiter}[^${delimiter}]*)?$`
|
|
27
29
|
);
|
|
28
|
-
var
|
|
30
|
+
var pathUnsafeDepID = (str) => /[/\\\x00-\x1f\x7f]/.test(str) || /^[A-Za-z]:/.test(str) || str.split(delimiter).some((p) => p === "." || p === "..");
|
|
31
|
+
var isDepID = (str) => typeof str === "string" && depIDRegExp.test(str) && !pathUnsafeDepID(str);
|
|
29
32
|
var asDepID = (str) => {
|
|
30
33
|
if (!isDepID(str)) {
|
|
31
|
-
throw error(
|
|
34
|
+
throw error(`Expected dep id.`, {
|
|
35
|
+
code: "EINVALIDNAME",
|
|
32
36
|
found: str
|
|
33
37
|
});
|
|
34
38
|
}
|
|
@@ -287,7 +291,8 @@ var hydrateTuple = (tuple, name, options = {}) => {
|
|
|
287
291
|
if (!first) {
|
|
288
292
|
throw error("no name/path on workspace id", { found: tuple });
|
|
289
293
|
}
|
|
290
|
-
|
|
294
|
+
const workspaceName = name ?? first.slice(first.lastIndexOf("/") + 1);
|
|
295
|
+
res = workspaceName !== first ? Spec.parse(workspaceName, `workspace:${first}@*`, options) : Spec.parse(first, "workspace:*", options);
|
|
291
296
|
break;
|
|
292
297
|
}
|
|
293
298
|
}
|
|
@@ -503,7 +508,8 @@ var hydrateTuple2 = (tuple, name, options = {}) => {
|
|
|
503
508
|
if (!first) {
|
|
504
509
|
throw error("no name/path on workspace id", { found: tuple });
|
|
505
510
|
}
|
|
506
|
-
|
|
511
|
+
const workspaceName = name ?? first.slice(first.lastIndexOf("/") + 1);
|
|
512
|
+
res = workspaceName !== first ? Spec2.parse(workspaceName, `workspace:${first}@*`, options) : Spec2.parse(first, "workspace:*", options);
|
|
507
513
|
break;
|
|
508
514
|
}
|
|
509
515
|
}
|
|
@@ -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
|
stderr
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-ULCDRVY2.js";
|
|
15
15
|
import {
|
|
16
16
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-47IR6Z6C.js";
|
|
18
18
|
import {
|
|
19
19
|
ViewClass
|
|
20
20
|
} from "./chunk-RXNA2XCX.js";
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
Spec,
|
|
14
|
+
kCustomInspect
|
|
15
|
+
} from "./chunk-Q46JRSZU.js";
|
|
16
|
+
|
|
17
|
+
// ../../src/spec/src/index.ts
|
|
18
|
+
import { homedir } from "node:os";
|
|
19
|
+
import {
|
|
20
|
+
isAbsolute,
|
|
21
|
+
join,
|
|
22
|
+
resolve,
|
|
23
|
+
win32 as winPath
|
|
24
|
+
} from "node:path";
|
|
25
|
+
import { inspect } from "node:util";
|
|
26
|
+
var Spec2 = class extends Spec {
|
|
27
|
+
[kCustomInspect](_depth, options) {
|
|
28
|
+
const str = inspect(
|
|
29
|
+
Object.fromEntries(
|
|
30
|
+
Object.entries(this).filter(([k, v]) => {
|
|
31
|
+
return k !== "options" && v !== void 0;
|
|
32
|
+
})
|
|
33
|
+
),
|
|
34
|
+
options
|
|
35
|
+
);
|
|
36
|
+
return `@vltpkg/spec.Spec ${str}`;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
Spec2.nodejsDependencies = {
|
|
40
|
+
homedir,
|
|
41
|
+
isAbsolute,
|
|
42
|
+
join,
|
|
43
|
+
resolve,
|
|
44
|
+
winPath
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export {
|
|
48
|
+
Spec2 as Spec
|
|
49
|
+
};
|
|
@@ -11,7 +11,7 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
defaultRegistries
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-Q46JRSZU.js";
|
|
15
15
|
import {
|
|
16
16
|
error
|
|
17
17
|
} from "./chunk-WZWDS3W4.js";
|