@vltpkg/cli-js 1.0.0-rc.16 → 1.0.0-rc.18
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/{bugs-IGIQNM4N.js → bugs-MT76XIOD.js} +11 -11
- package/{build-M5FA4FNJ.js → build-UFY3CKGG.js} +7 -7
- package/{cache-743RRCJY.js → cache-HHUVJK7J.js} +5 -5
- package/{chunk-OQTWFFSY.js → chunk-2EMJN5HZ.js} +2 -2
- package/{chunk-BJMBQQ3J.js → chunk-5X2WSPMY.js} +120 -63
- package/{chunk-BJMBQQ3J.js.map → chunk-5X2WSPMY.js.map} +2 -2
- package/{chunk-3DS2OKPD.js → chunk-6ACQHLHS.js} +3 -3
- package/{chunk-H6XDJTOC.js → chunk-7C2OYDBJ.js} +2 -2
- package/{chunk-4JSPJENW.js → chunk-AUPYDXOM.js} +3 -3
- package/{chunk-WZ6GEPXV.js → chunk-CNL7GSV6.js} +4 -4
- package/{chunk-5B2LFSO3.js → chunk-FDJQEFDW.js} +5 -5
- package/{chunk-B3GNQ2FK.js → chunk-GL7NFF2G.js} +2 -2
- package/chunk-HFVAFX4O.js +65 -0
- package/{chunk-DDMTKADC.js → chunk-HYJNXJHA.js} +3 -3
- package/{chunk-TRNNVLTT.js → chunk-HZW4S7RX.js} +3 -3
- package/{chunk-B3DPXOMO.js → chunk-IBW3EL3Y.js} +3 -3
- package/{chunk-45WTKOLQ.js → chunk-JE6ZOEEP.js} +3 -3
- package/{chunk-H2PBLKND.js → chunk-L42EDHWQ.js} +9 -11
- package/chunk-L42EDHWQ.js.map +7 -0
- package/{chunk-HT2TEEZK.js → chunk-QFFWHI7R.js} +4 -4
- package/{chunk-FAX3DNQ3.js → chunk-W5PSVOWK.js} +12 -5
- package/chunk-W5PSVOWK.js.map +7 -0
- package/{chunk-U7M5ZSR6.js → chunk-WZNL4JV6.js} +2 -2
- package/{chunk-AAE7LVEY.js → chunk-ZCSV76RY.js} +4 -1
- package/{chunk-AAE7LVEY.js.map → chunk-ZCSV76RY.js.map} +2 -2
- package/{ci-AMKA6CLF.js → ci-3YTKY5HZ.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-MDOIPZDQ.js → config-7EPKQCCE.js} +8 -8
- package/{config-CV2J3RTR.js → config-LBCFICWF.js} +6 -6
- package/{docs-FCAVC4O4.js → docs-PDSYJGL2.js} +11 -11
- package/{exec-GCYSOCSN.js → exec-FA652EF6.js} +14 -14
- package/{exec-cache-N6RYNRPD.js → exec-cache-C23RYKWE.js} +10 -10
- package/{exec-local-GLAIGPQF.js → exec-local-KPLSKRTV.js} +13 -13
- package/{help-Q62DN4N7.js → help-X2GF7L4X.js} +4 -4
- package/{init-G3C6ACHQ.js → init-JSDVA3EL.js} +7 -7
- package/{install-XV6XW442.js → install-YZNPQ5QO.js} +8 -8
- package/{list-EEYICM3V.js → list-ZMMCCVUT.js} +17 -16
- package/list-ZMMCCVUT.js.map +7 -0
- package/{login-QYI7HYBR.js → login-G7FNPFJG.js} +3 -3
- package/{logout-46LVUA3H.js → logout-UQIJA2AY.js} +3 -3
- package/{pack-UB2ITPOU.js → pack-WIGUA7A6.js} +12 -12
- package/package.json +1 -1
- package/{pkg-EVPL2C6Q.js → pkg-HHJYCT33.js} +12 -12
- package/{publish-UWKTHLCJ.js → publish-LWGUTJBH.js} +12 -12
- package/{query-QTEHW3J3.js → query-6XY5BSXS.js} +17 -16
- package/query-6XY5BSXS.js.map +7 -0
- package/registry-client-package.json +1 -1
- package/{run-U27QMRFT.js → run-HA2X7KK3.js} +13 -13
- package/{run-exec-W37CJXYR.js → run-exec-TLYF4NFA.js} +13 -13
- package/{src-3ILA5DZF.js → src-VALHTUXT.js} +8 -8
- package/{token-PTYOG4O5.js → token-VZDWGIEC.js} +3 -3
- package/{uninstall-73LV4BRJ.js → uninstall-U6C4HEGX.js} +8 -8
- package/{update-TUA2PCQ2.js → update-W2G47566.js} +7 -7
- package/{version-TAS5NK2Z.js → version-P2UKR5XN.js} +11 -11
- 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-LEI2ZPV3.js → whoami-NDMHWWVT.js} +3 -3
- package/chunk-FAX3DNQ3.js.map +0 -7
- package/chunk-FVMEF4BG.js +0 -65
- package/chunk-H2PBLKND.js.map +0 -7
- package/list-EEYICM3V.js.map +0 -7
- package/query-QTEHW3J3.js.map +0 -7
- /package/{bugs-IGIQNM4N.js.map → bugs-MT76XIOD.js.map} +0 -0
- /package/{build-M5FA4FNJ.js.map → build-UFY3CKGG.js.map} +0 -0
- /package/{cache-743RRCJY.js.map → cache-HHUVJK7J.js.map} +0 -0
- /package/{chunk-OQTWFFSY.js.map → chunk-2EMJN5HZ.js.map} +0 -0
- /package/{chunk-3DS2OKPD.js.map → chunk-6ACQHLHS.js.map} +0 -0
- /package/{chunk-H6XDJTOC.js.map → chunk-7C2OYDBJ.js.map} +0 -0
- /package/{chunk-4JSPJENW.js.map → chunk-AUPYDXOM.js.map} +0 -0
- /package/{chunk-WZ6GEPXV.js.map → chunk-CNL7GSV6.js.map} +0 -0
- /package/{chunk-5B2LFSO3.js.map → chunk-FDJQEFDW.js.map} +0 -0
- /package/{chunk-B3GNQ2FK.js.map → chunk-GL7NFF2G.js.map} +0 -0
- /package/{chunk-FVMEF4BG.js.map → chunk-HFVAFX4O.js.map} +0 -0
- /package/{chunk-DDMTKADC.js.map → chunk-HYJNXJHA.js.map} +0 -0
- /package/{chunk-TRNNVLTT.js.map → chunk-HZW4S7RX.js.map} +0 -0
- /package/{chunk-B3DPXOMO.js.map → chunk-IBW3EL3Y.js.map} +0 -0
- /package/{chunk-45WTKOLQ.js.map → chunk-JE6ZOEEP.js.map} +0 -0
- /package/{chunk-HT2TEEZK.js.map → chunk-QFFWHI7R.js.map} +0 -0
- /package/{chunk-U7M5ZSR6.js.map → chunk-WZNL4JV6.js.map} +0 -0
- /package/{ci-AMKA6CLF.js.map → ci-3YTKY5HZ.js.map} +0 -0
- /package/{config-MDOIPZDQ.js.map → config-7EPKQCCE.js.map} +0 -0
- /package/{config-CV2J3RTR.js.map → config-LBCFICWF.js.map} +0 -0
- /package/{docs-FCAVC4O4.js.map → docs-PDSYJGL2.js.map} +0 -0
- /package/{exec-GCYSOCSN.js.map → exec-FA652EF6.js.map} +0 -0
- /package/{exec-cache-N6RYNRPD.js.map → exec-cache-C23RYKWE.js.map} +0 -0
- /package/{exec-local-GLAIGPQF.js.map → exec-local-KPLSKRTV.js.map} +0 -0
- /package/{help-Q62DN4N7.js.map → help-X2GF7L4X.js.map} +0 -0
- /package/{init-G3C6ACHQ.js.map → init-JSDVA3EL.js.map} +0 -0
- /package/{install-XV6XW442.js.map → install-YZNPQ5QO.js.map} +0 -0
- /package/{login-QYI7HYBR.js.map → login-G7FNPFJG.js.map} +0 -0
- /package/{logout-46LVUA3H.js.map → logout-UQIJA2AY.js.map} +0 -0
- /package/{pack-UB2ITPOU.js.map → pack-WIGUA7A6.js.map} +0 -0
- /package/{pkg-EVPL2C6Q.js.map → pkg-HHJYCT33.js.map} +0 -0
- /package/{publish-UWKTHLCJ.js.map → publish-LWGUTJBH.js.map} +0 -0
- /package/{run-U27QMRFT.js.map → run-HA2X7KK3.js.map} +0 -0
- /package/{run-exec-W37CJXYR.js.map → run-exec-TLYF4NFA.js.map} +0 -0
- /package/{src-3ILA5DZF.js.map → src-VALHTUXT.js.map} +0 -0
- /package/{token-PTYOG4O5.js.map → token-VZDWGIEC.js.map} +0 -0
- /package/{uninstall-73LV4BRJ.js.map → uninstall-U6C4HEGX.js.map} +0 -0
- /package/{update-TUA2PCQ2.js.map → update-W2G47566.js.map} +0 -0
- /package/{version-TAS5NK2Z.js.map → version-P2UKR5XN.js.map} +0 -0
- /package/{whoami-LEI2ZPV3.js.map → whoami-NDMHWWVT.js.map} +0 -0
|
@@ -14,33 +14,33 @@ import {
|
|
|
14
14
|
} from "./chunk-KUJV76HM.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
} from "./chunk-JE6ZOEEP.js";
|
|
18
|
+
import "./chunk-IBW3EL3Y.js";
|
|
19
19
|
import {
|
|
20
20
|
Query,
|
|
21
21
|
SecurityArchive,
|
|
22
22
|
actual
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-5X2WSPMY.js";
|
|
24
|
+
import "./chunk-2EMJN5HZ.js";
|
|
25
25
|
import "./chunk-U2GJETZN.js";
|
|
26
26
|
import {
|
|
27
27
|
commandUsage
|
|
28
|
-
} from "./chunk-
|
|
29
|
-
import "./chunk-
|
|
28
|
+
} from "./chunk-GL7NFF2G.js";
|
|
29
|
+
import "./chunk-W5PSVOWK.js";
|
|
30
30
|
import {
|
|
31
31
|
PackageInfoClient
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-AUPYDXOM.js";
|
|
33
33
|
import {
|
|
34
34
|
urlOpen
|
|
35
35
|
} from "./chunk-2274LLVT.js";
|
|
36
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-7C2OYDBJ.js";
|
|
37
37
|
import {
|
|
38
38
|
Spec2 as Spec
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-L42EDHWQ.js";
|
|
40
40
|
import "./chunk-XENEIRAC.js";
|
|
41
41
|
import "./chunk-XGSKO6BL.js";
|
|
42
42
|
import "./chunk-DPPLE4IX.js";
|
|
43
|
-
import "./chunk-
|
|
43
|
+
import "./chunk-ZCSV76RY.js";
|
|
44
44
|
import "./chunk-4LVU5YJD.js";
|
|
45
45
|
import "./chunk-6JQYXXBQ.js";
|
|
46
46
|
import "./chunk-REP7WICP.js";
|
|
@@ -199,4 +199,4 @@ export {
|
|
|
199
199
|
usage,
|
|
200
200
|
views
|
|
201
201
|
};
|
|
202
|
-
//# sourceMappingURL=bugs-
|
|
202
|
+
//# sourceMappingURL=bugs-MT76XIOD.js.map
|
|
@@ -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
|
build
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-5X2WSPMY.js";
|
|
15
|
+
import "./chunk-2EMJN5HZ.js";
|
|
16
16
|
import {
|
|
17
17
|
commandUsage
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
20
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-GL7NFF2G.js";
|
|
19
|
+
import "./chunk-7C2OYDBJ.js";
|
|
20
|
+
import "./chunk-L42EDHWQ.js";
|
|
21
21
|
import "./chunk-XENEIRAC.js";
|
|
22
22
|
import "./chunk-XGSKO6BL.js";
|
|
23
23
|
import "./chunk-DPPLE4IX.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-ZCSV76RY.js";
|
|
25
25
|
import "./chunk-4LVU5YJD.js";
|
|
26
26
|
import {
|
|
27
27
|
isErrorWithCause
|
|
@@ -127,4 +127,4 @@ export {
|
|
|
127
127
|
usage,
|
|
128
128
|
views
|
|
129
129
|
};
|
|
130
|
-
//# sourceMappingURL=build-
|
|
130
|
+
//# sourceMappingURL=build-UFY3CKGG.js.map
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-HYJNXJHA.js";
|
|
19
19
|
import "./chunk-TNOFUQ55.js";
|
|
20
20
|
import {
|
|
21
21
|
ViewClass
|
|
@@ -24,17 +24,17 @@ import "./chunk-2JA5GDCD.js";
|
|
|
24
24
|
import "./chunk-U2GJETZN.js";
|
|
25
25
|
import {
|
|
26
26
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-GL7NFF2G.js";
|
|
28
28
|
import {
|
|
29
29
|
CacheEntry
|
|
30
30
|
} from "./chunk-2274LLVT.js";
|
|
31
31
|
import {
|
|
32
32
|
Spec2 as Spec
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-L42EDHWQ.js";
|
|
34
34
|
import "./chunk-XENEIRAC.js";
|
|
35
35
|
import "./chunk-XGSKO6BL.js";
|
|
36
36
|
import "./chunk-DPPLE4IX.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-ZCSV76RY.js";
|
|
38
38
|
import "./chunk-4LVU5YJD.js";
|
|
39
39
|
import "./chunk-6JQYXXBQ.js";
|
|
40
40
|
import "./chunk-REP7WICP.js";
|
|
@@ -310,4 +310,4 @@ export {
|
|
|
310
310
|
usage,
|
|
311
311
|
views
|
|
312
312
|
};
|
|
313
|
-
//# sourceMappingURL=cache-
|
|
313
|
+
//# sourceMappingURL=cache-HHUVJK7J.js.map
|
|
@@ -12,7 +12,7 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
PackageJson,
|
|
14
14
|
getUser
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-7C2OYDBJ.js";
|
|
16
16
|
import {
|
|
17
17
|
asError,
|
|
18
18
|
normalizeManifest
|
|
@@ -73,4 +73,4 @@ var init = async ({
|
|
|
73
73
|
export {
|
|
74
74
|
init
|
|
75
75
|
};
|
|
76
|
-
//# sourceMappingURL=chunk-
|
|
76
|
+
//# sourceMappingURL=chunk-2EMJN5HZ.js.map
|
|
@@ -11,12 +11,12 @@ import {createRequire as _vlt_createRequire} from "node:module";
|
|
|
11
11
|
var require = _vlt_createRequire(import.meta.filename);
|
|
12
12
|
import {
|
|
13
13
|
init
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2EMJN5HZ.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
platformCheck
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-7C2OYDBJ.js";
|
|
20
20
|
import {
|
|
21
21
|
Spec,
|
|
22
22
|
Spec2,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
joinExtra,
|
|
41
41
|
splitDepID,
|
|
42
42
|
splitExtra
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-L42EDHWQ.js";
|
|
44
44
|
import {
|
|
45
45
|
rimraf
|
|
46
46
|
} from "./chunk-XENEIRAC.js";
|
|
@@ -9159,7 +9159,7 @@ var lockfileData = ({
|
|
|
9159
9159
|
...hasItems(cleanScopeRegistries) ? { "scope-registries": cleanScopeRegistries } : void 0,
|
|
9160
9160
|
...hasItems(cleanJsrRegistries) ? { "jsr-registries": cleanJsrRegistries } : void 0,
|
|
9161
9161
|
...registry !== void 0 && registry !== defaultRegistry ? { registry } : void 0,
|
|
9162
|
-
...hasItems(
|
|
9162
|
+
...hasItems(cleanRegistries) ? { registries: cleanRegistries } : void 0,
|
|
9163
9163
|
...hasItems(cleanGitHosts) ? { "git-hosts": cleanGitHosts } : void 0,
|
|
9164
9164
|
...hasItems(cleanGitHostArchives) ? { "git-host-archives": cleanGitHostArchives } : void 0
|
|
9165
9165
|
},
|
|
@@ -11802,18 +11802,44 @@ var checkPeerEdgesCompatible = (existingNode, fromNode, peerContext, graph) => {
|
|
|
11802
11802
|
if (!peerDeps || Object.keys(peerDeps).length === 0) {
|
|
11803
11803
|
return { compatible: true };
|
|
11804
11804
|
}
|
|
11805
|
-
|
|
11805
|
+
const parseOpts = {
|
|
11806
|
+
...graph.mainImporter.options,
|
|
11807
|
+
registry: fromNode.registry
|
|
11808
|
+
};
|
|
11809
|
+
const fromLocation = fromNode.location;
|
|
11810
|
+
const projectRoot = fromNode.projectRoot;
|
|
11811
|
+
const monorepo = graph.monorepo;
|
|
11812
|
+
const satisfiesMemo = /* @__PURE__ */ new Map();
|
|
11813
|
+
const satisfiesNodeSpec = (node, spec2) => {
|
|
11814
|
+
const key = `${node.id}\0${spec2.type}\0${spec2.bareSpec}\0${String(spec2.final)}`;
|
|
11815
|
+
let result = satisfiesMemo.get(key);
|
|
11816
|
+
if (result === void 0) {
|
|
11817
|
+
result = satisfies2(
|
|
11818
|
+
node.id,
|
|
11819
|
+
spec2,
|
|
11820
|
+
fromLocation,
|
|
11821
|
+
projectRoot,
|
|
11822
|
+
monorepo
|
|
11823
|
+
);
|
|
11824
|
+
satisfiesMemo.set(key, result);
|
|
11825
|
+
}
|
|
11826
|
+
return result;
|
|
11827
|
+
};
|
|
11828
|
+
const nodeSatisfiesAll = (node, specs) => {
|
|
11829
|
+
for (const s of specs) {
|
|
11830
|
+
if (!satisfiesNodeSpec(node, s)) return false;
|
|
11831
|
+
}
|
|
11832
|
+
return true;
|
|
11833
|
+
};
|
|
11834
|
+
for (const peerName in peerDeps) {
|
|
11835
|
+
const peerBareSpec = peerDeps[peerName];
|
|
11836
|
+
if (!peerBareSpec) continue;
|
|
11806
11837
|
const existingEdge = existingNode.edgesOut.get(peerName);
|
|
11807
11838
|
if (existingEdge === void 0) {
|
|
11808
11839
|
return { compatible: false };
|
|
11809
11840
|
}
|
|
11810
11841
|
if (!existingEdge.to) continue;
|
|
11811
|
-
const peerSpec =
|
|
11812
|
-
peerName,
|
|
11813
|
-
peerBareSpec,
|
|
11814
|
-
fromNode,
|
|
11815
|
-
graph
|
|
11816
|
-
);
|
|
11842
|
+
const peerSpec = Spec2.parse(peerName, peerBareSpec, parseOpts);
|
|
11817
11843
|
const contextEntry = peerContext.get(peerName);
|
|
11818
11844
|
if (contextEntry?.target && contextEntry.target.id !== existingEdge.to.id && !shouldIgnoreContextMismatch(
|
|
11819
11845
|
peerName,
|
|
@@ -11821,6 +11847,14 @@ var checkPeerEdgesCompatible = (existingNode, fromNode, peerContext, graph) => {
|
|
|
11821
11847
|
fromNode,
|
|
11822
11848
|
graph
|
|
11823
11849
|
)) {
|
|
11850
|
+
const existingTarget = existingEdge.to;
|
|
11851
|
+
const existingTargetSatisfiesPeer = satisfiesNodeSpec(
|
|
11852
|
+
existingTarget,
|
|
11853
|
+
peerSpec
|
|
11854
|
+
);
|
|
11855
|
+
if (existingTargetSatisfiesPeer && nodeSatisfiesAll(existingTarget, contextEntry.specs)) {
|
|
11856
|
+
continue;
|
|
11857
|
+
}
|
|
11824
11858
|
const result = buildIncompatibleResult(
|
|
11825
11859
|
contextEntry.target,
|
|
11826
11860
|
peerSpec,
|
|
@@ -11832,6 +11866,14 @@ var checkPeerEdgesCompatible = (existingNode, fromNode, peerContext, graph) => {
|
|
|
11832
11866
|
}
|
|
11833
11867
|
const siblingEdge = fromNode.edgesOut.get(peerName);
|
|
11834
11868
|
if (siblingEdge?.to && siblingEdge.to.id !== existingEdge.to.id) {
|
|
11869
|
+
const existingTarget = existingEdge.to;
|
|
11870
|
+
const existingTargetSatisfiesPeer = satisfiesNodeSpec(
|
|
11871
|
+
existingTarget,
|
|
11872
|
+
peerSpec
|
|
11873
|
+
);
|
|
11874
|
+
if (existingTargetSatisfiesPeer && satisfiesNodeSpec(existingTarget, siblingEdge.spec)) {
|
|
11875
|
+
continue;
|
|
11876
|
+
}
|
|
11835
11877
|
const result = buildIncompatibleResult(
|
|
11836
11878
|
siblingEdge.to,
|
|
11837
11879
|
peerSpec,
|
|
@@ -11855,27 +11897,23 @@ var checkPeerEdgesCompatible = (existingNode, fromNode, peerContext, graph) => {
|
|
|
11855
11897
|
}
|
|
11856
11898
|
}
|
|
11857
11899
|
if (declared && declaredType) {
|
|
11858
|
-
const parentSpec =
|
|
11859
|
-
|
|
11860
|
-
|
|
11861
|
-
|
|
11862
|
-
|
|
11863
|
-
)
|
|
11864
|
-
|
|
11865
|
-
|
|
11866
|
-
|
|
11867
|
-
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
|
|
11873
|
-
|
|
11874
|
-
|
|
11875
|
-
target: candidateNode,
|
|
11876
|
-
type: shorten(declaredType)
|
|
11877
|
-
}
|
|
11878
|
-
};
|
|
11900
|
+
const parentSpec = Spec2.parse(peerName, declared, parseOpts);
|
|
11901
|
+
if (satisfiesNodeSpec(existingEdge.to, parentSpec)) {
|
|
11902
|
+
continue;
|
|
11903
|
+
}
|
|
11904
|
+
const candidates = graph.nodesByName.get(peerName);
|
|
11905
|
+
if (candidates) {
|
|
11906
|
+
for (const candidateNode of candidates) {
|
|
11907
|
+
if (candidateNode.id !== existingEdge.to.id && satisfiesNodeSpec(candidateNode, parentSpec) && satisfiesNodeSpec(candidateNode, peerSpec)) {
|
|
11908
|
+
return {
|
|
11909
|
+
compatible: false,
|
|
11910
|
+
forkEntry: {
|
|
11911
|
+
spec: peerSpec,
|
|
11912
|
+
target: candidateNode,
|
|
11913
|
+
type: shorten(declaredType)
|
|
11914
|
+
}
|
|
11915
|
+
};
|
|
11916
|
+
}
|
|
11879
11917
|
}
|
|
11880
11918
|
}
|
|
11881
11919
|
}
|
|
@@ -12213,41 +12251,58 @@ var getFileTypeInfo = (spec2, fromNode, scurry) => {
|
|
|
12213
12251
|
};
|
|
12214
12252
|
var isStringArray2 = (a) => Array.isArray(a) && !a.some((b) => typeof b !== "string");
|
|
12215
12253
|
var findCompatibleResolution = (spec2, fromNode, graph, peerContext, queryModifier, _peer) => {
|
|
12216
|
-
const
|
|
12217
|
-
|
|
12218
|
-
|
|
12219
|
-
|
|
12220
|
-
|
|
12221
|
-
)
|
|
12254
|
+
const fromLoc = fromNode.location;
|
|
12255
|
+
const projectRoot = graph.projectRoot;
|
|
12256
|
+
const monorepo = graph.monorepo;
|
|
12257
|
+
const final = spec2.final;
|
|
12258
|
+
const satisfiesCache = /* @__PURE__ */ new Map();
|
|
12259
|
+
const satisfiesFinal = (n) => {
|
|
12260
|
+
const key = n.id;
|
|
12261
|
+
const cached = satisfiesCache.get(key);
|
|
12262
|
+
if (cached !== void 0) {
|
|
12263
|
+
return cached;
|
|
12264
|
+
}
|
|
12265
|
+
const result = satisfies2(
|
|
12266
|
+
key,
|
|
12267
|
+
final,
|
|
12268
|
+
fromLoc,
|
|
12269
|
+
projectRoot,
|
|
12270
|
+
monorepo
|
|
12271
|
+
);
|
|
12272
|
+
satisfiesCache.set(key, result);
|
|
12273
|
+
return result;
|
|
12274
|
+
};
|
|
12275
|
+
const existingEdge = fromNode.edgesOut.get(spec2.name);
|
|
12276
|
+
let existingNode;
|
|
12277
|
+
if (existingEdge?.to && !existingEdge.to.detached && satisfiesFinal(existingEdge.to)) {
|
|
12278
|
+
existingNode = existingEdge.to;
|
|
12279
|
+
} else {
|
|
12280
|
+
existingNode = graph.findResolution(spec2, fromNode, queryModifier);
|
|
12281
|
+
}
|
|
12222
12282
|
let peerCompatResult = existingNode ? checkPeerEdgesCompatible(
|
|
12223
12283
|
existingNode,
|
|
12224
12284
|
fromNode,
|
|
12225
12285
|
peerContext,
|
|
12226
12286
|
graph
|
|
12227
12287
|
) : { compatible: true };
|
|
12228
|
-
if (existingNode && !peerCompatResult.compatible
|
|
12229
|
-
|
|
12230
|
-
|
|
12231
|
-
|
|
12232
|
-
|
|
12233
|
-
candidate.
|
|
12234
|
-
|
|
12235
|
-
|
|
12236
|
-
|
|
12237
|
-
|
|
12238
|
-
|
|
12239
|
-
|
|
12240
|
-
|
|
12241
|
-
|
|
12242
|
-
|
|
12243
|
-
|
|
12244
|
-
|
|
12245
|
-
|
|
12246
|
-
);
|
|
12247
|
-
if (compat.compatible) {
|
|
12248
|
-
existingNode = candidate;
|
|
12249
|
-
peerCompatResult = compat;
|
|
12250
|
-
break;
|
|
12288
|
+
if (existingNode && !peerCompatResult.compatible) {
|
|
12289
|
+
const candidates = graph.nodesByName.get(final.name);
|
|
12290
|
+
if (candidates && candidates.size > 1) {
|
|
12291
|
+
for (const candidate of candidates) {
|
|
12292
|
+
if (candidate === existingNode) continue;
|
|
12293
|
+
if (candidate.detached) continue;
|
|
12294
|
+
if (!satisfiesFinal(candidate)) continue;
|
|
12295
|
+
const compat = checkPeerEdgesCompatible(
|
|
12296
|
+
candidate,
|
|
12297
|
+
fromNode,
|
|
12298
|
+
peerContext,
|
|
12299
|
+
graph
|
|
12300
|
+
);
|
|
12301
|
+
if (compat.compatible) {
|
|
12302
|
+
existingNode = candidate;
|
|
12303
|
+
peerCompatResult = compat;
|
|
12304
|
+
break;
|
|
12305
|
+
}
|
|
12251
12306
|
}
|
|
12252
12307
|
}
|
|
12253
12308
|
}
|
|
@@ -12407,7 +12462,9 @@ var processPlacementTasks = async (graph, options, placementTasks, add, modifier
|
|
|
12407
12462
|
if (fileTypeInfo?.path && fileTypeInfo.isDirectory) {
|
|
12408
12463
|
node.location = fileTypeInfo.path;
|
|
12409
12464
|
}
|
|
12410
|
-
node.
|
|
12465
|
+
if (!node.resolved) {
|
|
12466
|
+
node.setResolved();
|
|
12467
|
+
}
|
|
12411
12468
|
const nextPeerDeps = /* @__PURE__ */ new Map();
|
|
12412
12469
|
const bundleDeps = manifest.bundleDependencies;
|
|
12413
12470
|
const bundled = new Set(
|
|
@@ -14082,4 +14139,4 @@ export {
|
|
|
14082
14139
|
cssesc/cssesc.js:
|
|
14083
14140
|
(*! https://mths.be/cssesc v3.0.0 by @mathias *)
|
|
14084
14141
|
*/
|
|
14085
|
-
//# sourceMappingURL=chunk-
|
|
14142
|
+
//# sourceMappingURL=chunk-5X2WSPMY.js.map
|