@tempoxyz/id 0.0.0-pr-682.sha-d0df8be → 0.0.0-pr-682.sha-b7dad3f

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.
@@ -4,8 +4,8 @@ import {
4
4
  name,
5
5
  parseName,
6
6
  pending
7
- } from "./chunk-GOY75KTX.js";
8
- import "./chunk-HU7IKUQX.js";
7
+ } from "./chunk-5CPFER3V.js";
8
+ import "./chunk-ETZ5GMXY.js";
9
9
  import "./chunk-YW5DUQT3.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
@@ -4,7 +4,7 @@ import {
4
4
  machines,
5
5
  prompt,
6
6
  waiting
7
- } from "./chunk-HU7IKUQX.js";
7
+ } from "./chunk-ETZ5GMXY.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
  export {
10
10
  create,
@@ -2,7 +2,7 @@ import {
2
2
  AccessKey_exports,
3
3
  Accounts_exports,
4
4
  Actions_exports
5
- } from "./chunk-HU7IKUQX.js";
5
+ } from "./chunk-ETZ5GMXY.js";
6
6
 
7
7
  // src/Session.ts
8
8
  import * as Fs from "node:fs/promises";
@@ -5,7 +5,7 @@ import {
5
5
  expired,
6
6
  from,
7
7
  revokeAccessKey
8
- } from "./chunk-HU7IKUQX.js";
8
+ } from "./chunk-ETZ5GMXY.js";
9
9
  import {
10
10
  from as from2
11
11
  } from "./chunk-YW5DUQT3.js";
@@ -1658,7 +1658,7 @@ async function open(auth, options) {
1658
1658
  throw new OriginError({ origin: window.location.origin, redirectUri });
1659
1659
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
1660
1660
  const address2 = await abortable(read2(), { signal });
1661
- const Sheet = await import("./Sheet-IFKNYXEI.js");
1661
+ const Sheet = await import("./Sheet-M7HBJDX7.js");
1662
1662
  return await new Promise((resolve3, reject) => {
1663
1663
  const abort = () => {
1664
1664
  close();
@@ -1709,7 +1709,7 @@ async function watch(auth, options) {
1709
1709
  try {
1710
1710
  return await new Promise(
1711
1711
  (resolve3, reject) => {
1712
- void import("./Sheet-IFKNYXEI.js").then(
1712
+ void import("./Sheet-M7HBJDX7.js").then(
1713
1713
  (Sheet) => {
1714
1714
  if (settled) return;
1715
1715
  unblock = Sheet.waiting({
@@ -1774,7 +1774,7 @@ function parse(url, options) {
1774
1774
  async function frame(auth, options) {
1775
1775
  const { redirectUri, signal, toUrl } = options;
1776
1776
  const address2 = await abortable(options.address, { signal });
1777
- const Sheet = await import("./Sheet-IFKNYXEI.js");
1777
+ const Sheet = await import("./Sheet-M7HBJDX7.js");
1778
1778
  signal?.throwIfAborted();
1779
1779
  let close;
1780
1780
  let abort;
@@ -2973,11 +2973,15 @@ async function verify(auth, options) {
2973
2973
  }
2974
2974
  })
2975
2975
  );
2976
- const body = await send2(requested !== void 0).catch((error3) => {
2977
- if (!requested || !unlisted(error3, { field: "account.chain" }))
2978
- throw error3;
2979
- return send2(false);
2980
- });
2976
+ const { body, unlisted: unlisted2 } = await (async () => {
2977
+ try {
2978
+ return { body: await send2(requested !== void 0), unlisted: false };
2979
+ } catch (error3) {
2980
+ if (!requested || !(error3 instanceof RequestError) || error3.signedIn || !unlisted(error3, { field: "account.chain" }))
2981
+ throw error3;
2982
+ return { body: await send2(false), unlisted: true };
2983
+ }
2984
+ })();
2981
2985
  if ("step" in body)
2982
2986
  return { step: { link: body.step.link, type: body.step.type } };
2983
2987
  const authorization2 = await complete(auth, {
@@ -2986,6 +2990,7 @@ async function verify(auth, options) {
2986
2990
  key: prepared.key,
2987
2991
  request: prepared.request
2988
2992
  });
2993
+ if (unlisted2) return { ...authorization2, account: void 0 };
2989
2994
  if (!requested || !body.tempo) return authorization2;
2990
2995
  const [first] = body.tempo;
2991
2996
  return {
@@ -3327,7 +3332,7 @@ var signInIds = /* @__PURE__ */ new Set([
3327
3332
  function plugin() {
3328
3333
  let loading;
3329
3334
  function load() {
3330
- loading ??= import("./dialog-4273L5TD.js").then((module) => module.dialog()).catch((error3) => {
3335
+ loading ??= import("./dialog-LRPUKVRZ.js").then((module) => module.dialog()).catch((error3) => {
3331
3336
  loading = void 0;
3332
3337
  throw error3;
3333
3338
  });
@@ -4535,7 +4540,7 @@ function create4(options = {}) {
4535
4540
  function connections2() {
4536
4541
  if (!connectionsOptions)
4537
4542
  return Promise.reject(new ConnectionsRequiredError());
4538
- attached ??= import("./Connections-RTGUTHPP.js").then(
4543
+ attached ??= import("./Connections-PATZBG2T.js").then(
4539
4544
  (module) => module.attach(config, connectionsOptions)
4540
4545
  );
4541
4546
  return attached;
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  env,
3
3
  login
4
- } from "../chunk-KUGGMQNM.js";
5
- import "../chunk-GOY75KTX.js";
6
- import "../chunk-HU7IKUQX.js";
4
+ } from "../chunk-3ITS3YGB.js";
5
+ import "../chunk-5CPFER3V.js";
6
+ import "../chunk-ETZ5GMXY.js";
7
7
  import "../chunk-YW5DUQT3.js";
8
8
  import "../chunk-MLKGABMK.js";
9
9
 
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  env,
3
3
  remove
4
- } from "../chunk-KUGGMQNM.js";
5
- import "../chunk-GOY75KTX.js";
6
- import "../chunk-HU7IKUQX.js";
4
+ } from "../chunk-3ITS3YGB.js";
5
+ import "../chunk-5CPFER3V.js";
6
+ import "../chunk-ETZ5GMXY.js";
7
7
  import "../chunk-YW5DUQT3.js";
8
8
  import "../chunk-MLKGABMK.js";
9
9
 
@@ -2,9 +2,9 @@ import {
2
2
  env,
3
3
  signedOut,
4
4
  whoami
5
- } from "../chunk-KUGGMQNM.js";
6
- import "../chunk-GOY75KTX.js";
7
- import "../chunk-HU7IKUQX.js";
5
+ } from "../chunk-3ITS3YGB.js";
6
+ import "../chunk-5CPFER3V.js";
7
+ import "../chunk-ETZ5GMXY.js";
8
8
  import "../chunk-YW5DUQT3.js";
9
9
  import "../chunk-MLKGABMK.js";
10
10
 
@@ -4,7 +4,7 @@ import {
4
4
  expired2 as expired,
5
5
  from2 as from,
6
6
  toSession
7
- } from "./chunk-HU7IKUQX.js";
7
+ } from "./chunk-ETZ5GMXY.js";
8
8
  import "./chunk-MLKGABMK.js";
9
9
 
10
10
  // ../../accounts/src/plugins/dialog.ts
package/package.json CHANGED
@@ -9,7 +9,7 @@
9
9
  "node": ">=24.21"
10
10
  },
11
11
  "name": "@tempoxyz/id",
12
- "version": "0.0.0-pr-682.sha-d0df8be",
12
+ "version": "0.0.0-pr-682.sha-b7dad3f",
13
13
  "description": "The tempo-id CLI: sign in to Tempo ID, and call its API and the Admin API.",
14
14
  "type": "module",
15
15
  "bin": {