@vltpkg/cli-js 1.0.0-rc.32 → 1.0.0-rc.34
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-SQZRJLJA.js → access-SXQICNAN.js} +23 -12
- package/{bugs-BMZ5UERM.js → bugs-OOPMFRCI.js} +19 -17
- package/{build-LGQI6OGM.js → build-HDXI5OA7.js} +13 -9
- package/{cache-JWHNATAX.js → cache-RW4Y4XNQ.js} +19 -14
- package/cache-unzip-src-unzip.js +434 -428
- package/{chunk-6YXVQ5HC.js → chunk-2PLIV3N3.js} +1 -27
- package/{chunk-G6PG3AGN.js → chunk-3SQ5Y324.js} +11 -8
- package/{chunk-ZUP6UTME.js → chunk-4RZDJQ5U.js} +42 -61
- package/{chunk-M2WD7IBO.js → chunk-4ZXA6RLP.js} +1 -1
- package/{chunk-R44FR7BY.js → chunk-7NHXV6AH.js} +439 -433
- package/{chunk-SIXXDCBI.js → chunk-CCQYIYTA.js} +7 -7
- package/{chunk-FXDRM4ZO.js → chunk-CLVRCGOZ.js} +247 -235
- package/{chunk-YCQTLBWF.js → chunk-CNSTFT7U.js} +1 -1
- package/{chunk-7XE7OES7.js → chunk-D5CP6O6G.js} +3 -3
- package/{chunk-YQXDHMHG.js → chunk-E5YE7UTZ.js} +3167 -2991
- package/chunk-E74WGW5C.js +49 -0
- package/{chunk-DFNHGGGV.js → chunk-EFWPI6IY.js} +1 -1
- package/{chunk-5UXEBLLT.js → chunk-EHEVBLDB.js} +68 -7
- package/{chunk-JBVLIV37.js → chunk-EQ633HIM.js} +14 -13
- package/{chunk-DM3WGEVB.js → chunk-F2FKLPZD.js} +7 -7
- package/chunk-FAG776ZD.js +137 -0
- package/{chunk-HQ4US6G3.js → chunk-FWKQ7YDF.js} +1049 -980
- package/chunk-HB7CKTYO.js +75 -0
- package/{chunk-KRGA5VLT.js → chunk-ICJRCXSG.js} +31 -27
- package/{chunk-FBTBHRPG.js → chunk-LCDBW6IT.js} +1 -1
- package/{chunk-IAKUGHGT.js → chunk-MT76WHSM.js} +1 -1
- package/{chunk-3TVABXAG.js → chunk-MU7Y4R5E.js} +3 -3
- package/{chunk-JKAZKVQU.js → chunk-PW6S6AIO.js} +15 -11
- package/{chunk-DI2CYYXF.js → chunk-U6DM3ROE.js} +706 -442
- package/chunk-UBLFPJHV.js +40 -0
- package/{chunk-SDBTQF2Y.js → chunk-UCD3RJYG.js} +5 -5
- package/{chunk-XFQ2EH5D.js → chunk-VM2RMMY4.js} +3 -3
- package/{chunk-DIKKTUBV.js → chunk-VZ7UNZHR.js} +3 -3
- package/{chunk-2V4AQPBR.js → chunk-WP6CYBPM.js} +81 -46
- package/{chunk-LEX7YPHR.js → chunk-WXMYKCQW.js} +118 -92
- package/{chunk-LRPTCGTW.js → chunk-XA47WS4N.js} +11 -15
- package/{chunk-NLFBANVO.js → chunk-Y7CQIZ7Y.js} +106 -150
- package/{ci-FQJANSQW.js → ci-MTYU2K2A.js} +14 -10
- package/cli-package.json +6 -2
- package/{config-4KQTTXJH.js → config-6NXV2BXW.js} +15 -13
- package/{config-LRL3N7TN.js → config-TVAXCTQO.js} +13 -11
- package/{create-KN6AXEA6.js → create-LXI5DCDW.js} +24 -19
- package/{deprecate-P26WHVFB.js → deprecate-2AQBL5XT.js} +22 -14
- package/{devtools-6NFQDW4L.js → devtools-HGLF4KAO.js} +82 -28
- package/{dist-tag-FA2BT7SA.js → dist-tag-BFSYLRIH.js} +16 -9
- package/{docs-OAPIY4SC.js → docs-ADPJ4B4C.js} +19 -17
- package/{exec-CVZGHJZS.js → exec-GMS54RAC.js} +24 -19
- package/{exec-cache-3AHODVRN.js → exec-cache-R5LVZL5Z.js} +22 -17
- package/{exec-local-I4OJX76E.js → exec-local-TVCLZGIM.js} +17 -14
- package/{help-QFIQSPNS.js → help-6CECUD6C.js} +5 -4
- package/{init-QLADIAP5.js → init-XXFLGYVP.js} +12 -10
- package/{install-B7CU2BLC.js → install-6KMXYSF5.js} +27 -12
- package/{list-OTFV3LOM.js → list-RUO3SUKY.js} +20 -15
- package/{login-LG2ZOIDQ.js → login-6I2CGO7I.js} +23 -9
- package/{logout-KUI773AM.js → logout-JTU4BJKH.js} +19 -8
- package/{pack-C55TTBIQ.js → pack-NCWH2TUA.js} +17 -13
- package/package.json +8 -1
- package/{ping-VNUOC26G.js → ping-4MEAC2WD.js} +17 -10
- package/{pkg-H4RJEBK5.js → pkg-ENSKG6G7.js} +13 -11
- package/{profile-DIJ5JUSE.js → profile-62YHNFSO.js} +16 -8
- package/{publish-XF2TRBPH.js → publish-PPY724N2.js} +58 -23
- package/{query-BGP5JMJ7.js → query-NLWXKOOT.js} +61 -15
- package/registry-QGI44LG4.js +117 -0
- package/registry-client-package.json +6 -2
- package/registry-client-src-revalidate.js +1245 -977
- package/{repo-NCEHK7KB.js → repo-BFRAXIVU.js} +19 -17
- package/{reporter-OB6SNHOZ.js → reporter-2XBYWAVU.js} +3 -2
- package/{run-ZNJJYEJF.js → run-7O65747G.js} +17 -14
- package/{run-exec-F5OV7MVN.js → run-exec-2OYWHL6K.js} +19 -14
- package/security-archive-src-update-expired.js +16 -11
- package/setup-MMIDAIJI.js +181 -0
- package/{src-M3WI7TSB.js → src-OK3KHDYR.js} +25 -17
- package/{token-KXCVRJGF.js → token-VLVXUW54.js} +20 -9
- package/{uninstall-33SUWR6K.js → uninstall-TAG6QIAG.js} +15 -11
- package/{unpublish-7AZPBZF2.js → unpublish-Y4L5J2IA.js} +17 -9
- package/{update-2EQF6IKZ.js → update-RYH4RKBS.js} +14 -10
- package/{version-HFYI3SEX.js → version-COHB32ON.js} +12 -10
- package/{view-C5OT36OB.js → view-P7U4MF43.js} +18 -14
- 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-KKFV3XR6.js → whoami-47MVFMZC.js} +19 -8
- package/chunk-FXIBCUIM.js +0 -73
|
@@ -0,0 +1,75 @@
|
|
|
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
|
+
error
|
|
14
|
+
} from "./chunk-WZWDS3W4.js";
|
|
15
|
+
import {
|
|
16
|
+
__glob
|
|
17
|
+
} from "./chunk-PZLD7RTK.js";
|
|
18
|
+
|
|
19
|
+
// import("./commands/**/*.ts") in ../../src/cli-sdk/src/load-command.ts
|
|
20
|
+
var globImport_commands_ts = __glob({
|
|
21
|
+
"./commands/access.ts": () => import("./access-SXQICNAN.js"),
|
|
22
|
+
"./commands/bugs.ts": () => import("./bugs-OOPMFRCI.js"),
|
|
23
|
+
"./commands/build.ts": () => import("./build-HDXI5OA7.js"),
|
|
24
|
+
"./commands/cache.ts": () => import("./cache-RW4Y4XNQ.js"),
|
|
25
|
+
"./commands/ci.ts": () => import("./ci-MTYU2K2A.js"),
|
|
26
|
+
"./commands/config.ts": () => import("./config-6NXV2BXW.js"),
|
|
27
|
+
"./commands/create.ts": () => import("./create-LXI5DCDW.js"),
|
|
28
|
+
"./commands/deprecate.ts": () => import("./deprecate-2AQBL5XT.js"),
|
|
29
|
+
"./commands/dist-tag.ts": () => import("./dist-tag-BFSYLRIH.js"),
|
|
30
|
+
"./commands/docs.ts": () => import("./docs-ADPJ4B4C.js"),
|
|
31
|
+
"./commands/exec-cache.ts": () => import("./exec-cache-R5LVZL5Z.js"),
|
|
32
|
+
"./commands/exec-local.ts": () => import("./exec-local-TVCLZGIM.js"),
|
|
33
|
+
"./commands/exec.ts": () => import("./exec-GMS54RAC.js"),
|
|
34
|
+
"./commands/help.ts": () => import("./help-6CECUD6C.js"),
|
|
35
|
+
"./commands/init.ts": () => import("./init-XXFLGYVP.js"),
|
|
36
|
+
"./commands/install.ts": () => import("./install-6KMXYSF5.js"),
|
|
37
|
+
"./commands/install/reporter.ts": () => import("./reporter-2XBYWAVU.js"),
|
|
38
|
+
"./commands/list.ts": () => import("./list-RUO3SUKY.js"),
|
|
39
|
+
"./commands/login.ts": () => import("./login-6I2CGO7I.js"),
|
|
40
|
+
"./commands/logout.ts": () => import("./logout-JTU4BJKH.js"),
|
|
41
|
+
"./commands/pack.ts": () => import("./pack-NCWH2TUA.js"),
|
|
42
|
+
"./commands/ping.ts": () => import("./ping-4MEAC2WD.js"),
|
|
43
|
+
"./commands/pkg.ts": () => import("./pkg-ENSKG6G7.js"),
|
|
44
|
+
"./commands/profile.ts": () => import("./profile-62YHNFSO.js"),
|
|
45
|
+
"./commands/publish.ts": () => import("./publish-PPY724N2.js"),
|
|
46
|
+
"./commands/query.ts": () => import("./query-NLWXKOOT.js"),
|
|
47
|
+
"./commands/registry.ts": () => import("./registry-QGI44LG4.js"),
|
|
48
|
+
"./commands/repo.ts": () => import("./repo-BFRAXIVU.js"),
|
|
49
|
+
"./commands/run-exec.ts": () => import("./run-exec-2OYWHL6K.js"),
|
|
50
|
+
"./commands/run.ts": () => import("./run-7O65747G.js"),
|
|
51
|
+
"./commands/setup.ts": () => import("./setup-MMIDAIJI.js"),
|
|
52
|
+
"./commands/token.ts": () => import("./token-VLVXUW54.js"),
|
|
53
|
+
"./commands/uninstall.ts": () => import("./uninstall-TAG6QIAG.js"),
|
|
54
|
+
"./commands/unpublish.ts": () => import("./unpublish-Y4L5J2IA.js"),
|
|
55
|
+
"./commands/update.ts": () => import("./update-RYH4RKBS.js"),
|
|
56
|
+
"./commands/version.ts": () => import("./version-COHB32ON.js"),
|
|
57
|
+
"./commands/view.ts": () => import("./view-P7U4MF43.js"),
|
|
58
|
+
"./commands/whoami.ts": () => import("./whoami-47MVFMZC.js")
|
|
59
|
+
});
|
|
60
|
+
|
|
61
|
+
// ../../src/cli-sdk/src/load-command.ts
|
|
62
|
+
var loadCommand = async (command) => {
|
|
63
|
+
try {
|
|
64
|
+
return await globImport_commands_ts(`./commands/${command}.ts`);
|
|
65
|
+
} catch (e) {
|
|
66
|
+
throw error("Could not load command", {
|
|
67
|
+
found: command,
|
|
68
|
+
cause: e
|
|
69
|
+
});
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
export {
|
|
74
|
+
loadCommand
|
|
75
|
+
};
|
|
@@ -13,11 +13,7 @@ import {
|
|
|
13
13
|
graphRun,
|
|
14
14
|
graphRunSync,
|
|
15
15
|
joinDepIDTuple
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
Spec2 as Spec,
|
|
19
|
-
isSpec
|
|
20
|
-
} from "./chunk-JKAZKVQU.js";
|
|
16
|
+
} from "./chunk-MT76WHSM.js";
|
|
21
17
|
import {
|
|
22
18
|
load,
|
|
23
19
|
parse as parse2,
|
|
@@ -25,11 +21,15 @@ import {
|
|
|
25
21
|
walkUp
|
|
26
22
|
} from "./chunk-HTOTG4TS.js";
|
|
27
23
|
import {
|
|
28
|
-
|
|
24
|
+
I,
|
|
29
25
|
promiseSpawn,
|
|
30
26
|
ts,
|
|
31
27
|
whichSync
|
|
32
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-7NHXV6AH.js";
|
|
29
|
+
import {
|
|
30
|
+
Spec2 as Spec,
|
|
31
|
+
isSpec
|
|
32
|
+
} from "./chunk-PW6S6AIO.js";
|
|
33
33
|
import {
|
|
34
34
|
Range,
|
|
35
35
|
Version,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
normalizeManifest,
|
|
40
40
|
parse,
|
|
41
41
|
satisfies
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-2PLIV3N3.js";
|
|
43
43
|
import {
|
|
44
44
|
error
|
|
45
45
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -893,7 +893,7 @@ var fetchMethod = async (repo, _, options) => {
|
|
|
893
893
|
const revsDoc = linesToRevs(result.stdout.split("\n"));
|
|
894
894
|
return revsDoc;
|
|
895
895
|
};
|
|
896
|
-
var revsCache = new
|
|
896
|
+
var revsCache = new I({
|
|
897
897
|
max: 100,
|
|
898
898
|
ttl: 5 * 60 * 1e3,
|
|
899
899
|
allowStaleOnFetchAbort: true,
|
|
@@ -1282,7 +1282,7 @@ var range = (a, b, str) => {
|
|
|
1282
1282
|
return result;
|
|
1283
1283
|
};
|
|
1284
1284
|
|
|
1285
|
-
// ../../node_modules/.vlt/~npm~brace-expansion@5.0.
|
|
1285
|
+
// ../../node_modules/.vlt/~npm~brace-expansion@5.0.7/node_modules/brace-expansion/dist/esm/index.js
|
|
1286
1286
|
var escSlash = "\0SLASH" + Math.random() + "\0";
|
|
1287
1287
|
var escOpen = "\0OPEN" + Math.random() + "\0";
|
|
1288
1288
|
var escClose = "\0CLOSE" + Math.random() + "\0";
|
|
@@ -1353,17 +1353,19 @@ function gte(i, y) {
|
|
|
1353
1353
|
}
|
|
1354
1354
|
function expand_(str, max, isTop) {
|
|
1355
1355
|
const expansions = [];
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1356
|
+
for (; ; ) {
|
|
1357
|
+
const m = balanced("{", "}", str);
|
|
1358
|
+
if (!m)
|
|
1359
|
+
return [str];
|
|
1360
|
+
const pre = m.pre;
|
|
1361
|
+
if (/\$$/.test(m.pre)) {
|
|
1362
|
+
const post2 = m.post.length ? expand_(m.post, max, false) : [""];
|
|
1363
|
+
for (let k = 0; k < post2.length && k < max; k++) {
|
|
1364
|
+
const expansion = pre + "{" + m.body + "}" + post2[k];
|
|
1365
|
+
expansions.push(expansion);
|
|
1366
|
+
}
|
|
1367
|
+
return expansions;
|
|
1365
1368
|
}
|
|
1366
|
-
} else {
|
|
1367
1369
|
const isNumericSequence = /^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(m.body);
|
|
1368
1370
|
const isAlphaSequence = /^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(m.body);
|
|
1369
1371
|
const isSequence = isNumericSequence || isAlphaSequence;
|
|
@@ -1371,10 +1373,12 @@ function expand_(str, max, isTop) {
|
|
|
1371
1373
|
if (!isSequence && !isOptions) {
|
|
1372
1374
|
if (m.post.match(/,(?!,).*\}/)) {
|
|
1373
1375
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
1374
|
-
|
|
1376
|
+
isTop = true;
|
|
1377
|
+
continue;
|
|
1375
1378
|
}
|
|
1376
1379
|
return [str];
|
|
1377
1380
|
}
|
|
1381
|
+
const post = m.post.length ? expand_(m.post, max, false) : [""];
|
|
1378
1382
|
let n;
|
|
1379
1383
|
if (isSequence) {
|
|
1380
1384
|
n = m.body.split(/\.\./);
|
|
@@ -1401,7 +1405,7 @@ function expand_(str, max, isTop) {
|
|
|
1401
1405
|
}
|
|
1402
1406
|
const pad = n.some(isPadded);
|
|
1403
1407
|
N = [];
|
|
1404
|
-
for (let i = x; test(i, y); i += incr) {
|
|
1408
|
+
for (let i = x; test(i, y) && N.length < max; i += incr) {
|
|
1405
1409
|
let c;
|
|
1406
1410
|
if (isAlphaSequence) {
|
|
1407
1411
|
c = String.fromCharCode(i);
|
|
@@ -1438,8 +1442,8 @@ function expand_(str, max, isTop) {
|
|
|
1438
1442
|
}
|
|
1439
1443
|
}
|
|
1440
1444
|
}
|
|
1445
|
+
return expansions;
|
|
1441
1446
|
}
|
|
1442
|
-
return expansions;
|
|
1443
1447
|
}
|
|
1444
1448
|
|
|
1445
1449
|
// ../../node_modules/.vlt/~npm~minimatch@10.2.5/node_modules/minimatch/dist/esm/assert-valid-pattern.js
|
|
@@ -3965,7 +3969,7 @@ var ENOREALPATH = 512;
|
|
|
3965
3969
|
var ENOCHILD = ENOTDIR | ENOENT | ENOREALPATH;
|
|
3966
3970
|
var TYPEMASK = 1023;
|
|
3967
3971
|
var entToType = (s) => s.isFile() ? IFREG : s.isDirectory() ? IFDIR : s.isSymbolicLink() ? IFLNK : s.isCharacterDevice() ? IFCHR : s.isBlockDevice() ? IFBLK : s.isSocket() ? IFSOCK : s.isFIFO() ? IFIFO : UNKNOWN;
|
|
3968
|
-
var normalizeCache = new
|
|
3972
|
+
var normalizeCache = new I({ max: 2 ** 12 });
|
|
3969
3973
|
var normalize = (s) => {
|
|
3970
3974
|
const c = normalizeCache.get(s);
|
|
3971
3975
|
if (c)
|
|
@@ -3974,7 +3978,7 @@ var normalize = (s) => {
|
|
|
3974
3978
|
normalizeCache.set(s, n);
|
|
3975
3979
|
return n;
|
|
3976
3980
|
};
|
|
3977
|
-
var normalizeNocaseCache = new
|
|
3981
|
+
var normalizeNocaseCache = new I({ max: 2 ** 12 });
|
|
3978
3982
|
var normalizeNocase = (s) => {
|
|
3979
3983
|
const c = normalizeNocaseCache.get(s);
|
|
3980
3984
|
if (c)
|
|
@@ -3983,12 +3987,12 @@ var normalizeNocase = (s) => {
|
|
|
3983
3987
|
normalizeNocaseCache.set(s, n);
|
|
3984
3988
|
return n;
|
|
3985
3989
|
};
|
|
3986
|
-
var ResolveCache = class extends
|
|
3990
|
+
var ResolveCache = class extends I {
|
|
3987
3991
|
constructor() {
|
|
3988
3992
|
super({ max: 256 });
|
|
3989
3993
|
}
|
|
3990
3994
|
};
|
|
3991
|
-
var ChildrenCache = class extends
|
|
3995
|
+
var ChildrenCache = class extends I {
|
|
3992
3996
|
constructor(maxSize = 16 * 1024) {
|
|
3993
3997
|
super({
|
|
3994
3998
|
maxSize,
|
|
@@ -11,16 +11,16 @@ 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-EHEVBLDB.js";
|
|
15
15
|
import {
|
|
16
16
|
mermaidOutput
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-E5YE7UTZ.js";
|
|
18
18
|
import {
|
|
19
19
|
ViewClass
|
|
20
20
|
} from "./chunk-RXNA2XCX.js";
|
|
21
21
|
import {
|
|
22
22
|
urlOpen
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-CNSTFT7U.js";
|
|
24
24
|
|
|
25
25
|
// ../../src/cli-sdk/src/mermaid-image-view.ts
|
|
26
26
|
var MermaidImageView = class extends ViewClass {
|
|
@@ -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
|
parseRange
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-2PLIV3N3.js";
|
|
15
15
|
import {
|
|
16
16
|
error,
|
|
17
17
|
typeError
|
|
@@ -19,10 +19,8 @@ import {
|
|
|
19
19
|
|
|
20
20
|
// ../../src/spec/src/browser.ts
|
|
21
21
|
var kCustomInspect = /* @__PURE__ */ Symbol.for("nodejs.util.inspect.custom");
|
|
22
|
-
var defaultRegistry = "https://registry.npmjs.org/";
|
|
23
22
|
var defaultRegistryName = "npm";
|
|
24
23
|
var defaultRegistries = {
|
|
25
|
-
npm: defaultRegistry,
|
|
26
24
|
gh: "https://npm.pkg.github.com/"
|
|
27
25
|
};
|
|
28
26
|
var defaultJsrRegistries = { jsr: "https://npm.jsr.io/" };
|
|
@@ -51,19 +49,21 @@ var getOptions = (options) => ({
|
|
|
51
49
|
catalog: {},
|
|
52
50
|
catalogs: {},
|
|
53
51
|
...options,
|
|
52
|
+
// built-in aliases are user/service-overridable: user config wins
|
|
54
53
|
"jsr-registries": {
|
|
55
|
-
...
|
|
56
|
-
...
|
|
54
|
+
...defaultJsrRegistries,
|
|
55
|
+
...options?.["jsr-registries"] ?? {}
|
|
57
56
|
},
|
|
58
|
-
registry: options?.registry
|
|
57
|
+
registry: options?.registry,
|
|
58
|
+
"default-registry-alias": options?.["default-registry-alias"] ?? defaultRegistryName,
|
|
59
59
|
"scoped-registries": options?.["scoped-registries"] ?? {},
|
|
60
60
|
"git-hosts": options?.["git-hosts"] ? {
|
|
61
61
|
...defaultGitHosts,
|
|
62
62
|
...options["git-hosts"]
|
|
63
63
|
} : defaultGitHosts,
|
|
64
64
|
registries: {
|
|
65
|
-
...
|
|
66
|
-
...
|
|
65
|
+
...defaultRegistries,
|
|
66
|
+
...options?.registries ?? {}
|
|
67
67
|
},
|
|
68
68
|
"git-host-archives": options?.["git-host-archives"] ? {
|
|
69
69
|
...defaultGitHostArchives,
|
|
@@ -411,9 +411,14 @@ var Spec = class _Spec {
|
|
|
411
411
|
this.distTag = this.bareSpec;
|
|
412
412
|
}
|
|
413
413
|
this.registrySpec = this.bareSpec;
|
|
414
|
-
const {
|
|
414
|
+
const {
|
|
415
|
+
"scoped-registries": scopeRegs,
|
|
416
|
+
registry,
|
|
417
|
+
registries,
|
|
418
|
+
"default-registry-alias": defaultAlias
|
|
419
|
+
} = this.options;
|
|
415
420
|
const scopeReg = this.scope && scopeRegs[this.scope];
|
|
416
|
-
this.registry = scopeReg ?? registry;
|
|
421
|
+
this.registry = scopeReg ?? registry ?? registries[defaultAlias];
|
|
417
422
|
for (const r of Object.values(this.options["jsr-registries"])) {
|
|
418
423
|
if (this.registry === r) return;
|
|
419
424
|
}
|
|
@@ -696,7 +701,6 @@ Spec2.nodejsDependencies = {
|
|
|
696
701
|
};
|
|
697
702
|
|
|
698
703
|
export {
|
|
699
|
-
defaultRegistry,
|
|
700
704
|
defaultRegistryName,
|
|
701
705
|
defaultRegistries,
|
|
702
706
|
defaultJsrRegistries,
|