@vltpkg/cli-js 1.0.0-rc.27 → 1.0.0-rc.29

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.
Files changed (85) hide show
  1. package/access-6HRR4HXE.js +293 -0
  2. package/{bugs-CS34LDPD.js → bugs-2CAZQ32S.js} +19 -22
  3. package/{build-XHEFAWMN.js → build-OAWTNBMS.js} +10 -13
  4. package/{cache-LII2V5IM.js → cache-JTAFST6T.js} +14 -15
  5. package/cache-unzip-src-unzip.js +606 -575
  6. package/{chunk-D27QPHKI.js → chunk-2V4AQPBR.js} +67 -20
  7. package/{chunk-JQHMLTO5.js → chunk-3MWZTKGK.js} +419 -328
  8. package/{chunk-DJBBJDHI.js → chunk-7RZL7BZI.js} +159 -74
  9. package/chunk-7WHVJ56C.js +73 -0
  10. package/{chunk-LAG2R3YJ.js → chunk-BW6C3YUV.js} +6 -6
  11. package/{chunk-6YTJVEK2.js → chunk-CLDF5XLG.js} +11 -11
  12. package/{chunk-DYL7AFY7.js → chunk-CPM47YUH.js} +5 -3
  13. package/{chunk-QWWYZ3TT.js → chunk-D2MVJDUA.js} +1 -1
  14. package/{chunk-5E5GX4G6.js → chunk-FBTBHRPG.js} +1 -1
  15. package/{chunk-AZLX27EM.js → chunk-FXDRM4ZO.js} +296 -258
  16. package/chunk-G2YT2GWF.js +120 -0
  17. package/{chunk-INXSTZAX.js → chunk-HAGUS4HI.js} +21 -21
  18. package/{chunk-FI5TUER7.js → chunk-HQ4US6G3.js} +681 -687
  19. package/chunk-IEISSXS4.js +711 -0
  20. package/{chunk-TRXTSZFT.js → chunk-IYO5QKUW.js} +1 -1
  21. package/{chunk-DJBVQKBB.js → chunk-K3RN3BGU.js} +5 -5
  22. package/{chunk-P2HZ4ISK.js → chunk-LPLXAVG7.js} +54 -6
  23. package/{chunk-XSUIV5NF.js → chunk-M7HPHM7B.js} +14 -12
  24. package/{chunk-BIUCOMBH.js → chunk-MAIQR5GM.js} +5 -5
  25. package/{chunk-TDTJOKF2.js → chunk-NLFBANVO.js} +8 -1
  26. package/{chunk-XWF3GJKE.js → chunk-Q3DNNTPG.js} +27 -1
  27. package/{chunk-VCSVHRCS.js → chunk-R44FR7BY.js} +1269 -590
  28. package/{chunk-QDGZZ5FZ.js → chunk-TYV4N3S3.js} +6 -692
  29. package/{chunk-LKFTVDWS.js → chunk-VPKJNCKL.js} +26 -13
  30. package/{chunk-VTZZIXYW.js → chunk-VRIS5HAW.js} +3 -3
  31. package/{chunk-S5I2UOBT.js → chunk-WX2DCAG2.js} +7 -7
  32. package/{chunk-YR47M5L7.js → chunk-XYCCQT7N.js} +34 -39
  33. package/{chunk-D7U7KDEM.js → chunk-YCQTLBWF.js} +1 -1
  34. package/{chunk-SR66HWMM.js → chunk-ZINDEKAU.js} +144 -93
  35. package/{ci-EEXNEPKP.js → ci-TOJJVHI4.js} +13 -16
  36. package/cli-package.json +2 -1
  37. package/{config-4ZFJD5AY.js → config-DVAPEE5D.js} +12 -14
  38. package/{config-6MUU2TRJ.js → config-GOV4E2KK.js} +26 -26
  39. package/{create-DEKJKPYX.js → create-NGJD7K4L.js} +24 -26
  40. package/deprecate-WROL4AHK.js +176 -0
  41. package/{devtools-NOLON5YL.js → devtools-TPMVKPB5.js} +80 -77
  42. package/dist-tag-WZXXWXMB.js +204 -0
  43. package/{docs-5EKPZANX.js → docs-YCOZFMZG.js} +19 -22
  44. package/{exec-I4YPE6YW.js → exec-URG5OWLH.js} +24 -26
  45. package/{exec-cache-XEWPABLK.js → exec-cache-KHDOEH2F.js} +21 -23
  46. package/{exec-local-OQXG2VPW.js → exec-local-52TVUL5K.js} +19 -21
  47. package/{help-OG655SE5.js → help-LNSDVBGJ.js} +4 -5
  48. package/{init-LJH2YTBM.js → init-XNMWYATA.js} +10 -8
  49. package/{install-KP2FGWOR.js → install-SKUZERZJ.js} +28 -17
  50. package/{list-ACZ3ZSIZ.js → list-XEDVFUD5.js} +19 -21
  51. package/{login-VFTRKZE2.js → login-52SA2DSI.js} +6 -9
  52. package/{logout-Z4AVG64D.js → logout-5YYHNV5W.js} +6 -9
  53. package/{pack-GPJNX7RP.js → pack-B7QZHMYP.js} +14 -17
  54. package/package.json +1 -1
  55. package/{ping-B2YS4SR3.js → ping-PRGDYDRI.js} +6 -9
  56. package/{pkg-WUYJDFSH.js → pkg-UEIQIVVD.js} +15 -19
  57. package/profile-46FKVQEL.js +129 -0
  58. package/{publish-WTMGC4ET.js → publish-HBYHOSKH.js} +17 -20
  59. package/{query-UCM35VVC.js → query-5A4YLS2C.js} +19 -21
  60. package/registry-client-package.json +1 -1
  61. package/registry-client-src-revalidate.js +1157 -1032
  62. package/{repo-MZCPTQZU.js → repo-I6X66PHD.js} +19 -22
  63. package/{reporter-XRZ37LFK.js → reporter-NUXJTV4G.js} +2 -3
  64. package/{run-CAX4Z2SC.js → run-VEZMUMVH.js} +19 -21
  65. package/{run-exec-SM42FE7W.js → run-exec-6ADY4BKH.js} +19 -21
  66. package/security-archive-src-update-expired.js +8 -7
  67. package/{src-SDJWTPCU.js → src-O32QL33R.js} +20 -22
  68. package/token-YK6L74PA.js +206 -0
  69. package/{uninstall-YYPPXM2O.js → uninstall-UBUZBV7E.js} +14 -17
  70. package/unpublish-ZHJEKT7A.js +224 -0
  71. package/{update-YFUTH33A.js → update-WO4BHJF4.js} +13 -16
  72. package/{version-SK256WED.js → version-RLESYHML.js} +13 -16
  73. package/{view-CBYGJ76J.js → view-UA5HXFXG.js} +16 -17
  74. package/vlr.js +1 -1
  75. package/vlrx.js +1 -1
  76. package/vlt.js +1 -1
  77. package/vlx.js +1 -1
  78. package/vlxl.js +1 -1
  79. package/{whoami-ZT4ZEN2C.js → whoami-7H3FPR2O.js} +6 -9
  80. package/chunk-52LBC3AX.js +0 -75
  81. package/chunk-BGQCUUCA.js +0 -667
  82. package/chunk-E74WGW5C.js +0 -49
  83. package/chunk-JLJKOF75.js +0 -40
  84. package/chunk-YP4YNE5Y.js +0 -68
  85. package/token-YCURCCNR.js +0 -103
@@ -0,0 +1,129 @@
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
+ commandUsage
14
+ } from "./chunk-FBTBHRPG.js";
15
+ import {
16
+ RegistryClient
17
+ } from "./chunk-3MWZTKGK.js";
18
+ import "./chunk-YCQTLBWF.js";
19
+ import "./chunk-R44FR7BY.js";
20
+ import "./chunk-2V4AQPBR.js";
21
+ import "./chunk-Q3DNNTPG.js";
22
+ import "./chunk-XNLSTHDK.js";
23
+ import {
24
+ error
25
+ } from "./chunk-WZWDS3W4.js";
26
+ import "./chunk-PZLD7RTK.js";
27
+
28
+ // ../../src/cli-sdk/src/commands/profile.ts
29
+ var usage = () => commandUsage({
30
+ command: "profile",
31
+ usage: "<command> [<args>]",
32
+ description: `Get or set profile properties for the authenticated user
33
+ on the configured registry.`,
34
+ subcommands: {
35
+ get: {
36
+ usage: "[<property>]",
37
+ description: "Display profile information. Optionally pass a property name to get a single value."
38
+ },
39
+ set: {
40
+ usage: "<property> <value>",
41
+ description: "Set a profile property to the given value."
42
+ }
43
+ },
44
+ options: {
45
+ registry: {
46
+ value: "<url>",
47
+ description: "Registry URL to query for profile info."
48
+ },
49
+ identity: {
50
+ value: "<name>",
51
+ description: "Identity namespace used to look up auth tokens."
52
+ },
53
+ otp: {
54
+ description: "Provide an OTP to use when updating profile properties.",
55
+ value: "<otp>"
56
+ }
57
+ }
58
+ });
59
+ var stringify = (v) => typeof v === "string" ? v : typeof v === "number" || typeof v === "boolean" ? `${v}` : v === null ? "null" : JSON.stringify(v);
60
+ var views = {
61
+ human: (result) => {
62
+ if ("property" in result) {
63
+ return stringify(result.value);
64
+ }
65
+ return Object.entries(result).map(([k, v]) => `${k}: ${stringify(v)}`).join("\n");
66
+ },
67
+ json: (r) => r
68
+ };
69
+ var command = async (conf) => {
70
+ const [sub, ...args] = conf.positionals;
71
+ switch (sub) {
72
+ case "get":
73
+ return getProfile(conf, args);
74
+ case "set":
75
+ return setProfile(conf, args);
76
+ default: {
77
+ throw error("Invalid profile subcommand", {
78
+ found: sub,
79
+ validOptions: ["get", "set"],
80
+ code: "EUSAGE"
81
+ });
82
+ }
83
+ }
84
+ };
85
+ var getProfile = async (conf, args) => {
86
+ const rc = new RegistryClient(conf.options);
87
+ const registryUrl = new URL(conf.options.registry);
88
+ const url = new URL("-/npm/v1/user", registryUrl);
89
+ const response = await rc.request(url, { useCache: false });
90
+ const data = response.json();
91
+ const [property] = args;
92
+ if (property) {
93
+ if (!(property in data)) {
94
+ throw error("Property not found in profile", {
95
+ found: property,
96
+ validOptions: Object.keys(data),
97
+ code: "EUSAGE"
98
+ });
99
+ }
100
+ return { property, value: data[property] };
101
+ }
102
+ return data;
103
+ };
104
+ var setProfile = async (conf, args) => {
105
+ const [property, ...rest] = args;
106
+ const value = rest.join(" ");
107
+ if (!property || !value) {
108
+ throw error("set requires a property name and value", {
109
+ code: "EUSAGE"
110
+ });
111
+ }
112
+ const rc = new RegistryClient(conf.options);
113
+ const registryUrl = new URL(conf.options.registry);
114
+ const url = new URL("-/npm/v1/user", registryUrl);
115
+ const response = await rc.request(url, {
116
+ method: "POST",
117
+ headers: { "content-type": "application/json" },
118
+ body: JSON.stringify({ [property]: value }),
119
+ otp: conf.options.otp,
120
+ useCache: false
121
+ });
122
+ const data = response.json();
123
+ return { property, value: data[property] };
124
+ };
125
+ export {
126
+ command,
127
+ usage,
128
+ views
129
+ };
@@ -11,42 +11,39 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  packTarball
14
- } from "./chunk-LAG2R3YJ.js";
14
+ } from "./chunk-BW6C3YUV.js";
15
15
  import {
16
16
  prettyBytes
17
17
  } from "./chunk-LRPTCGTW.js";
18
18
  import {
19
19
  createHostContextsMap
20
- } from "./chunk-VTZZIXYW.js";
20
+ } from "./chunk-VRIS5HAW.js";
21
21
  import {
22
22
  Query,
23
23
  actual,
24
24
  run
25
- } from "./chunk-DJBBJDHI.js";
26
- import "./chunk-BIUCOMBH.js";
27
- import "./chunk-52LBC3AX.js";
25
+ } from "./chunk-7RZL7BZI.js";
26
+ import "./chunk-MAIQR5GM.js";
27
+ import "./chunk-HQ4US6G3.js";
28
+ import {
29
+ minimatch
30
+ } from "./chunk-XYCCQT7N.js";
31
+ import "./chunk-TYV4N3S3.js";
32
+ import "./chunk-IEISSXS4.js";
33
+ import "./chunk-HTOTG4TS.js";
28
34
  import {
29
35
  commandUsage
30
- } from "./chunk-5E5GX4G6.js";
31
- import "./chunk-FI5TUER7.js";
36
+ } from "./chunk-FBTBHRPG.js";
32
37
  import {
33
38
  RegistryClient,
34
39
  oidc
35
- } from "./chunk-JQHMLTO5.js";
36
- import "./chunk-D7U7KDEM.js";
37
- import {
38
- minimatch
39
- } from "./chunk-YR47M5L7.js";
40
- import "./chunk-BGQCUUCA.js";
41
- import "./chunk-E74WGW5C.js";
42
- import "./chunk-QDGZZ5FZ.js";
43
- import "./chunk-VCSVHRCS.js";
44
- import "./chunk-D27QPHKI.js";
45
- import "./chunk-JLJKOF75.js";
40
+ } from "./chunk-3MWZTKGK.js";
41
+ import "./chunk-YCQTLBWF.js";
42
+ import "./chunk-R44FR7BY.js";
43
+ import "./chunk-2V4AQPBR.js";
46
44
  import {
47
45
  asError
48
- } from "./chunk-XWF3GJKE.js";
49
- import "./chunk-HTOTG4TS.js";
46
+ } from "./chunk-Q3DNNTPG.js";
50
47
  import "./chunk-XNLSTHDK.js";
51
48
  import {
52
49
  error
@@ -11,18 +11,16 @@ import {createRequire as _vlt_createRequire} from "node:module";
11
11
  var require = _vlt_createRequire(import.meta.filename);
12
12
  import {
13
13
  MermaidImageView
14
- } from "./chunk-DJBVQKBB.js";
14
+ } from "./chunk-K3RN3BGU.js";
15
15
  import {
16
16
  createDiffFilesProvider
17
17
  } from "./chunk-RIYFGX27.js";
18
- import "./chunk-P2HZ4ISK.js";
19
- import "./chunk-TDTJOKF2.js";
20
- import "./chunk-RXNA2XCX.js";
21
- import "./chunk-WGDTG44V.js";
22
- import "./chunk-TRXTSZFT.js";
23
18
  import {
24
19
  createHostContextsMap
25
- } from "./chunk-VTZZIXYW.js";
20
+ } from "./chunk-VRIS5HAW.js";
21
+ import "./chunk-LPLXAVG7.js";
22
+ import "./chunk-G2YT2GWF.js";
23
+ import "./chunk-NLFBANVO.js";
26
24
  import {
27
25
  GraphModifier,
28
26
  Query,
@@ -31,24 +29,24 @@ import {
31
29
  humanReadableOutput,
32
30
  jsonOutput,
33
31
  mermaidOutput
34
- } from "./chunk-DJBBJDHI.js";
32
+ } from "./chunk-7RZL7BZI.js";
35
33
  import {
36
34
  SecurityArchive
37
- } from "./chunk-BIUCOMBH.js";
38
- import "./chunk-52LBC3AX.js";
35
+ } from "./chunk-MAIQR5GM.js";
36
+ import "./chunk-RXNA2XCX.js";
37
+ import "./chunk-WGDTG44V.js";
38
+ import "./chunk-IYO5QKUW.js";
39
+ import "./chunk-XYCCQT7N.js";
40
+ import "./chunk-TYV4N3S3.js";
41
+ import "./chunk-IEISSXS4.js";
42
+ import "./chunk-HTOTG4TS.js";
39
43
  import {
40
44
  commandUsage
41
- } from "./chunk-5E5GX4G6.js";
42
- import "./chunk-D7U7KDEM.js";
43
- import "./chunk-YR47M5L7.js";
44
- import "./chunk-BGQCUUCA.js";
45
- import "./chunk-E74WGW5C.js";
46
- import "./chunk-QDGZZ5FZ.js";
47
- import "./chunk-VCSVHRCS.js";
48
- import "./chunk-D27QPHKI.js";
49
- import "./chunk-JLJKOF75.js";
50
- import "./chunk-XWF3GJKE.js";
51
- import "./chunk-HTOTG4TS.js";
45
+ } from "./chunk-FBTBHRPG.js";
46
+ import "./chunk-YCQTLBWF.js";
47
+ import "./chunk-R44FR7BY.js";
48
+ import "./chunk-2V4AQPBR.js";
49
+ import "./chunk-Q3DNNTPG.js";
52
50
  import "./chunk-XNLSTHDK.js";
53
51
  import {
54
52
  error
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/registry-client",
3
3
  "description": "Fetch package artifacts and metadata from registries",
4
- "version": "1.0.0-rc.27",
4
+ "version": "1.0.0-rc.29",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",