@vltpkg/cli-js 1.0.2 → 1.0.4
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-DB347PPG.js → access-RYNHM3DJ.js} +9 -7
- package/{bugs-QBKI62J6.js → bugs-ZHOC4U52.js} +19 -18
- package/{build-EFJ3FFGU.js → build-HTM6Z7OQ.js} +12 -10
- package/{cache-BQJCMDJN.js → cache-74GIE5TO.js} +23 -21
- package/cache-unzip-src-unzip.js +23 -1
- package/{chunk-3HUTU5SO.js → chunk-2CLRMD5A.js} +2483 -1847
- package/{chunk-RXNA2XCX.js → chunk-4KCU2KZL.js} +8 -1
- package/{chunk-5PFGKHIS.js → chunk-A2EWSQPE.js} +10 -10
- package/{chunk-TM4LHSZV.js → chunk-AIQ7Z62O.js} +3 -3
- package/chunk-AK3RSABL.js +903 -0
- package/{chunk-YRMICBI4.js → chunk-AMDP7LYB.js} +5 -5
- package/chunk-BJBFEQRR.js +667 -0
- package/{chunk-ULCDRVY2.js → chunk-E737X73P.js} +38 -24
- package/{chunk-5OGQND6H.js → chunk-GXWZ5T4W.js} +3 -1
- package/{chunk-CNSTFT7U.js → chunk-HAYXR3MW.js} +1 -1
- package/{chunk-Q46JRSZU.js → chunk-IITIX4ID.js} +22 -3
- package/{chunk-L34LR5DV.js → chunk-JOEHZSS7.js} +4 -4
- package/chunk-LPIBYUMT.js +854 -0
- package/{chunk-YDUHQU7N.js → chunk-MZIM7X37.js} +3 -3
- package/{chunk-FM5DQZVN.js → chunk-OCJDISSI.js} +2 -2
- package/{chunk-47IR6Z6C.js → chunk-OR5LSCSK.js} +160 -105
- package/{chunk-F2GLBPGQ.js → chunk-PDLEQEZ3.js} +132 -81
- package/{chunk-42UTZKAU.js → chunk-R55OHZ2R.js} +8 -8
- package/{chunk-DEMBZY23.js → chunk-RB6SUM6U.js} +11 -11
- package/chunk-SKQHW56B.js +75 -0
- package/{chunk-ONVLPT73.js → chunk-T4GYDWUJ.js} +1 -1
- package/{chunk-BSB4XGBB.js → chunk-VB3IWNHX.js} +1 -1
- package/chunk-VE6CCH33.js +3000 -0
- package/{chunk-3MBSXZ62.js → chunk-WNDUKE42.js} +24 -17
- package/{chunk-NS4VFXHX.js → chunk-XU5SMHXP.js} +1 -1
- package/{chunk-CTDFRLS4.js → chunk-YRKCPGWZ.js} +5 -5
- package/{chunk-FWKQ7YDF.js → chunk-ZWKI5OSF.js} +118 -117
- package/{ci-A22A6TCQ.js → ci-XT7IAX2Y.js} +17 -16
- package/cli-package.json +1 -1
- package/{config-VOLRKFYD.js → config-B2LF4SJ7.js} +16 -19
- package/{config-JL4TW2AV.js → config-SRLA2XPZ.js} +10 -13
- package/{create-SL7HEXCS.js → create-VKNML6FC.js} +23 -23
- package/{deprecate-ZK525LQW.js → deprecate-IM4HEDIP.js} +17 -15
- package/{devtools-HGLF4KAO.js → devtools-66MVSNF5.js} +30 -30
- package/{dist-tag-FY3FB5VH.js → dist-tag-EKVJAQ66.js} +11 -9
- package/{docs-6BPWZJFW.js → docs-4DHMAMOU.js} +19 -18
- package/{exec-JZ5J7DI7.js → exec-7C74Z3WB.js} +23 -23
- package/{exec-cache-VGSXKZVF.js → exec-cache-QTUCQWSA.js} +22 -22
- package/{exec-local-GPZUSOSM.js → exec-local-ZCNI2JHK.js} +20 -18
- package/{help-XI7TNIRU.js → help-IKRPBT2R.js} +3 -3
- package/{init-6KWM7CDI.js → init-PCQ4YK7R.js} +12 -10
- package/{install-4VLOKCWH.js → install-OAQ4K3XX.js} +18 -17
- package/{list-3VLGWGKU.js → list-WYBKBCZU.js} +20 -18
- package/{login-3DGPSWCG.js → login-TTRCQ43Z.js} +9 -7
- package/{logout-DBFMZC6J.js → logout-3J77F4OO.js} +9 -7
- package/{pack-LHNYEZ5W.js → pack-ZLFGYGVZ.js} +16 -14
- package/package.json +1 -1
- package/{ping-VLLX5LIH.js → ping-IRLV5C4D.js} +9 -7
- package/{pkg-FYPUMX7U.js → pkg-EKOQ4XKM.js} +13 -11
- package/{profile-FOQ74TB7.js → profile-7UBKGJBP.js} +9 -7
- package/{publish-DFURU7DW.js → publish-2ODYT4R2.js} +21 -19
- package/{query-NC3EABMW.js → query-ADSAKEK4.js} +20 -18
- package/{registry-5DUFCPD6.js → registry-CZPFR3OF.js} +3 -3
- package/registry-client-package.json +1 -1
- package/registry-client-src-revalidate.js +1263 -610
- package/{repo-IZXACKQ2.js → repo-3THXRT64.js} +19 -18
- package/{chunk-UVZJFBYE.js → reporter-6BFJCFVZ.js} +87 -87
- package/{run-RDFVO7FY.js → run-2QLSVP6M.js} +20 -18
- package/{run-exec-OGMXEVN5.js → run-exec-VYD2Q4BD.js} +20 -18
- package/security-archive-src-update-expired.js +11 -2
- package/{setup-KTJQPDJB.js → setup-TDX5NXUN.js} +15 -13
- package/{src-BJU7XZNK.js → src-AVMBIRBC.js} +22 -23
- package/{reporter-UU654STB.js → src-SWL4UPPI.js} +42 -7
- package/src-X66SVM5T.js +933 -0
- package/{token-SKICECA4.js → token-3RDRZ4AO.js} +9 -7
- package/{uninstall-MTZJ33TO.js → uninstall-CNAFZTLA.js} +18 -17
- package/{unpublish-3QBJZFHQ.js → unpublish-7YHQQYZG.js} +12 -10
- package/{update-TH477PKA.js → update-3W27EZWN.js} +17 -16
- package/{version-YIBQZLQS.js → version-K37LT6GZ.js} +13 -11
- package/{view-FG74OAOV.js → view-ZVAYKUL2.js} +18 -20
- 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-LHJ4PRJQ.js → whoami-IOUW56D6.js} +9 -7
- package/chunk-7NHXV6AH.js +0 -4488
- package/chunk-WAFERMRI.js +0 -1663
- package/chunk-ZLZ4XF46.js +0 -75
- package/{chunk-Y7CQIZ7Y.js → chunk-FEIPJIEN.js} +3 -3
|
@@ -13,16 +13,19 @@ import {
|
|
|
13
13
|
asDepID,
|
|
14
14
|
baseDepID,
|
|
15
15
|
splitDepID
|
|
16
|
-
} from "./chunk-
|
|
17
|
-
import {
|
|
18
|
-
I
|
|
19
|
-
} from "./chunk-7NHXV6AH.js";
|
|
16
|
+
} from "./chunk-OCJDISSI.js";
|
|
20
17
|
import {
|
|
21
18
|
loadPackageJson
|
|
22
19
|
} from "./chunk-E74WGW5C.js";
|
|
20
|
+
import {
|
|
21
|
+
I
|
|
22
|
+
} from "./chunk-LPIBYUMT.js";
|
|
23
23
|
import {
|
|
24
24
|
XDG
|
|
25
25
|
} from "./chunk-XNLSTHDK.js";
|
|
26
|
+
import {
|
|
27
|
+
defaultRegistryName
|
|
28
|
+
} from "./chunk-IITIX4ID.js";
|
|
26
29
|
import {
|
|
27
30
|
error
|
|
28
31
|
} from "./chunk-WZWDS3W4.js";
|
|
@@ -250,16 +253,20 @@ var __CODE_SPLIT_SCRIPT_NAME = resolve(import.meta.dirname, "security-archive-sr
|
|
|
250
253
|
// ../../src/security-archive/src/index.ts
|
|
251
254
|
var SOCKET_API_V0_URL = "https://api.socket.dev/v0/purl?alerts=true";
|
|
252
255
|
var SOCKET_PUBLIC_API_TOKEN = "sktsec_t_--RAN5U4ivauy4w37-6aoKyYPDt5ZbaT5JBVMqiwKo_api";
|
|
253
|
-
var
|
|
254
|
-
var
|
|
255
|
-
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
256
|
+
var npmRegistryURL = "https://registry.npmjs.org/";
|
|
257
|
+
var normalizeRegistryURL = (url) => url.endsWith("/") ? url : `${url}/`;
|
|
258
|
+
var nodeRegistryURL = (node) => {
|
|
259
|
+
const [type, reg] = splitDepID(node.id);
|
|
260
|
+
if (type !== "registry") return;
|
|
261
|
+
const url = /^https?:\/\//.test(reg) ? reg : node.options.registries?.[reg];
|
|
262
|
+
return url ? normalizeRegistryURL(url) : void 0;
|
|
263
|
+
};
|
|
264
|
+
var usesNpmRegistry = (node) => {
|
|
265
|
+
const origin = nodeRegistryURL(node);
|
|
266
|
+
if (!origin) return false;
|
|
267
|
+
if (origin === npmRegistryURL) return true;
|
|
268
|
+
const npmAlias = node.options.registries?.[defaultRegistryName];
|
|
269
|
+
return !!npmAlias && normalizeRegistryURL(npmAlias) === origin;
|
|
263
270
|
};
|
|
264
271
|
var { version } = loadPackageJson(
|
|
265
272
|
import.meta.filename,
|
|
@@ -412,7 +419,7 @@ var SecurityArchive = class _SecurityArchive extends I {
|
|
|
412
419
|
const queue = /* @__PURE__ */ new Set();
|
|
413
420
|
for (const node of this.#nodesByID.values()) {
|
|
414
421
|
const normalizedId = baseDepID(node.id);
|
|
415
|
-
if (
|
|
422
|
+
if (usesNpmRegistry(node) && !this.has(normalizedId) && !this.#expired.has(normalizedId)) {
|
|
416
423
|
const purl = `pkg:npm/${node.name}@${node.version}`;
|
|
417
424
|
queue.add({ purl });
|
|
418
425
|
}
|
|
@@ -512,12 +519,12 @@ var SecurityArchive = class _SecurityArchive extends I {
|
|
|
512
519
|
}
|
|
513
520
|
}
|
|
514
521
|
/**
|
|
515
|
-
* Validates that all
|
|
522
|
+
* Validates that all npm-ecosystem packages in the nodes
|
|
516
523
|
* have a valid report data in the current in-memory cache.
|
|
517
524
|
*/
|
|
518
525
|
#validateReportData() {
|
|
519
526
|
for (const node of this.#nodesByID.values()) {
|
|
520
|
-
if (
|
|
527
|
+
if (usesNpmRegistry(node)) {
|
|
521
528
|
if (!this.has(baseDepID(node.id))) {
|
|
522
529
|
this.ok = false;
|
|
523
530
|
return;
|
|
@@ -13,17 +13,17 @@ import {
|
|
|
13
13
|
Ct,
|
|
14
14
|
Qn,
|
|
15
15
|
require_lib
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZWKI5OSF.js";
|
|
17
17
|
import {
|
|
18
18
|
minimatch
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-PDLEQEZ3.js";
|
|
20
|
+
import {
|
|
21
|
+
Spec
|
|
22
|
+
} from "./chunk-XU5SMHXP.js";
|
|
20
23
|
import {
|
|
21
24
|
parse,
|
|
22
25
|
stringify
|
|
23
26
|
} from "./chunk-HTOTG4TS.js";
|
|
24
|
-
import {
|
|
25
|
-
Spec
|
|
26
|
-
} from "./chunk-NS4VFXHX.js";
|
|
27
27
|
import {
|
|
28
28
|
error
|
|
29
29
|
} from "./chunk-WZWDS3W4.js";
|