@vltpkg/cli-js 1.0.8 → 1.0.10
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-FOYRQGJC.js → access-4RPC3X5N.js} +5 -5
- package/{bugs-ORVU4I5O.js → bugs-K6QLQLL4.js} +12 -12
- package/{build-JLVAGEEU.js → build-VD4L5IED.js} +8 -8
- package/{cache-RIOSSQD3.js → cache-Q6FUUEQF.js} +7 -7
- package/{chunk-5CNTLC2U.js → chunk-3564IL5W.js} +1 -1
- package/{chunk-YAIKXFLN.js → chunk-5HBKYSTX.js} +1 -1
- package/{chunk-PTR5IGFQ.js → chunk-5HPGL5WS.js} +1 -1
- package/{chunk-UYIA44HE.js → chunk-B5IILBX7.js} +4 -4
- package/{chunk-BJBFEQRR.js → chunk-BHJT53TP.js} +1 -0
- package/{chunk-ADLHAQRA.js → chunk-BSPUKIWY.js} +1 -1
- package/{chunk-3L2ERW54.js → chunk-DAS7TVRN.js} +3 -3
- package/{chunk-7D7SNVBV.js → chunk-FUCQ7ARR.js} +76 -25
- package/{chunk-XISRK3R5.js → chunk-MNK55XSE.js} +17 -0
- package/{chunk-WY4PAM6D.js → chunk-NA732FNL.js} +3 -3
- package/{chunk-AGHW2E24.js → chunk-NWLS3VOQ.js} +79 -15
- package/{chunk-YCVPEZRM.js → chunk-P5S2TFCF.js} +50 -16
- package/{chunk-5QAFAGO5.js → chunk-TYRKIWGF.js} +6 -6
- package/{chunk-JXVDCQZF.js → chunk-VL7RJVNN.js} +27 -5
- package/{chunk-NC3QYZPW.js → chunk-WAYVHANF.js} +3 -3
- package/{chunk-MUG5K6X2.js → chunk-XFI4THXZ.js} +1 -1
- package/{chunk-ZXIF4PVX.js → chunk-XUP35M5Q.js} +4 -4
- package/chunk-Y3QEV76Q.js +75 -0
- package/{chunk-OB73T23B.js → chunk-ZNCVQQDT.js} +1 -1
- package/{ci-2666LKEC.js → ci-G4PJWJQE.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-3N7PBEXH.js → config-66ARNESN.js} +6 -5
- package/{config-WMYY5J37.js → config-WTIWWXRD.js} +8 -7
- package/{create-AEQSO6KX.js → create-DF6RQTHC.js} +13 -13
- package/{deprecate-MW76DAZ5.js → deprecate-2KTC2HKH.js} +8 -8
- package/{dist-tag-XGQLYA6C.js → dist-tag-QKJQIOGN.js} +5 -5
- package/{docs-7CCTL3OY.js → docs-YSWJTGYX.js} +12 -12
- package/{exec-GWCIDNOH.js → exec-5XIMPSBI.js} +13 -13
- package/{exec-cache-AML2HUTJ.js → exec-cache-OGX7WR5P.js} +11 -11
- package/{exec-local-JRTO2XG4.js → exec-local-SB7EPYED.js} +11 -11
- package/{help-4KSCV7GN.js → help-GMCQHGVN.js} +4 -4
- package/{init-OHVBHXB7.js → init-KXIIWHBA.js} +8 -8
- package/{install-TFDEHY5J.js → install-ODTEMAMS.js} +8 -8
- package/{list-UD4SDHVE.js → list-QS4FLJSU.js} +13 -13
- package/{login-B6TIQW62.js → login-6TGYRY43.js} +8 -8
- package/{logout-H3CXGLDN.js → logout-GOAB7KHJ.js} +5 -5
- package/{pack-YYK4LKBQ.js → pack-PJDH6PKP.js} +9 -9
- package/package.json +1 -1
- package/{ping-G765RWLM.js → ping-ANBW2IRW.js} +5 -5
- package/{pkg-D4S3SPUH.js → pkg-GZWUXU65.js} +9 -9
- package/{profile-YDQGMWYP.js → profile-BLY74CMB.js} +5 -5
- package/{publish-ANHSZPIM.js → publish-W2KOTNMB.js} +25 -13
- package/{query-PZ6C6AZJ.js → query-3PUMU5ON.js} +13 -13
- package/{registry-BMWXMQS4.js → registry-ONSDWNPV.js} +3 -3
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +75 -11
- package/{repo-ZA3TMERE.js → repo-LZ6STH4C.js} +12 -12
- package/{run-N4NK35UT.js → run-JMIBADHE.js} +11 -11
- package/{run-exec-N5FT4QO7.js → run-exec-JEKM2O53.js} +11 -11
- package/{setup-MWWDSKQZ.js → setup-BTBU3NAI.js} +35 -17
- package/{src-6UF5YTTL.js → src-23VBKASP.js} +9 -9
- package/{src-6PISL6QX.js → src-J4BAYOBO.js} +3 -3
- package/{src-U4EBFPPT.js → src-MOKZQTH2.js} +163 -205
- package/{token-FFUAFL43.js → token-PUJ7QN6D.js} +5 -5
- package/{uninstall-A4PUG6RI.js → uninstall-OTISP2T7.js} +8 -8
- package/{unpublish-OJEGZDGQ.js → unpublish-X75EEQAN.js} +6 -6
- package/{update-ENR6ICMR.js → update-CKXX5POE.js} +7 -7
- package/{version-K3BUGG7X.js → version-24B2X7M7.js} +23 -17
- package/{view-SWVQLQCB.js → view-Q7MAQ6R3.js} +7 -6
- 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-MA733O2T.js → whoami-S6CQZFE3.js} +5 -5
- package/chunk-AQ3XJJUP.js +0 -75
- package/{chunk-FG633ZKS.js → chunk-2YJ5MESP.js} +3 -3
- package/{chunk-OWML62W5.js → chunk-USTJECVS.js} +3 -3
|
@@ -14,20 +14,20 @@ import {
|
|
|
14
14
|
} from "./chunk-5JFRXIK2.js";
|
|
15
15
|
import {
|
|
16
16
|
commandUsage
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-5HPGL5WS.js";
|
|
18
18
|
import "./chunk-XKVU23NC.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-MNK55XSE.js";
|
|
20
20
|
import {
|
|
21
21
|
RegistryClient
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NWLS3VOQ.js";
|
|
23
23
|
import "./chunk-HAYXR3MW.js";
|
|
24
24
|
import "./chunk-E74WGW5C.js";
|
|
25
25
|
import "./chunk-LPIBYUMT.js";
|
|
26
26
|
import "./chunk-UBLFPJHV.js";
|
|
27
|
+
import "./chunk-VFBCWAOC.js";
|
|
27
28
|
import "./chunk-XNLSTHDK.js";
|
|
28
|
-
import "./chunk-
|
|
29
|
+
import "./chunk-BHJT53TP.js";
|
|
29
30
|
import "./chunk-VE6CCH33.js";
|
|
30
|
-
import "./chunk-VFBCWAOC.js";
|
|
31
31
|
import {
|
|
32
32
|
error
|
|
33
33
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -14,16 +14,16 @@ import {
|
|
|
14
14
|
} from "./chunk-CLVRCGOZ.js";
|
|
15
15
|
import {
|
|
16
16
|
openUrl
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-ZNCVQQDT.js";
|
|
18
18
|
import {
|
|
19
19
|
createHostContextsMap
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-WAYVHANF.js";
|
|
21
21
|
import {
|
|
22
22
|
PackageInfoClient
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-P5S2TFCF.js";
|
|
24
24
|
import "./chunk-ZWKI5OSF.js";
|
|
25
|
-
import "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
import "./chunk-VL7RJVNN.js";
|
|
26
|
+
import "./chunk-5HBKYSTX.js";
|
|
27
27
|
import "./chunk-G2YT2GWF.js";
|
|
28
28
|
import "./chunk-GDJ7JT2R.js";
|
|
29
29
|
import "./chunk-5JFRXIK2.js";
|
|
@@ -31,29 +31,29 @@ import "./chunk-WGDTG44V.js";
|
|
|
31
31
|
import {
|
|
32
32
|
Query,
|
|
33
33
|
actual
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FUCQ7ARR.js";
|
|
35
35
|
import {
|
|
36
36
|
SecurityArchive
|
|
37
|
-
} from "./chunk-
|
|
38
|
-
import "./chunk-
|
|
37
|
+
} from "./chunk-2YJ5MESP.js";
|
|
38
|
+
import "./chunk-USTJECVS.js";
|
|
39
39
|
import "./chunk-YOE3VZFX.js";
|
|
40
40
|
import {
|
|
41
41
|
commandUsage
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-5HPGL5WS.js";
|
|
43
43
|
import {
|
|
44
44
|
Spec
|
|
45
45
|
} from "./chunk-XKVU23NC.js";
|
|
46
|
-
import "./chunk-
|
|
46
|
+
import "./chunk-MNK55XSE.js";
|
|
47
47
|
import "./chunk-4KCU2KZL.js";
|
|
48
48
|
import "./chunk-HTOTG4TS.js";
|
|
49
49
|
import "./chunk-HAYXR3MW.js";
|
|
50
50
|
import "./chunk-E74WGW5C.js";
|
|
51
51
|
import "./chunk-LPIBYUMT.js";
|
|
52
52
|
import "./chunk-UBLFPJHV.js";
|
|
53
|
+
import "./chunk-VFBCWAOC.js";
|
|
53
54
|
import "./chunk-XNLSTHDK.js";
|
|
54
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-BHJT53TP.js";
|
|
55
56
|
import "./chunk-VE6CCH33.js";
|
|
56
|
-
import "./chunk-VFBCWAOC.js";
|
|
57
57
|
import {
|
|
58
58
|
error
|
|
59
59
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -11,25 +11,25 @@ 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-
|
|
14
|
+
} from "./chunk-FUCQ7ARR.js";
|
|
15
|
+
import "./chunk-2YJ5MESP.js";
|
|
16
|
+
import "./chunk-USTJECVS.js";
|
|
17
17
|
import "./chunk-YOE3VZFX.js";
|
|
18
18
|
import {
|
|
19
19
|
commandUsage
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-5HPGL5WS.js";
|
|
21
21
|
import "./chunk-XKVU23NC.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-MNK55XSE.js";
|
|
23
23
|
import "./chunk-HTOTG4TS.js";
|
|
24
24
|
import "./chunk-E74WGW5C.js";
|
|
25
25
|
import "./chunk-LPIBYUMT.js";
|
|
26
26
|
import "./chunk-UBLFPJHV.js";
|
|
27
|
-
import "./chunk-XNLSTHDK.js";
|
|
28
|
-
import "./chunk-BJBFEQRR.js";
|
|
29
|
-
import "./chunk-VE6CCH33.js";
|
|
30
27
|
import {
|
|
31
28
|
isErrorWithCause
|
|
32
29
|
} from "./chunk-VFBCWAOC.js";
|
|
30
|
+
import "./chunk-XNLSTHDK.js";
|
|
31
|
+
import "./chunk-BHJT53TP.js";
|
|
32
|
+
import "./chunk-VE6CCH33.js";
|
|
33
33
|
import {
|
|
34
34
|
error
|
|
35
35
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -15,8 +15,8 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
stderr,
|
|
17
17
|
stdout
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-VL7RJVNN.js";
|
|
19
|
+
import "./chunk-5HBKYSTX.js";
|
|
20
20
|
import "./chunk-G2YT2GWF.js";
|
|
21
21
|
import "./chunk-GDJ7JT2R.js";
|
|
22
22
|
import "./chunk-5JFRXIK2.js";
|
|
@@ -24,25 +24,25 @@ import "./chunk-WGDTG44V.js";
|
|
|
24
24
|
import "./chunk-YOE3VZFX.js";
|
|
25
25
|
import {
|
|
26
26
|
commandUsage
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-5HPGL5WS.js";
|
|
28
28
|
import {
|
|
29
29
|
Spec
|
|
30
30
|
} from "./chunk-XKVU23NC.js";
|
|
31
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-MNK55XSE.js";
|
|
32
32
|
import {
|
|
33
33
|
ViewClass
|
|
34
34
|
} from "./chunk-4KCU2KZL.js";
|
|
35
35
|
import {
|
|
36
36
|
CacheEntry
|
|
37
|
-
} from "./chunk-
|
|
37
|
+
} from "./chunk-NWLS3VOQ.js";
|
|
38
38
|
import "./chunk-HAYXR3MW.js";
|
|
39
39
|
import "./chunk-E74WGW5C.js";
|
|
40
40
|
import "./chunk-LPIBYUMT.js";
|
|
41
41
|
import "./chunk-UBLFPJHV.js";
|
|
42
|
+
import "./chunk-VFBCWAOC.js";
|
|
42
43
|
import "./chunk-XNLSTHDK.js";
|
|
43
|
-
import "./chunk-
|
|
44
|
+
import "./chunk-BHJT53TP.js";
|
|
44
45
|
import "./chunk-VE6CCH33.js";
|
|
45
|
-
import "./chunk-VFBCWAOC.js";
|
|
46
46
|
import {
|
|
47
47
|
error
|
|
48
48
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
} from "./chunk-RIYFGX27.js";
|
|
15
15
|
import {
|
|
16
16
|
createHostContextsMap
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-WAYVHANF.js";
|
|
18
18
|
import {
|
|
19
19
|
stderr,
|
|
20
20
|
stdout,
|
|
21
21
|
styleTextStdout
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-VL7RJVNN.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-FUCQ7ARR.js";
|
|
31
31
|
import {
|
|
32
32
|
Monorepo
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-USTJECVS.js";
|
|
34
34
|
import {
|
|
35
35
|
isErrorWithCause
|
|
36
36
|
} from "./chunk-VFBCWAOC.js";
|
|
@@ -12,15 +12,15 @@ var require = _vlt_createRequire(import.meta.filename);
|
|
|
12
12
|
import {
|
|
13
13
|
init,
|
|
14
14
|
install
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-FUCQ7ARR.js";
|
|
16
16
|
import {
|
|
17
17
|
asWSConfig,
|
|
18
18
|
assertWSConfig,
|
|
19
19
|
minimatch
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-USTJECVS.js";
|
|
21
21
|
import {
|
|
22
22
|
commandUsage
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-5HPGL5WS.js";
|
|
24
24
|
import {
|
|
25
25
|
load,
|
|
26
26
|
save
|
|
@@ -13,14 +13,14 @@ import {
|
|
|
13
13
|
AbortError,
|
|
14
14
|
SecurityArchive,
|
|
15
15
|
pRetry
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-2YJ5MESP.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-USTJECVS.js";
|
|
24
24
|
import {
|
|
25
25
|
asDepID,
|
|
26
26
|
baseDepID,
|
|
@@ -49,12 +49,6 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
graphStep
|
|
51
51
|
} from "./chunk-UBLFPJHV.js";
|
|
52
|
-
import {
|
|
53
|
-
XDG
|
|
54
|
-
} from "./chunk-XNLSTHDK.js";
|
|
55
|
-
import {
|
|
56
|
-
rimraf
|
|
57
|
-
} from "./chunk-BJBFEQRR.js";
|
|
58
52
|
import {
|
|
59
53
|
Spec,
|
|
60
54
|
Version,
|
|
@@ -95,6 +89,12 @@ import {
|
|
|
95
89
|
shortDependencyTypes,
|
|
96
90
|
subset
|
|
97
91
|
} from "./chunk-VFBCWAOC.js";
|
|
92
|
+
import {
|
|
93
|
+
XDG
|
|
94
|
+
} from "./chunk-XNLSTHDK.js";
|
|
95
|
+
import {
|
|
96
|
+
rimraf
|
|
97
|
+
} from "./chunk-BHJT53TP.js";
|
|
98
98
|
import {
|
|
99
99
|
error,
|
|
100
100
|
typeError
|
|
@@ -5740,6 +5740,39 @@ var parse2 = (query) => {
|
|
|
5740
5740
|
return (0, import_postcss_selector_parser.default)(transformAst).astSync(escapedQuery);
|
|
5741
5741
|
};
|
|
5742
5742
|
|
|
5743
|
+
// ../../src/query/src/error.ts
|
|
5744
|
+
var selectorText = (node) => {
|
|
5745
|
+
const text = node.toString === Object.prototype.toString ? "" : String(node).trim().replace(/\\(.)/g, "$1");
|
|
5746
|
+
return text || (node.value ?? node.type);
|
|
5747
|
+
};
|
|
5748
|
+
var queryError = (message, node, extra) => error(message, {
|
|
5749
|
+
code: "EQUERY",
|
|
5750
|
+
found: selectorText(node),
|
|
5751
|
+
...extra
|
|
5752
|
+
});
|
|
5753
|
+
var distance = (a, b, max) => {
|
|
5754
|
+
if (Math.abs(a.length - b.length) > max) return max + 1;
|
|
5755
|
+
let prev = Array.from({ length: b.length + 1 }, (_, i) => i);
|
|
5756
|
+
for (let i = 1; i <= a.length; i++) {
|
|
5757
|
+
const row = [i];
|
|
5758
|
+
let best = i;
|
|
5759
|
+
for (let j = 1; j <= b.length; j++) {
|
|
5760
|
+
const cost = a[i - 1] === b[j - 1] ? 0 : 1;
|
|
5761
|
+
const d = Math.min(
|
|
5762
|
+
(row[j - 1] ?? 0) + 1,
|
|
5763
|
+
(prev[j] ?? 0) + 1,
|
|
5764
|
+
(prev[j - 1] ?? 0) + cost
|
|
5765
|
+
);
|
|
5766
|
+
row.push(d);
|
|
5767
|
+
if (d < best) best = d;
|
|
5768
|
+
}
|
|
5769
|
+
if (best > max) return max + 1;
|
|
5770
|
+
prev = row;
|
|
5771
|
+
}
|
|
5772
|
+
return prev[b.length] ?? max + 1;
|
|
5773
|
+
};
|
|
5774
|
+
var didYouMean = (value, candidates, max = 2) => [...candidates].map((c) => [c, distance(value, c, max)]).filter(([, d]) => d <= max).sort(([a, x], [b, y]) => x - y || a.localeCompare(b, "en")).map(([c]) => c);
|
|
5775
|
+
|
|
5743
5776
|
// ../../src/query/src/pseudo/helpers.ts
|
|
5744
5777
|
var removeNode = (state, node) => {
|
|
5745
5778
|
for (const edge of node.edgesIn) {
|
|
@@ -5898,9 +5931,11 @@ var attribute = async (state) => {
|
|
|
5898
5931
|
if (state.loose) {
|
|
5899
5932
|
return state;
|
|
5900
5933
|
}
|
|
5901
|
-
throw
|
|
5902
|
-
|
|
5903
|
-
|
|
5934
|
+
throw queryError(
|
|
5935
|
+
`Unsupported attribute operator: ${curr.operator}`,
|
|
5936
|
+
state.current,
|
|
5937
|
+
{ validOptions: [...attributeSelectorsMap.keys()] }
|
|
5938
|
+
);
|
|
5904
5939
|
}
|
|
5905
5940
|
const value = curr.value || "";
|
|
5906
5941
|
const propertyName = curr.attribute;
|
|
@@ -5985,9 +6020,11 @@ var combinator = async (state) => {
|
|
|
5985
6020
|
if (state.loose) {
|
|
5986
6021
|
return state;
|
|
5987
6022
|
}
|
|
5988
|
-
throw
|
|
5989
|
-
|
|
5990
|
-
|
|
6023
|
+
throw queryError(
|
|
6024
|
+
`Unsupported combinator: ${state.current.value}`,
|
|
6025
|
+
state.current,
|
|
6026
|
+
{ validOptions: [...combinatorSelectorsMap.keys()] }
|
|
6027
|
+
);
|
|
5991
6028
|
}
|
|
5992
6029
|
return parserFn(state);
|
|
5993
6030
|
};
|
|
@@ -8432,6 +8469,9 @@ var pseudoSelectors = new Map(
|
|
|
8432
8469
|
workspace
|
|
8433
8470
|
})
|
|
8434
8471
|
);
|
|
8472
|
+
var pseudoSelectorNames = new Set(
|
|
8473
|
+
pseudoSelectors.keys()
|
|
8474
|
+
);
|
|
8435
8475
|
var pseudo = async (state) => {
|
|
8436
8476
|
await state.cancellable();
|
|
8437
8477
|
const curr = asPseudoNode(state.current);
|
|
@@ -8442,9 +8482,15 @@ var pseudo = async (state) => {
|
|
|
8442
8482
|
state.partial.nodes.clear();
|
|
8443
8483
|
return state;
|
|
8444
8484
|
}
|
|
8445
|
-
|
|
8446
|
-
|
|
8447
|
-
|
|
8485
|
+
const name = selectorText(state.current).replace(/^:/, "").replace(/\(.*$/s, "");
|
|
8486
|
+
const suggestions = didYouMean(name, pseudoSelectorNames).map(
|
|
8487
|
+
(n) => `:${n}`
|
|
8488
|
+
);
|
|
8489
|
+
throw queryError(
|
|
8490
|
+
`Unsupported pseudo-class: ${state.current.value}`,
|
|
8491
|
+
state.current,
|
|
8492
|
+
suggestions.length > 1 ? { validOptions: suggestions } : { wanted: suggestions[0] }
|
|
8493
|
+
);
|
|
8448
8494
|
}
|
|
8449
8495
|
const result = await parserFn(state);
|
|
8450
8496
|
const pseudoValue = curr.value.slice(1);
|
|
@@ -8456,11 +8502,18 @@ var pseudo = async (state) => {
|
|
|
8456
8502
|
|
|
8457
8503
|
// ../../src/query/src/index.ts
|
|
8458
8504
|
var noopFn = async (state) => state;
|
|
8505
|
+
var unsupportedName = (state) => {
|
|
8506
|
+
const text = selectorText(state.current);
|
|
8507
|
+
const name = text.replace(/^[.#]/, "");
|
|
8508
|
+
return queryError("Unsupported selector", state.current, {
|
|
8509
|
+
wanted: pseudoSelectorNames.has(name) ? `:${name}` : name ? `#${name}` : void 0
|
|
8510
|
+
});
|
|
8511
|
+
};
|
|
8459
8512
|
var selectors = {
|
|
8460
8513
|
attribute,
|
|
8461
|
-
/* c8 ignore start */
|
|
8514
|
+
/* c8 ignore start -- dss-parser reports `.foo` as an escaped tag */
|
|
8462
8515
|
class: async (state) => {
|
|
8463
|
-
throw
|
|
8516
|
+
throw unsupportedName(state);
|
|
8464
8517
|
},
|
|
8465
8518
|
/* c8 ignore end */
|
|
8466
8519
|
combinator,
|
|
@@ -8482,11 +8535,11 @@ var selectors = {
|
|
|
8482
8535
|
return state;
|
|
8483
8536
|
},
|
|
8484
8537
|
string: async (state) => {
|
|
8485
|
-
throw
|
|
8538
|
+
throw queryError("Unsupported selector", state.current);
|
|
8486
8539
|
},
|
|
8487
8540
|
tag: async (state) => {
|
|
8488
8541
|
if (state.current.value !== "{" && state.current.value !== "}") {
|
|
8489
|
-
throw
|
|
8542
|
+
throw unsupportedName(state);
|
|
8490
8543
|
}
|
|
8491
8544
|
return state;
|
|
8492
8545
|
},
|
|
@@ -8502,11 +8555,9 @@ var walk = async (state) => {
|
|
|
8502
8555
|
if (state.loose) {
|
|
8503
8556
|
return state;
|
|
8504
8557
|
}
|
|
8505
|
-
throw
|
|
8558
|
+
throw queryError(
|
|
8506
8559
|
`Missing parser for query node: ${state.current.type}`,
|
|
8507
|
-
|
|
8508
|
-
found: state.current
|
|
8509
|
-
}
|
|
8560
|
+
state.current
|
|
8510
8561
|
);
|
|
8511
8562
|
}
|
|
8512
8563
|
state = await parserFn(state);
|
|
@@ -1745,6 +1745,23 @@ var definition = j2.heading("Configuration").description(
|
|
|
1745
1745
|
description: "Set the access level of the package",
|
|
1746
1746
|
validOptions: ["public", "restricted"]
|
|
1747
1747
|
}
|
|
1748
|
+
}).flag({
|
|
1749
|
+
"git-tag-version": {
|
|
1750
|
+
description: `Commit and tag the version change made by \`vlt version\`.
|
|
1751
|
+
|
|
1752
|
+
Set \`--no-git-tag-version\` to bump the version in
|
|
1753
|
+
\`package.json\` without touching git at all, so that a
|
|
1754
|
+
series of bumps can be committed together.`,
|
|
1755
|
+
default: true
|
|
1756
|
+
},
|
|
1757
|
+
commit: {
|
|
1758
|
+
description: `Create the version commit in \`vlt version\`.
|
|
1759
|
+
|
|
1760
|
+
Set \`--no-commit\` to leave the bumped \`package.json\`
|
|
1761
|
+
uncommitted while still creating the git tag. Implied by
|
|
1762
|
+
\`--no-git-tag-version\`.`,
|
|
1763
|
+
default: true
|
|
1764
|
+
}
|
|
1748
1765
|
}).opt({
|
|
1749
1766
|
otp: {
|
|
1750
1767
|
description: `Provide an OTP to use when publishing a package.`
|
|
@@ -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
|
PackageInfoClient
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-P5S2TFCF.js";
|
|
15
15
|
import {
|
|
16
16
|
Monorepo,
|
|
17
17
|
PackageJson,
|
|
18
18
|
PathScurry
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-USTJECVS.js";
|
|
20
20
|
import {
|
|
21
21
|
resetCaches
|
|
22
22
|
} from "./chunk-YOE3VZFX.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getCommand,
|
|
28
28
|
isRecordField,
|
|
29
29
|
recordFields
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-MNK55XSE.js";
|
|
31
31
|
import {
|
|
32
32
|
find,
|
|
33
33
|
load,
|