@vltpkg/cli-js 1.3.7 → 1.3.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-4W6PMOGC.js → access-WLKANIOE.js} +2 -2
- package/{bugs-FJHQFPZF.js → bugs-5Q3QSTWP.js} +5 -5
- package/{build-SPWU3NOH.js → build-XSFR63AW.js} +3 -3
- package/{cache-SBNEPOMQ.js → cache-UVPK5J5A.js} +2 -2
- package/{chunk-L3K2ZAOO.js → chunk-43HNQWPQ.js} +1 -1
- package/chunk-4JAZZRKR.js +76 -0
- package/{chunk-QVPNKMUU.js → chunk-5KOLUYXH.js} +59 -9
- package/{chunk-VBDNOU76.js → chunk-6BQKR2FM.js} +1 -1
- package/{chunk-2M2O6A4R.js → chunk-6P5CFJR7.js} +1 -1
- package/{chunk-QYS5MGGM.js → chunk-BGA3WB7H.js} +83 -7
- package/{chunk-3D3IB4YN.js → chunk-DL3H4EMY.js} +41 -14
- package/{chunk-I7SCSGUO.js → chunk-FIUUAQGC.js} +2 -2
- package/{chunk-SPWJ3X5Y.js → chunk-IUL6MPP6.js} +1 -1
- package/{chunk-7BHHCB5C.js → chunk-NWHKSRO3.js} +257 -16
- package/{chunk-5ZCDGBVU.js → chunk-OAP2ROTL.js} +1 -1
- package/{chunk-W2ZO5RZL.js → chunk-PJJCFMLW.js} +1 -1
- package/{chunk-F5D3DVC5.js → chunk-QNDM4DVO.js} +7 -3
- package/{chunk-FKZ5I53D.js → chunk-WHLYMMI2.js} +3 -3
- package/{chunk-KOFQTETH.js → chunk-WKA5UYNA.js} +1 -1
- package/{chunk-OWUICQFY.js → chunk-XCDLOQZZ.js} +1 -1
- package/{ci-76TAJGF5.js → ci-EDRETPUF.js} +4 -4
- package/cli-package.json +1 -1
- package/{config-3UQXAYAA.js → config-MVNXGEOQ.js} +2 -2
- package/{config-AFIHF54I.js → config-OKBXU7TU.js} +2 -2
- package/{create-5ADQTH6K.js → create-R7BXYJSU.js} +7 -7
- package/{deprecate-RTQVLJDZ.js → deprecate-YSUKBKQM.js} +3 -3
- package/{dist-tag-V4DRDHWA.js → dist-tag-MIGYSR4F.js} +2 -2
- package/{docs-RRULRTKQ.js → docs-4WVIN75H.js} +5 -5
- package/{exec-NXQUCX3I.js → exec-IXHDQLAM.js} +15 -7
- package/{exec-cache-KVZJHFZD.js → exec-cache-EA7GHIK7.js} +5 -5
- package/{exec-local-53B5IRKG.js → exec-local-GM4LH56M.js} +5 -5
- package/{help-EN4XUTMS.js → help-TCXGBICU.js} +1 -1
- package/{init-4L6CQMIL.js → init-MWZDWQHM.js} +4 -4
- package/{install-MHWLYW3X.js → install-HPI5HU3C.js} +8 -8
- package/{list-XZRF7TBW.js → list-2CX6REPJ.js} +7 -7
- package/{login-6GRRY4H7.js → login-RAY23CVG.js} +4 -4
- package/{logout-KI2AOYRT.js → logout-ICB5OMGY.js} +2 -2
- package/{outdated-TWUPFRCD.js → outdated-FYHPXRMT.js} +23 -21
- package/{pack-2ZQLDYFD.js → pack-E5MNPQXK.js} +4 -4
- package/package.json +1 -1
- package/{ping-ZOTGLOKY.js → ping-REQ2KSAR.js} +2 -2
- package/{pkg-HRNOTFXB.js → pkg-YB4GSRII.js} +5 -5
- package/{profile-5V3FFDMG.js → profile-GKBW6GRI.js} +2 -2
- package/{publish-7ZXEMWTW.js → publish-4ZQJYYLF.js} +5 -5
- package/{query-62UDNMGR.js → query-SKXBF3MJ.js} +7 -7
- package/registry-client-src-revalidate.js +58 -9
- package/{repo-HDUGP5PH.js → repo-ACPTZI2C.js} +5 -5
- package/{reporter-TGBPLNR5.js → reporter-4KK2JNGO.js} +3 -3
- package/{run-6NRDZD4T.js → run-YW3ITX2A.js} +5 -5
- package/{run-exec-I4IIXTLW.js → run-exec-7VQX3OFG.js} +5 -5
- package/security-archive-src-update-expired.js +1 -1
- package/{setup-UVXEFUUJ.js → setup-PLEKCMXN.js} +4 -4
- package/{src-6CJEMSVB.js → src-PXDFMQ6W.js} +4 -2
- package/{src-QEJ6WZQ7.js → src-XQ7KVUVN.js} +3 -3
- package/{token-WTN27E7A.js → token-GB7RPE5J.js} +2 -2
- package/{uninstall-ZJOKXIVQ.js → uninstall-RLCECX37.js} +5 -5
- package/{unpublish-LMUGR7GI.js → unpublish-3ZXEAVHF.js} +2 -2
- package/{update-WVWMRUYY.js → update-VDZP6EZN.js} +17 -8
- package/{version-OJTRHNKV.js → version-MRELJPOK.js} +4 -4
- package/{view-6Q5B7ZYN.js → view-LCXMTGCJ.js} +65 -17
- 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-SPF34TV6.js → whoami-PNRDBS45.js} +2 -2
- package/chunk-A6FAI65V.js +0 -76
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
AbortError,
|
|
14
14
|
SecurityArchive,
|
|
15
15
|
pRetry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-XCDLOQZZ.js";
|
|
17
17
|
import {
|
|
18
18
|
Monorepo,
|
|
19
19
|
PackageJson,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
import {
|
|
48
48
|
userAgent,
|
|
49
49
|
userAgentHeaders
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-6BQKR2FM.js";
|
|
51
51
|
import {
|
|
52
52
|
graphStep,
|
|
53
53
|
promiseSpawn
|
|
@@ -103,6 +103,7 @@ import {
|
|
|
103
103
|
} from "./chunk-IBGFQR23.js";
|
|
104
104
|
import {
|
|
105
105
|
error,
|
|
106
|
+
syntaxError,
|
|
106
107
|
typeError
|
|
107
108
|
} from "./chunk-WZWDS3W4.js";
|
|
108
109
|
import {
|
|
@@ -5632,6 +5633,85 @@ var runExecFG = async (options) => runExecImpl(options, runFG, execFG);
|
|
|
5632
5633
|
// ../../src/dss-parser/src/index.ts
|
|
5633
5634
|
var import_postcss_selector_parser = __toESM(require_dist(), 1);
|
|
5634
5635
|
|
|
5636
|
+
// ../../src/dss-parser/src/grammar.ts
|
|
5637
|
+
var pseudoClassNames = [
|
|
5638
|
+
"abandoned",
|
|
5639
|
+
"attr",
|
|
5640
|
+
"built",
|
|
5641
|
+
"confused",
|
|
5642
|
+
"cve",
|
|
5643
|
+
"cwe",
|
|
5644
|
+
"debug",
|
|
5645
|
+
"deprecated",
|
|
5646
|
+
"dev",
|
|
5647
|
+
"diff",
|
|
5648
|
+
"dist",
|
|
5649
|
+
"dynamic",
|
|
5650
|
+
"empty",
|
|
5651
|
+
"entropic",
|
|
5652
|
+
"env",
|
|
5653
|
+
"eval",
|
|
5654
|
+
"fs",
|
|
5655
|
+
"has",
|
|
5656
|
+
"host",
|
|
5657
|
+
"hostname",
|
|
5658
|
+
"is",
|
|
5659
|
+
"license",
|
|
5660
|
+
"link",
|
|
5661
|
+
"malware",
|
|
5662
|
+
"minified",
|
|
5663
|
+
"missing",
|
|
5664
|
+
"native",
|
|
5665
|
+
"network",
|
|
5666
|
+
"not",
|
|
5667
|
+
"obfuscated",
|
|
5668
|
+
"optional",
|
|
5669
|
+
"outdated",
|
|
5670
|
+
"overridden",
|
|
5671
|
+
"path",
|
|
5672
|
+
"peer",
|
|
5673
|
+
"prerelease",
|
|
5674
|
+
"private",
|
|
5675
|
+
"prod",
|
|
5676
|
+
"project",
|
|
5677
|
+
"published",
|
|
5678
|
+
"registry",
|
|
5679
|
+
"root",
|
|
5680
|
+
"scanned",
|
|
5681
|
+
"scope",
|
|
5682
|
+
"score",
|
|
5683
|
+
"scripts",
|
|
5684
|
+
"semver",
|
|
5685
|
+
"sev",
|
|
5686
|
+
"severity",
|
|
5687
|
+
"shell",
|
|
5688
|
+
"shrinkwrap",
|
|
5689
|
+
"spec",
|
|
5690
|
+
"squat",
|
|
5691
|
+
"suspicious",
|
|
5692
|
+
"tracker",
|
|
5693
|
+
"trivial",
|
|
5694
|
+
"type",
|
|
5695
|
+
"undesirable",
|
|
5696
|
+
"unknown",
|
|
5697
|
+
"unmaintained",
|
|
5698
|
+
"unpopular",
|
|
5699
|
+
"unstable",
|
|
5700
|
+
"v",
|
|
5701
|
+
"vuln",
|
|
5702
|
+
"vulnerable",
|
|
5703
|
+
"workspace"
|
|
5704
|
+
];
|
|
5705
|
+
var combinatorNames = [">", "~", " "];
|
|
5706
|
+
var attributeOperatorNames = [
|
|
5707
|
+
"=",
|
|
5708
|
+
"^=",
|
|
5709
|
+
"$=",
|
|
5710
|
+
"~=",
|
|
5711
|
+
"*=",
|
|
5712
|
+
"|="
|
|
5713
|
+
];
|
|
5714
|
+
|
|
5635
5715
|
// ../../src/dss-parser/src/types.ts
|
|
5636
5716
|
var isPostcssNodeWithChildren = (node) => "type" in node && "nodes" in node;
|
|
5637
5717
|
var asPostcssNodeWithChildren = (node) => {
|
|
@@ -5758,7 +5838,68 @@ var pseudoCleanUpNeeded = /* @__PURE__ */ new Set([
|
|
|
5758
5838
|
":vulnerable"
|
|
5759
5839
|
]);
|
|
5760
5840
|
var hasParamsToEscape = (node) => pseudoCleanUpNeeded.has(node.value);
|
|
5761
|
-
var
|
|
5841
|
+
var pseudoClasses = new Set(pseudoClassNames);
|
|
5842
|
+
var combinators = new Set(combinatorNames);
|
|
5843
|
+
var attributeOperators = new Set(attributeOperatorNames);
|
|
5844
|
+
var selectorPseudos = /* @__PURE__ */ new Set(["has", "is", "not"]);
|
|
5845
|
+
var invalid = (message, found) => syntaxError(message, { code: "EQUERY", found });
|
|
5846
|
+
var validate = (selector, query, forgiving = false) => {
|
|
5847
|
+
const nodes = selector.nodes.filter((n) => n.type !== "comment");
|
|
5848
|
+
if (!nodes.length && !forgiving) {
|
|
5849
|
+
throw invalid("Empty selector", query);
|
|
5850
|
+
}
|
|
5851
|
+
nodes.forEach((node, i) => {
|
|
5852
|
+
if (node.type === "id" && !node.value || node.type === "attribute" && !node.attribute) {
|
|
5853
|
+
throw invalid(
|
|
5854
|
+
"Unsupported selector",
|
|
5855
|
+
node.type === "id" ? "#" : "[]"
|
|
5856
|
+
);
|
|
5857
|
+
}
|
|
5858
|
+
if (isCombinatorNode(node)) {
|
|
5859
|
+
if (forgiving) return;
|
|
5860
|
+
if (!combinators.has(node.value)) {
|
|
5861
|
+
throw syntaxError(`Unsupported combinator: ${node.value}`, {
|
|
5862
|
+
code: "EQUERY",
|
|
5863
|
+
found: node.value,
|
|
5864
|
+
validOptions: combinatorNames
|
|
5865
|
+
});
|
|
5866
|
+
}
|
|
5867
|
+
const next = nodes[i + 1];
|
|
5868
|
+
if (!next || isCombinatorNode(next)) {
|
|
5869
|
+
throw invalid("Dangling combinator", query);
|
|
5870
|
+
}
|
|
5871
|
+
} else if (isPseudoNode(node)) {
|
|
5872
|
+
const name = node.value.slice(1);
|
|
5873
|
+
if (!pseudoClasses.has(name)) {
|
|
5874
|
+
if (forgiving) return;
|
|
5875
|
+
throw invalid(
|
|
5876
|
+
`Unsupported pseudo-class: ${node.value}`,
|
|
5877
|
+
node.value
|
|
5878
|
+
);
|
|
5879
|
+
}
|
|
5880
|
+
if (selectorPseudos.has(name)) {
|
|
5881
|
+
for (const n of node.nodes) {
|
|
5882
|
+
validate(
|
|
5883
|
+
asSelectorNode(n),
|
|
5884
|
+
query,
|
|
5885
|
+
forgiving || name === "is"
|
|
5886
|
+
);
|
|
5887
|
+
}
|
|
5888
|
+
}
|
|
5889
|
+
} else if (isAttributeNode(node)) {
|
|
5890
|
+
if (!forgiving && node.operator && !attributeOperators.has(node.operator)) {
|
|
5891
|
+
throw invalid(
|
|
5892
|
+
`Unsupported attribute operator: ${node.operator}`,
|
|
5893
|
+
node.operator
|
|
5894
|
+
);
|
|
5895
|
+
}
|
|
5896
|
+
} else if (isTagNode(node) && node.value !== "{" && node.value !== "}" || isStringNode(node)) {
|
|
5897
|
+
throw invalid("Unsupported selector", node.value);
|
|
5898
|
+
}
|
|
5899
|
+
});
|
|
5900
|
+
};
|
|
5901
|
+
var parse2 = (query, { loose = false } = {}) => {
|
|
5902
|
+
if (!loose && !query.trim()) throw invalid("Empty query", query);
|
|
5762
5903
|
const escapedQuery = escapeDots(escapeScopedNamesSlashes(query));
|
|
5763
5904
|
const transformAst = (root2) => {
|
|
5764
5905
|
root2.walk((node) => {
|
|
@@ -5768,6 +5909,7 @@ var parse2 = (query) => {
|
|
|
5768
5909
|
if (isPseudoNode(node) && hasParamsToEscape(node)) {
|
|
5769
5910
|
for (const n of node.nodes) {
|
|
5770
5911
|
const selector = asSelectorNode(n);
|
|
5912
|
+
if (!selector.nodes.length) continue;
|
|
5771
5913
|
selector.nodes.forEach((currentNode, index, arr) => {
|
|
5772
5914
|
const nextNode = arr[index + 1];
|
|
5773
5915
|
if (isCombinatorNode(currentNode) && isTagNode(nextNode)) {
|
|
@@ -5797,7 +5939,24 @@ var parse2 = (query) => {
|
|
|
5797
5939
|
}
|
|
5798
5940
|
});
|
|
5799
5941
|
};
|
|
5800
|
-
|
|
5942
|
+
let ast;
|
|
5943
|
+
try {
|
|
5944
|
+
ast = (0, import_postcss_selector_parser.default)(transformAst).astSync(escapedQuery);
|
|
5945
|
+
} catch (err) {
|
|
5946
|
+
const reason = err instanceof TypeError ? "unexpected end of input" : err.message;
|
|
5947
|
+
throw syntaxError(`Invalid query syntax: ${reason}`, {
|
|
5948
|
+
code: "EQUERY",
|
|
5949
|
+
found: query,
|
|
5950
|
+
cause: err
|
|
5951
|
+
});
|
|
5952
|
+
}
|
|
5953
|
+
if (!loose) {
|
|
5954
|
+
if (/(^|[^\\])(\\\\)*,\s*$/.test(query)) {
|
|
5955
|
+
throw invalid("Empty selector", query);
|
|
5956
|
+
}
|
|
5957
|
+
for (const s of ast.nodes) validate(s, query);
|
|
5958
|
+
}
|
|
5959
|
+
return ast;
|
|
5801
5960
|
};
|
|
5802
5961
|
|
|
5803
5962
|
// ../../src/query/src/error.ts
|
|
@@ -8951,7 +9110,7 @@ var Query = class {
|
|
|
8951
9110
|
edges.add(edge);
|
|
8952
9111
|
}
|
|
8953
9112
|
}
|
|
8954
|
-
const current = parse2(query);
|
|
9113
|
+
const current = parse2(query, { loose: true });
|
|
8955
9114
|
const loose = asPostcssNodeWithChildren(current).nodes.length > 1;
|
|
8956
9115
|
const {
|
|
8957
9116
|
collect,
|
|
@@ -9006,7 +9165,7 @@ var Query = class {
|
|
|
9006
9165
|
const tokens = [];
|
|
9007
9166
|
const ast = (q) => {
|
|
9008
9167
|
try {
|
|
9009
|
-
return parse2(q);
|
|
9168
|
+
return parse2(q, { loose: true });
|
|
9010
9169
|
} catch (_e) {
|
|
9011
9170
|
return ast(q.slice(0, -1));
|
|
9012
9171
|
}
|
|
@@ -9437,9 +9596,10 @@ var Graph = class {
|
|
|
9437
9596
|
/**
|
|
9438
9597
|
* Whether the lockfile on disk no longer matches this graph even
|
|
9439
9598
|
* though no node changed, e.g. an importer edge spec was rewritten to
|
|
9440
|
-
* the value saved to `package.json`,
|
|
9441
|
-
*
|
|
9442
|
-
*
|
|
9599
|
+
* the value saved to `package.json`, a node dev/optional flag was
|
|
9600
|
+
* re-derived, or the config options the graph was built with differ
|
|
9601
|
+
* from the ones stored in the lockfile. Reify saves the lockfiles
|
|
9602
|
+
* from its no-diff early return when set.
|
|
9443
9603
|
*/
|
|
9444
9604
|
lockfileStale = false;
|
|
9445
9605
|
/**
|
|
@@ -9530,6 +9690,34 @@ var Graph = class {
|
|
|
9530
9690
|
nextPeerContextIndex() {
|
|
9531
9691
|
return ++this.currentPeerContextIndex;
|
|
9532
9692
|
}
|
|
9693
|
+
/**
|
|
9694
|
+
* Re-derive node `dev`/`optional` flags: a node is dev/optional only
|
|
9695
|
+
* when every importer path crosses a dev/optional edge. Placement only
|
|
9696
|
+
* ever lowers these flags, so removed or retyped edges leave them
|
|
9697
|
+
* stale. Sets `lockfileStale` when any flag changes.
|
|
9698
|
+
*/
|
|
9699
|
+
recomputeFlags() {
|
|
9700
|
+
const reach = (skip) => {
|
|
9701
|
+
const seen = new Set(this.importers);
|
|
9702
|
+
for (const node of seen) {
|
|
9703
|
+
for (const edge of node.edgesOut.values()) {
|
|
9704
|
+
if (edge.to && !skip(edge)) seen.add(edge.to);
|
|
9705
|
+
}
|
|
9706
|
+
}
|
|
9707
|
+
return seen;
|
|
9708
|
+
};
|
|
9709
|
+
const nonDev = reach((edge) => edge.dev);
|
|
9710
|
+
const nonOptional = reach((edge) => edge.optional);
|
|
9711
|
+
for (const node of this.nodes.values()) {
|
|
9712
|
+
const dev2 = !nonDev.has(node);
|
|
9713
|
+
const optional2 = !nonOptional.has(node);
|
|
9714
|
+
if (node.dev !== dev2 || node.optional !== optional2) {
|
|
9715
|
+
node.dev = dev2;
|
|
9716
|
+
node.optional = optional2;
|
|
9717
|
+
this.lockfileStale = true;
|
|
9718
|
+
}
|
|
9719
|
+
}
|
|
9720
|
+
}
|
|
9533
9721
|
/**
|
|
9534
9722
|
* Delete all nodes and edges that are unreachable from the importers.
|
|
9535
9723
|
* The collection of deleted nodes is returned.
|
|
@@ -11513,7 +11701,7 @@ var Breadcrumb = class {
|
|
|
11513
11701
|
constructor(query) {
|
|
11514
11702
|
this.#items = [];
|
|
11515
11703
|
this.specificity = { idCounter: 0, commonCounter: 0 };
|
|
11516
|
-
const ast = parse2(query);
|
|
11704
|
+
const ast = parse2(query, { loose: true });
|
|
11517
11705
|
let afterCombinator = true;
|
|
11518
11706
|
for (const item of ast.first.nodes) {
|
|
11519
11707
|
const pseudoNode = isPseudoNode(item);
|
|
@@ -14176,6 +14364,7 @@ var buildIdealFromStartingGraph = async (options) => {
|
|
|
14176
14364
|
options
|
|
14177
14365
|
);
|
|
14178
14366
|
}
|
|
14367
|
+
options.graph.recomputeFlags();
|
|
14179
14368
|
return options.graph;
|
|
14180
14369
|
};
|
|
14181
14370
|
|
|
@@ -14310,7 +14499,7 @@ import {
|
|
|
14310
14499
|
stat as stat2,
|
|
14311
14500
|
writeFile as writeFile3
|
|
14312
14501
|
} from "node:fs/promises";
|
|
14313
|
-
import { dirname as dirname5, relative as relative2 } from "node:path";
|
|
14502
|
+
import { dirname as dirname5, isAbsolute, relative as relative2 } from "node:path";
|
|
14314
14503
|
|
|
14315
14504
|
// ../../src/cmd-shim/src/to-batch-syntax.ts
|
|
14316
14505
|
var convertToSetCommand = (key, value) => convertToSetCommand_(key.trim(), value.trim());
|
|
@@ -14411,6 +14600,18 @@ var cmdShimIfExists = async (from, to, remover) => {
|
|
|
14411
14600
|
}
|
|
14412
14601
|
await writeShim(from, to, remover);
|
|
14413
14602
|
};
|
|
14603
|
+
var cmdShim = async (from, to, remover) => {
|
|
14604
|
+
try {
|
|
14605
|
+
await stat2(from);
|
|
14606
|
+
await writeShim(from, to, remover);
|
|
14607
|
+
} catch (er) {
|
|
14608
|
+
throw error("Could not shim to executable file", {
|
|
14609
|
+
path: from,
|
|
14610
|
+
target: to,
|
|
14611
|
+
cause: er
|
|
14612
|
+
});
|
|
14613
|
+
}
|
|
14614
|
+
};
|
|
14414
14615
|
var writeShim = async (from, to, remover) => {
|
|
14415
14616
|
await Promise.all([
|
|
14416
14617
|
remover.rm(to),
|
|
@@ -14435,6 +14636,7 @@ var writeShim = async (from, to, remover) => {
|
|
|
14435
14636
|
};
|
|
14436
14637
|
var writeShim_ = async (from, to, prog, args, variables) => {
|
|
14437
14638
|
let shTarget = relative2(dirname5(to), from);
|
|
14639
|
+
const [dp0, basedir] = isAbsolute(shTarget) ? ["", ""] : ["%dp0%\\", "$basedir/"];
|
|
14438
14640
|
let target = shTarget.split("/").join("\\");
|
|
14439
14641
|
let longProg;
|
|
14440
14642
|
let shProg = prog?.split("\\").join("/");
|
|
@@ -14445,8 +14647,8 @@ var writeShim_ = async (from, to, prog, args, variables) => {
|
|
|
14445
14647
|
args = args || "";
|
|
14446
14648
|
variables = variables || "";
|
|
14447
14649
|
if (!prog) {
|
|
14448
|
-
prog = `"
|
|
14449
|
-
shProg = `"$basedir
|
|
14650
|
+
prog = `"${dp0}${target}"`;
|
|
14651
|
+
shProg = `"${basedir}${shTarget}"`;
|
|
14450
14652
|
pwshProg = shProg;
|
|
14451
14653
|
args = "";
|
|
14452
14654
|
target = "";
|
|
@@ -14455,8 +14657,8 @@ var writeShim_ = async (from, to, prog, args, variables) => {
|
|
|
14455
14657
|
longProg = `"%dp0%\\${prog}.exe"`;
|
|
14456
14658
|
shLongProg = `"$basedir/${prog}"`;
|
|
14457
14659
|
pwshLongProg = `"$basedir/${prog}$exe"`;
|
|
14458
|
-
target = `"
|
|
14459
|
-
shTarget = `"$basedir
|
|
14660
|
+
target = `"${dp0}${target}"`;
|
|
14661
|
+
shTarget = `"${basedir}${shTarget}"`;
|
|
14460
14662
|
}
|
|
14461
14663
|
const head = "@ECHO off\r\nGOTO start\r\n:find_dp0\r\nSET dp0=%~dp0\r\nEXIT /b\r\n:start\r\nSETLOCAL\r\nCALL :find_dp0\r\n";
|
|
14462
14664
|
let cmd;
|
|
@@ -15174,15 +15376,21 @@ var uninstall = async (options, remove) => {
|
|
|
15174
15376
|
const mainManifest = options.packageJson.read(options.projectRoot);
|
|
15175
15377
|
const modifiers = GraphModifier.maybeLoad(options);
|
|
15176
15378
|
const remover = new RollbackRemove();
|
|
15379
|
+
const monorepo = Monorepo.maybeLoad(options.projectRoot, {
|
|
15380
|
+
packageJson: options.packageJson,
|
|
15381
|
+
scurry: options.scurry
|
|
15382
|
+
});
|
|
15177
15383
|
try {
|
|
15178
15384
|
const act = load4({
|
|
15179
15385
|
...options,
|
|
15386
|
+
monorepo,
|
|
15180
15387
|
modifiers: void 0,
|
|
15181
15388
|
mainManifest,
|
|
15182
15389
|
loadManifests: true
|
|
15183
15390
|
});
|
|
15184
15391
|
const graph = await build3({
|
|
15185
15392
|
...options,
|
|
15393
|
+
monorepo,
|
|
15186
15394
|
actual: act,
|
|
15187
15395
|
remove,
|
|
15188
15396
|
mainManifest,
|
|
@@ -15232,6 +15440,30 @@ var uninstall = async (options, remove) => {
|
|
|
15232
15440
|
// ../../src/graph/src/update.ts
|
|
15233
15441
|
import { existsSync as existsSync5, rmSync as rmSync3 } from "node:fs";
|
|
15234
15442
|
import { resolve as resolve12 } from "node:path";
|
|
15443
|
+
var startingGraph = (options, monorepo) => {
|
|
15444
|
+
const fresh = () => new Graph({ ...options, monorepo });
|
|
15445
|
+
if (!options.monorepo || !monorepo) return fresh();
|
|
15446
|
+
const selected = new Set(
|
|
15447
|
+
[...options.monorepo.values()].map((ws) => ws.id)
|
|
15448
|
+
);
|
|
15449
|
+
if (selected.size === monorepo.size) return fresh();
|
|
15450
|
+
let graph;
|
|
15451
|
+
try {
|
|
15452
|
+
graph = load3({ ...options, monorepo });
|
|
15453
|
+
} catch (err) {
|
|
15454
|
+
if (isPathSecurityError(err)) throw err;
|
|
15455
|
+
graph = load4({ ...options, monorepo, loadManifests: true });
|
|
15456
|
+
}
|
|
15457
|
+
for (const importer of graph.importers) {
|
|
15458
|
+
if (!selected.has(importer.id)) continue;
|
|
15459
|
+
for (const edge of importer.edgesOut.values()) {
|
|
15460
|
+
edge.to?.edgesIn.delete(edge);
|
|
15461
|
+
}
|
|
15462
|
+
importer.edgesOut.clear();
|
|
15463
|
+
}
|
|
15464
|
+
graph.gc();
|
|
15465
|
+
return graph;
|
|
15466
|
+
};
|
|
15235
15467
|
var update = async (options) => {
|
|
15236
15468
|
let mainManifest = void 0;
|
|
15237
15469
|
try {
|
|
@@ -15248,6 +15480,10 @@ var update = async (options) => {
|
|
|
15248
15480
|
}
|
|
15249
15481
|
const modifiers = GraphModifier.maybeLoad(options);
|
|
15250
15482
|
const remover = new RollbackRemove();
|
|
15483
|
+
const monorepo = Monorepo.maybeLoad(options.projectRoot, {
|
|
15484
|
+
packageJson: options.packageJson,
|
|
15485
|
+
scurry: options.scurry
|
|
15486
|
+
});
|
|
15251
15487
|
try {
|
|
15252
15488
|
const done = graphStep("build");
|
|
15253
15489
|
const graph = await buildIdealFromStartingGraph({
|
|
@@ -15256,13 +15492,17 @@ var update = async (options) => {
|
|
|
15256
15492
|
remove: Object.assign(/* @__PURE__ */ new Map(), {
|
|
15257
15493
|
modifiedDependencies: false
|
|
15258
15494
|
}),
|
|
15259
|
-
graph:
|
|
15495
|
+
graph: startingGraph(
|
|
15496
|
+
{ ...options, mainManifest, modifiers },
|
|
15497
|
+
monorepo
|
|
15498
|
+
),
|
|
15260
15499
|
modifiers,
|
|
15261
15500
|
remover
|
|
15262
15501
|
});
|
|
15263
15502
|
done();
|
|
15264
15503
|
const act = load4({
|
|
15265
15504
|
...options,
|
|
15505
|
+
monorepo,
|
|
15266
15506
|
mainManifest,
|
|
15267
15507
|
loadManifests: true
|
|
15268
15508
|
});
|
|
@@ -15612,6 +15852,7 @@ export {
|
|
|
15612
15852
|
humanReadableOutput,
|
|
15613
15853
|
mermaidOutput,
|
|
15614
15854
|
findCmdShimIfExists,
|
|
15855
|
+
cmdShim,
|
|
15615
15856
|
RollbackRemove,
|
|
15616
15857
|
GraphModifier,
|
|
15617
15858
|
init,
|
|
@@ -10,11 +10,15 @@ 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
|
-
getTokenByURL
|
|
14
|
-
|
|
13
|
+
getTokenByURL,
|
|
14
|
+
registryKeys
|
|
15
|
+
} from "./chunk-5KOLUYXH.js";
|
|
15
16
|
|
|
16
17
|
// ../../src/cli-sdk/src/query-auth.ts
|
|
17
|
-
var createGetAuthHeader = (conf) =>
|
|
18
|
+
var createGetAuthHeader = (conf) => {
|
|
19
|
+
const keys = registryKeys(conf.options);
|
|
20
|
+
return async (url) => getTokenByURL(url, conf.options.identity, keys);
|
|
21
|
+
};
|
|
18
22
|
|
|
19
23
|
export {
|
|
20
24
|
createGetAuthHeader
|
|
@@ -13,10 +13,10 @@ import {
|
|
|
13
13
|
actual,
|
|
14
14
|
callLimit,
|
|
15
15
|
createVirtualRoot
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-NWHKSRO3.js";
|
|
17
17
|
import {
|
|
18
18
|
SecurityArchive
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-XCDLOQZZ.js";
|
|
20
20
|
import {
|
|
21
21
|
error
|
|
22
22
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -140,7 +140,7 @@ var reloadConfig = async (folder) => {
|
|
|
140
140
|
unload("project");
|
|
141
141
|
} catch {
|
|
142
142
|
}
|
|
143
|
-
const { Config } = await import("./config-
|
|
143
|
+
const { Config } = await import("./config-MVNXGEOQ.js");
|
|
144
144
|
return Config.load(folder, process.argv, true);
|
|
145
145
|
};
|
|
146
146
|
|
|
@@ -11,8 +11,8 @@ 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-
|
|
14
|
+
} from "./chunk-NWHKSRO3.js";
|
|
15
|
+
import "./chunk-XCDLOQZZ.js";
|
|
16
16
|
import {
|
|
17
17
|
commandUsage
|
|
18
18
|
} from "./chunk-TLY4VGMH.js";
|
|
@@ -24,7 +24,7 @@ import "./chunk-SV4WK3KX.js";
|
|
|
24
24
|
import "./chunk-GZ5MYMBT.js";
|
|
25
25
|
import "./chunk-SE2FSMBR.js";
|
|
26
26
|
import "./chunk-HTOTG4TS.js";
|
|
27
|
-
import "./chunk-
|
|
27
|
+
import "./chunk-6BQKR2FM.js";
|
|
28
28
|
import "./chunk-U7TEQCBN.js";
|
|
29
29
|
import "./chunk-XNLSTHDK.js";
|
|
30
30
|
import "./chunk-PDWPFR5T.js";
|
|
@@ -63,7 +63,7 @@ var usage = () => commandUsage({
|
|
|
63
63
|
var views = {
|
|
64
64
|
json: (i) => i.graph.toJSON(),
|
|
65
65
|
human: lazyView(
|
|
66
|
-
async () => (await import("./reporter-
|
|
66
|
+
async () => (await import("./reporter-4KK2JNGO.js")).InstallReporter
|
|
67
67
|
)
|
|
68
68
|
};
|
|
69
69
|
var command = async (conf) => {
|
package/cli-package.json
CHANGED
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
kCustomInspect,
|
|
17
17
|
pairsToRecords,
|
|
18
18
|
recordsToPairs
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-43HNQWPQ.js";
|
|
20
|
+
import "./chunk-DL3H4EMY.js";
|
|
21
21
|
import "./chunk-SRWDPPLX.js";
|
|
22
22
|
import "./chunk-CB65DPZ2.js";
|
|
23
23
|
import "./chunk-SV4WK3KX.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
|
vlxResolve
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-BGA3WB7H.js";
|
|
15
15
|
import {
|
|
16
16
|
ExecCommand,
|
|
17
17
|
views
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FIUUAQGC.js";
|
|
19
19
|
import "./chunk-RIYFGX27.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-WHLYMMI2.js";
|
|
21
21
|
import {
|
|
22
22
|
styleTextStdout
|
|
23
23
|
} from "./chunk-XDSZO74H.js";
|
|
@@ -25,15 +25,15 @@ import "./chunk-KMOOTBHM.js";
|
|
|
25
25
|
import "./chunk-G2YT2GWF.js";
|
|
26
26
|
import "./chunk-IHXJVKAE.js";
|
|
27
27
|
import "./chunk-VTEFO2FT.js";
|
|
28
|
-
import "./chunk-
|
|
28
|
+
import "./chunk-DL3H4EMY.js";
|
|
29
29
|
import "./chunk-SRWDPPLX.js";
|
|
30
30
|
import "./chunk-WGDTG44V.js";
|
|
31
31
|
import "./chunk-A2TSRXZD.js";
|
|
32
32
|
import {
|
|
33
33
|
exec,
|
|
34
34
|
execFG
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
35
|
+
} from "./chunk-NWHKSRO3.js";
|
|
36
|
+
import "./chunk-XCDLOQZZ.js";
|
|
37
37
|
import {
|
|
38
38
|
commandUsage
|
|
39
39
|
} from "./chunk-TLY4VGMH.js";
|
|
@@ -44,7 +44,7 @@ import "./chunk-GZ5MYMBT.js";
|
|
|
44
44
|
import "./chunk-SE2FSMBR.js";
|
|
45
45
|
import "./chunk-HTOTG4TS.js";
|
|
46
46
|
import "./chunk-6D54UN4T.js";
|
|
47
|
-
import "./chunk-
|
|
47
|
+
import "./chunk-6BQKR2FM.js";
|
|
48
48
|
import "./chunk-U7TEQCBN.js";
|
|
49
49
|
import "./chunk-XNLSTHDK.js";
|
|
50
50
|
import "./chunk-PDWPFR5T.js";
|
|
@@ -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
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-DL3H4EMY.js";
|
|
15
15
|
import "./chunk-SRWDPPLX.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveRegistry
|
|
@@ -28,13 +28,13 @@ import "./chunk-SE2FSMBR.js";
|
|
|
28
28
|
import "./chunk-HTOTG4TS.js";
|
|
29
29
|
import {
|
|
30
30
|
RegistryClient
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-5KOLUYXH.js";
|
|
32
32
|
import "./chunk-APMYKJI2.js";
|
|
33
33
|
import {
|
|
34
34
|
assertOk,
|
|
35
35
|
requestError
|
|
36
36
|
} from "./chunk-6D54UN4T.js";
|
|
37
|
-
import "./chunk-
|
|
37
|
+
import "./chunk-6BQKR2FM.js";
|
|
38
38
|
import "./chunk-U7TEQCBN.js";
|
|
39
39
|
import "./chunk-XNLSTHDK.js";
|
|
40
40
|
import "./chunk-PDWPFR5T.js";
|
|
@@ -21,12 +21,12 @@ import {
|
|
|
21
21
|
import "./chunk-SE2FSMBR.js";
|
|
22
22
|
import {
|
|
23
23
|
RegistryClient
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5KOLUYXH.js";
|
|
25
25
|
import "./chunk-APMYKJI2.js";
|
|
26
26
|
import {
|
|
27
27
|
assertOk
|
|
28
28
|
} from "./chunk-6D54UN4T.js";
|
|
29
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-6BQKR2FM.js";
|
|
30
30
|
import "./chunk-U7TEQCBN.js";
|
|
31
31
|
import "./chunk-XNLSTHDK.js";
|
|
32
32
|
import "./chunk-PDWPFR5T.js";
|