@vltpkg/cli-sdk 1.0.1 → 1.0.2

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.
@@ -13,6 +13,17 @@ export const VLT_REGISTRY_BASE = 'https://registry.vlt.io';
13
13
  * `npm` is the {@link https://docs.vlt.sh | default bare-spec alias}.
14
14
  */
15
15
  export const accountRegistries = ['npm', 'main'];
16
+ /**
17
+ * What each account registry is, in the order {@link accountRegistries}
18
+ * is authenticated. Every registry has its own credentials, so the
19
+ * web-login flow opens the browser once per registry -- naming what is
20
+ * being authenticated keeps the second prompt from reading like a repeat
21
+ * of the first.
22
+ */
23
+ const accountRegistryAuthPrompts = {
24
+ npm: `First, let's authenticate your public npm registry mirror`,
25
+ main: `Now let's authenticate your private registry`,
26
+ };
16
27
  /** Build the per-account registry URL for a given registry name. */
17
28
  export const accountRegistryURL = (account, name) => `${VLT_REGISTRY_BASE}/${encodeURIComponent(account)}/${name}/`;
18
29
  /** Ensure a registry URL ends with a single trailing slash. */
@@ -97,8 +108,10 @@ export const command = async (conf) => {
97
108
  if (!yes) {
98
109
  const doAuth = await ask('Authenticate with your vlt.io account now? (Y/n) ');
99
110
  if (!/^n/i.test(doAuth)) {
111
+ stdout('Each registry is authenticated separately, so the browser ' +
112
+ 'opens once per registry.');
100
113
  for (const name of accountRegistries) {
101
- stdout(`Authenticating against the "${name}" registry...`);
114
+ stdout(`${accountRegistryAuthPrompts[name]} ("${name}")...`);
102
115
  await rc.login(accountRegistryURL(account, name));
103
116
  }
104
117
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vltpkg/cli-sdk",
3
3
  "description": "The source for the vlt CLI",
4
- "version": "1.0.1",
4
+ "version": "1.0.2",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/vltpkg/vltpkg.git",
@@ -14,30 +14,30 @@
14
14
  },
15
15
  "dependencies": {
16
16
  "@resvg/resvg-wasm": "^2.6.2",
17
- "@vltpkg/config": "1.0.1",
18
- "@vltpkg/dep-id": "1.0.1",
19
- "@vltpkg/dot-prop": "1.0.1",
20
- "@vltpkg/error-cause": "1.0.1",
21
- "@vltpkg/git": "1.0.1",
22
- "@vltpkg/graph": "1.0.1",
23
- "@vltpkg/graph-run": "1.0.1",
24
- "@vltpkg/init": "1.0.1",
25
- "@vltpkg/output": "1.0.1",
26
- "@vltpkg/package-info": "1.0.1",
27
- "@vltpkg/package-json": "1.0.1",
28
- "@vltpkg/promise-spawn": "1.0.1",
29
- "@vltpkg/query": "1.0.1",
30
- "@vltpkg/registry-client": "1.0.1",
31
- "@vltpkg/rollback-remove": "1.0.1",
32
- "@vltpkg/run": "1.0.1",
33
- "@vltpkg/security-archive": "1.0.1",
34
- "@vltpkg/spec": "1.0.1",
35
- "@vltpkg/types": "1.0.1",
36
- "@vltpkg/url-open": "1.0.1",
37
- "@vltpkg/vlt-json": "1.0.1",
38
- "@vltpkg/vlx": "1.0.1",
39
- "@vltpkg/workspaces": "1.0.1",
40
- "@vltpkg/xdg": "1.0.1",
17
+ "@vltpkg/config": "1.0.2",
18
+ "@vltpkg/dep-id": "1.0.2",
19
+ "@vltpkg/dot-prop": "1.0.2",
20
+ "@vltpkg/error-cause": "1.0.2",
21
+ "@vltpkg/git": "1.0.2",
22
+ "@vltpkg/graph": "1.0.2",
23
+ "@vltpkg/graph-run": "1.0.2",
24
+ "@vltpkg/init": "1.0.2",
25
+ "@vltpkg/output": "1.0.2",
26
+ "@vltpkg/package-info": "1.0.2",
27
+ "@vltpkg/package-json": "1.0.2",
28
+ "@vltpkg/promise-spawn": "1.0.2",
29
+ "@vltpkg/query": "1.0.2",
30
+ "@vltpkg/registry-client": "1.0.2",
31
+ "@vltpkg/rollback-remove": "1.0.2",
32
+ "@vltpkg/run": "1.0.2",
33
+ "@vltpkg/security-archive": "1.0.2",
34
+ "@vltpkg/spec": "1.0.2",
35
+ "@vltpkg/types": "1.0.2",
36
+ "@vltpkg/url-open": "1.0.2",
37
+ "@vltpkg/vlt-json": "1.0.2",
38
+ "@vltpkg/vlx": "1.0.2",
39
+ "@vltpkg/workspaces": "1.0.2",
40
+ "@vltpkg/xdg": "1.0.2",
41
41
  "ansi-to-pre": "^1.0.6",
42
42
  "beautiful-mermaid": "^1.1.3",
43
43
  "chalk": "^5.6.2",