@secondlayer/cli 1.8.0 → 1.9.0

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/dist/cli.js CHANGED
@@ -32616,7 +32616,7 @@ var {
32616
32616
  // package.json
32617
32617
  var package_default = {
32618
32618
  name: "@secondlayer/cli",
32619
- version: "1.8.0",
32619
+ version: "1.9.0",
32620
32620
  description: "CLI for streams, subgraphs, and real-time blockchain indexing on Stacks",
32621
32621
  type: "module",
32622
32622
  bin: {
@@ -32657,10 +32657,10 @@ var package_default = {
32657
32657
  license: "MIT",
32658
32658
  dependencies: {
32659
32659
  "@inquirer/prompts": "^8.2.0",
32660
- "@secondlayer/sdk": "^0.8.0",
32661
- "@secondlayer/shared": "^0.8.0",
32660
+ "@secondlayer/sdk": "^0.8.1",
32661
+ "@secondlayer/shared": "^0.9.0",
32662
32662
  "@secondlayer/stacks": "^0.2.2",
32663
- "@secondlayer/subgraphs": "^0.7.0",
32663
+ "@secondlayer/subgraphs": "^0.7.2",
32664
32664
  "@biomejs/js-api": "^0.7.0",
32665
32665
  "@biomejs/wasm-nodejs": "^1.9.0",
32666
32666
  esbuild: "^0.19.0",
@@ -36413,14 +36413,14 @@ function registerAuthCommand(program2) {
36413
36413
  });
36414
36414
  await assertOk(mlRes);
36415
36415
  console.log(dim("Check your email for a 6-digit login code."));
36416
- const token = await input2({
36416
+ const code = await input2({
36417
36417
  message: "Code:",
36418
- validate: (v) => v.trim().length > 0 || "Token is required"
36418
+ validate: (v) => /^\d{6}$/.test(v.trim()) || "Enter the 6-digit code from your email"
36419
36419
  });
36420
36420
  const verifyRes = await fetch(`${apiUrl}/api/auth/verify`, {
36421
36421
  method: "POST",
36422
36422
  headers: { "Content-Type": "application/json" },
36423
- body: JSON.stringify({ token: token.trim() })
36423
+ body: JSON.stringify({ code: code.trim(), email })
36424
36424
  });
36425
36425
  await assertOk(verifyRes);
36426
36426
  const result = await verifyRes.json();
@@ -36500,7 +36500,7 @@ function registerAuthCommand(program2) {
36500
36500
  ["API", apiUrl || "(not configured)"],
36501
36501
  [
36502
36502
  "API Key",
36503
- config.apiKey ? config.apiKey.slice(0, 14) + "..." : "(none)"
36503
+ config.apiKey ? `${config.apiKey.slice(0, 14)}...` : "(none)"
36504
36504
  ]
36505
36505
  ];
36506
36506
  if (config.apiKey && apiUrl) {
@@ -37012,5 +37012,5 @@ registerWhoamiCommand(program);
37012
37012
  registerReceiverCommand(program);
37013
37013
  program.parse();
37014
37014
 
37015
- //# debugId=CCE78279B6461B3364756E2164756E21
37015
+ //# debugId=D8ABBF7C05EEC0E764756E2164756E21
37016
37016
  //# sourceMappingURL=cli.js.map