@vltpkg/cli-js 1.0.7 → 1.0.9
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-OKO4MXDT.js → access-5DJJIIGD.js} +3 -3
- package/{bugs-J56QQ3CP.js → bugs-NRHU4ENC.js} +21 -13
- package/{build-CQ2E2XRO.js → build-5VZJTEBD.js} +7 -7
- package/{cache-PPEXAQT7.js → cache-QZ5XII4U.js} +5 -5
- package/chunk-2HDWM6AD.js +30 -0
- package/{chunk-ED2DDTQT.js → chunk-2YJ5MESP.js} +34 -7
- package/{chunk-CHHGSDAP.js → chunk-6NQBG3ZR.js} +3 -3
- package/{chunk-SVO3HI2G.js → chunk-6WMR7BLF.js} +6 -6
- package/{chunk-JLKFIX2H.js → chunk-A6TBJ4AB.js} +4 -4
- package/{chunk-JWWDJYSU.js → chunk-ATYE2HQV.js} +85 -25
- package/{chunk-BJBFEQRR.js → chunk-BHJT53TP.js} +1 -0
- package/{chunk-GVZRKITF.js → chunk-EBXBZ2Y5.js} +3 -3
- package/{chunk-ADYHZTEI.js → chunk-GKCU7R4B.js} +13 -6
- package/{chunk-A4EKZ32F.js → chunk-HRY5MJCA.js} +29 -7
- package/{chunk-34VLICEH.js → chunk-KCXN2GTX.js} +5 -5
- package/{chunk-3NGV7EC6.js → chunk-LHMEJF6J.js} +1183 -220
- package/{chunk-OUF2P2OD.js → chunk-MXCWH7WC.js} +17 -5
- package/{chunk-CIKUT62L.js → chunk-SBEZ7RUC.js} +2 -2
- package/{chunk-RKXQ66T4.js → chunk-USRMYD4F.js} +1 -1
- package/{chunk-SVBEF5PK.js → chunk-USTJECVS.js} +4 -4
- package/chunk-XEPCV7DP.js +75 -0
- package/{chunk-QWTGTFHN.js → chunk-XFI4THXZ.js} +1 -1
- package/{chunk-3OPNZI6G.js → chunk-YOE3VZFX.js} +8 -7
- package/{ci-WDQ4SQN6.js → ci-MBYD4AGJ.js} +7 -7
- package/cli-package.json +1 -1
- package/{config-JMARDHLW.js → config-DTZ7EWQF.js} +7 -6
- package/{config-XY5CDGTD.js → config-RQKPUW5B.js} +6 -5
- package/{create-C24ZGR6S.js → create-CYTNZ66Z.js} +11 -11
- package/{deprecate-HYHD5WQC.js → deprecate-H3L4MPZS.js} +7 -7
- package/{devtools-66MVSNF5.js → devtools-UEMPW5GG.js} +29 -29
- package/{dist-tag-RPQ5LZWM.js → dist-tag-CZHTW7C6.js} +3 -3
- package/{docs-UKQNAVM3.js → docs-Z76UCNLH.js} +21 -13
- package/{exec-FNZEVDGU.js → exec-PGPFYCAM.js} +11 -11
- package/{exec-cache-GRHS57DV.js → exec-cache-HPILZWUY.js} +9 -9
- package/{exec-local-AHDW7CKQ.js → exec-local-VKDC6XAQ.js} +9 -9
- package/{help-VDBXIWF3.js → help-QPZESL4Y.js} +1 -1
- package/{init-2ICZBLI2.js → init-MMQV6UC5.js} +7 -7
- package/{install-IFSVVRU5.js → install-KZPDV66V.js} +8 -8
- package/{list-RCAPA3OE.js → list-PJ2U4FE7.js} +18 -12
- package/{login-T42R75OV.js → login-L3D5FQGT.js} +7 -7
- package/{logout-PVR6J2AK.js → logout-SRZ574SQ.js} +3 -3
- package/{pack-HPLDE4RB.js → pack-OI5JLA3R.js} +8 -8
- package/package.json +1 -1
- package/{ping-N5U4XHUU.js → ping-VQ662NAP.js} +3 -3
- package/{pkg-VNKZX5JC.js → pkg-HNPRMTWV.js} +8 -8
- package/{profile-N7UOXZ2X.js → profile-Z7IOODZ4.js} +3 -3
- package/{publish-CRSF7NZP.js → publish-KTUUX25U.js} +11 -11
- package/{query-MEAXXYOE.js → query-MV5HKRIT.js} +18 -12
- package/registry-BMWXMQS4.js +1 -1
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +81 -21
- package/{repo-IRTGGLIC.js → repo-ZBCD65WE.js} +21 -13
- package/{reporter-Y7RMSVN4.js → reporter-SDMDYYMJ.js} +72 -72
- package/{run-I6HWURSB.js → run-QJK5LA6Q.js} +9 -9
- package/{run-exec-BV3RUWQM.js → run-exec-EAASMT5O.js} +9 -9
- package/security-archive-src-update-expired.js +6 -7
- package/{setup-U6DWTZBA.js → setup-Q7NTAV26.js} +33 -15
- package/{src-44BBCHST.js → src-MEEFRFWA.js} +3 -3
- package/{src-U4EBFPPT.js → src-MOKZQTH2.js} +163 -205
- package/{src-SXMLUOLI.js → src-YVODDQYK.js} +10 -9
- package/{token-CTUMLTQP.js → token-NQRHTTKG.js} +3 -3
- package/{uninstall-UUFXE47B.js → uninstall-E2SVGYI3.js} +16 -9
- package/{unpublish-G4NALOC6.js → unpublish-IE4KYVM4.js} +4 -4
- package/{update-BGMQQNYE.js → update-KZOWARII.js} +7 -7
- package/{version-QVFPFL6M.js → version-T6PTPZPR.js} +8 -8
- package/{view-QFYMJVBE.js → view-MVYV7YZ2.js} +6 -5
- 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-5D4XUOSP.js → whoami-A5RM2Z7Z.js} +3 -3
- package/chunk-NEFV2B5V.js +0 -75
|
@@ -20,16 +20,19 @@ import {
|
|
|
20
20
|
pickManifest,
|
|
21
21
|
resolve,
|
|
22
22
|
revs
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-USTJECVS.js";
|
|
24
24
|
import {
|
|
25
25
|
Spec
|
|
26
26
|
} from "./chunk-XKVU23NC.js";
|
|
27
27
|
import {
|
|
28
|
-
|
|
29
|
-
} from "./chunk-
|
|
28
|
+
logRequest
|
|
29
|
+
} from "./chunk-UBLFPJHV.js";
|
|
30
30
|
import {
|
|
31
31
|
asPackument
|
|
32
32
|
} from "./chunk-VFBCWAOC.js";
|
|
33
|
+
import {
|
|
34
|
+
XDG
|
|
35
|
+
} from "./chunk-XNLSTHDK.js";
|
|
33
36
|
import {
|
|
34
37
|
error
|
|
35
38
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -55,6 +58,7 @@ import {
|
|
|
55
58
|
resolve as pathResolve,
|
|
56
59
|
relative
|
|
57
60
|
} from "node:path";
|
|
61
|
+
import { debuglog } from "node:util";
|
|
58
62
|
|
|
59
63
|
// ../../src/package-info/src/rename.ts
|
|
60
64
|
import { rename as fsRename, rm } from "node:fs/promises";
|
|
@@ -76,6 +80,7 @@ var rename = platform !== "win32" ? fsRename : (async function(oldPath, newPath)
|
|
|
76
80
|
});
|
|
77
81
|
|
|
78
82
|
// ../../src/package-info/src/index.ts
|
|
83
|
+
var debug = debuglog("vlt");
|
|
79
84
|
var xdg = new XDG("vlt");
|
|
80
85
|
var delimiter = "~";
|
|
81
86
|
var manifestCacheMaxAge = 5 * 60 * 1e3;
|
|
@@ -111,7 +116,7 @@ var PackageInfoClient = class {
|
|
|
111
116
|
#tarPoolPromise;
|
|
112
117
|
async getRegistryClient() {
|
|
113
118
|
if (this.#registryClient) return this.#registryClient;
|
|
114
|
-
this.#registryClientPromise ??= import("./src-
|
|
119
|
+
this.#registryClientPromise ??= import("./src-MEEFRFWA.js").then(({ RegistryClient }) => {
|
|
115
120
|
this.#registryClient = new RegistryClient(this.options);
|
|
116
121
|
return this.#registryClient;
|
|
117
122
|
});
|
|
@@ -119,7 +124,7 @@ var PackageInfoClient = class {
|
|
|
119
124
|
}
|
|
120
125
|
async getTarPool() {
|
|
121
126
|
if (this.#tarPool) return this.#tarPool;
|
|
122
|
-
this.#tarPoolPromise ??= import("./src-
|
|
127
|
+
this.#tarPoolPromise ??= import("./src-MOKZQTH2.js").then(
|
|
123
128
|
({ Pool }) => {
|
|
124
129
|
this.#tarPool = new Pool();
|
|
125
130
|
return this.#tarPool;
|
|
@@ -192,6 +197,23 @@ var PackageInfoClient = class {
|
|
|
192
197
|
}
|
|
193
198
|
}
|
|
194
199
|
case "registry": {
|
|
200
|
+
const cached = (await this.getRegistryClient()).cachedBody(
|
|
201
|
+
r.resolved,
|
|
202
|
+
{ integrity: r.integrity }
|
|
203
|
+
);
|
|
204
|
+
if (cached) {
|
|
205
|
+
try {
|
|
206
|
+
await (await this.getTarPool()).unpack(cached.body, target);
|
|
207
|
+
logRequest(r.resolved, "cache");
|
|
208
|
+
return r;
|
|
209
|
+
} catch (er) {
|
|
210
|
+
debug(
|
|
211
|
+
"cached tarball unpack failed: %s: %s",
|
|
212
|
+
cached.path,
|
|
213
|
+
er
|
|
214
|
+
);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
195
217
|
const fetchTarball = async (useCache) => {
|
|
196
218
|
const trustIntegrity = this.#trustedIntegrities.get(r.resolved) === r.integrity;
|
|
197
219
|
const response = await (await this.getRegistryClient()).request(r.resolved, {
|
|
@@ -300,7 +322,7 @@ var PackageInfoClient = class {
|
|
|
300
322
|
const st = await stat(path);
|
|
301
323
|
if (st.isFile()) {
|
|
302
324
|
try {
|
|
303
|
-
await (await this.getTarPool()).
|
|
325
|
+
await (await this.getTarPool()).unpackFile(path, target);
|
|
304
326
|
} catch (er) {
|
|
305
327
|
throw this.#resolveError(
|
|
306
328
|
spec,
|
|
@@ -653,7 +675,7 @@ var PackageInfoClient = class {
|
|
|
653
675
|
const s = spec;
|
|
654
676
|
return await this.#tmpdir(async (dir) => {
|
|
655
677
|
try {
|
|
656
|
-
await (await this.getTarPool()).
|
|
678
|
+
await (await this.getTarPool()).unpackFile(path, dir);
|
|
657
679
|
} catch (er) {
|
|
658
680
|
throw this.#resolveError(
|
|
659
681
|
s,
|
|
@@ -10,12 +10,13 @@ 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
|
+
addKey,
|
|
13
14
|
asDependency
|
|
14
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-LHMEJF6J.js";
|
|
15
16
|
import {
|
|
16
17
|
joinDepIDTuple,
|
|
17
18
|
splitDepID
|
|
18
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-YOE3VZFX.js";
|
|
19
20
|
import {
|
|
20
21
|
Spec
|
|
21
22
|
} from "./chunk-XKVU23NC.js";
|
|
@@ -70,7 +71,6 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
70
71
|
const type = getType(config.values);
|
|
71
72
|
const importers = getWorkspaceImporters(config.values, monorepo);
|
|
72
73
|
const specOptions = config.options;
|
|
73
|
-
const getName = (s) => s.name === "(unknown)" ? s.spec : s.name;
|
|
74
74
|
const parsedItems = [];
|
|
75
75
|
let hasFileSpecs = false;
|
|
76
76
|
for (const item of items) {
|
|
@@ -93,7 +93,7 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
93
93
|
monorepo
|
|
94
94
|
);
|
|
95
95
|
importerDeps.set(
|
|
96
|
-
|
|
96
|
+
addKey(rebased),
|
|
97
97
|
asDependency({ spec: rebased, type: depType })
|
|
98
98
|
);
|
|
99
99
|
}
|
|
@@ -103,7 +103,7 @@ var parseAddArgs = (config, scurry, monorepo) => {
|
|
|
103
103
|
const newDependencies = /* @__PURE__ */ new Map();
|
|
104
104
|
for (const { spec, type: depType } of parsedItems) {
|
|
105
105
|
newDependencies.set(
|
|
106
|
-
|
|
106
|
+
addKey(spec),
|
|
107
107
|
asDependency({ spec, type: depType })
|
|
108
108
|
);
|
|
109
109
|
}
|