@tempoxyz/id 0.0.0-pr-1132.sha-e4cf54d → 0.0.0-pr-1133.sha-b971ed9

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 (26) hide show
  1. package/dist/{AccessToken-LA5PDALX.js → AccessToken-ZET4UCX5.js} +3 -3
  2. package/dist/{Connections-7ISSW3GF.js → Connections-AMNKKJET.js} +4 -4
  3. package/dist/{File-3N5OZPAO.js → File-EX7PS3F7.js} +3 -31
  4. package/dist/{Server-NQ3AFUDH.js → Server-JVN6D5AI.js} +3 -3
  5. package/dist/{Sheet-5T6VEL5F.js → Sheet-T2JZTIDW.js} +3 -3
  6. package/dist/{chunk-NNLNFKW4.js → chunk-BJMXAVRA.js} +2 -2
  7. package/dist/{chunk-6U63FFFG.js → chunk-I72E6HPL.js} +2 -2
  8. package/dist/{chunk-CWPJ2GXM.js → chunk-PLPHQNDQ.js} +11 -15
  9. package/dist/{chunk-QRBLNLDA.js → chunk-QXAI6ONX.js} +5 -17
  10. package/dist/{chunk-27R2TEQJ.js → chunk-TEQAH4BN.js} +2 -3
  11. package/dist/{chunk-63HCMCFO.js → chunk-VSCV5CCB.js} +1 -1
  12. package/dist/{chunk-OOVY55CN.js → chunk-WWXHDRJ7.js} +1 -1
  13. package/dist/{chunk-HWI66NNP.js → chunk-WY7MR7T7.js} +5 -5
  14. package/dist/{chunk-7W5WHEVS.js → chunk-XBQHRIBM.js} +1 -1
  15. package/dist/{chunk-RJJV6WJL.js → chunk-ZTJQSFD3.js} +91 -171
  16. package/dist/commands/login.js +11 -12
  17. package/dist/commands/logout.js +11 -12
  18. package/dist/commands/whoami.js +11 -12
  19. package/dist/{dialog-AI3KZKYY.js → dialog-C3YZOE26.js} +6 -10
  20. package/dist/{dialog-RPLOE3DT.js → dialog-H3DX2V4N.js} +6 -8
  21. package/dist/{funding-AOD7RNMN.js → funding-CO6TPQSO.js} +3 -3
  22. package/dist/{mpp-MK3LUBFF.js → mpp-NHT7TYSK.js} +11 -25
  23. package/dist/{passkey-QJKYHCQN.js → passkey-7QXWYAGE.js} +3 -3
  24. package/package.json +1 -1
  25. package/dist/chunk-NDG42GMW.js +0 -182
  26. package/dist/guest-NJF4U5OP.js +0 -17
@@ -3,10 +3,10 @@ import {
3
3
  create,
4
4
  includes,
5
5
  verifyRequest
6
- } from "./chunk-OOVY55CN.js";
6
+ } from "./chunk-WWXHDRJ7.js";
7
7
  import "./chunk-DW2VLCLG.js";
8
- import "./chunk-RJJV6WJL.js";
9
- import "./chunk-27R2TEQJ.js";
8
+ import "./chunk-ZTJQSFD3.js";
9
+ import "./chunk-TEQAH4BN.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
12
12
  InvalidError,
@@ -2,11 +2,11 @@ import {
2
2
  attach,
3
3
  create,
4
4
  pending
5
- } from "./chunk-NNLNFKW4.js";
6
- import "./chunk-OOVY55CN.js";
5
+ } from "./chunk-BJMXAVRA.js";
6
+ import "./chunk-WWXHDRJ7.js";
7
7
  import "./chunk-DW2VLCLG.js";
8
- import "./chunk-RJJV6WJL.js";
9
- import "./chunk-27R2TEQJ.js";
8
+ import "./chunk-ZTJQSFD3.js";
9
+ import "./chunk-TEQAH4BN.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
12
12
  attach,
@@ -3,27 +3,9 @@ import {
3
3
  env,
4
4
  modules,
5
5
  stringify
6
- } from "./chunk-27R2TEQJ.js";
6
+ } from "./chunk-TEQAH4BN.js";
7
7
  import "./chunk-MLKGABMK.js";
8
8
 
9
- // ../../accounts/src/internal/Broadcast.ts
10
- function create() {
11
- const listeners = /* @__PURE__ */ new Map();
12
- return (key, listener) => {
13
- const set = listeners.get(key) ?? /* @__PURE__ */ new Set();
14
- listeners.set(key, set);
15
- for (const ref of set) if (!ref.deref()) set.delete(ref);
16
- set.add(new WeakRef(listener));
17
- return (message) => {
18
- for (const ref of set) {
19
- const peer = ref.deref();
20
- if (!peer) set.delete(ref);
21
- else if (peer !== listener) queueMicrotask(() => peer(message));
22
- }
23
- };
24
- };
25
- }
26
-
27
9
  // ../../accounts/src/internal/Expiry.ts
28
10
  function expired(entry) {
29
11
  return entry.expiresAt !== void 0 && entry.expiresAt <= Date.now();
@@ -49,7 +31,7 @@ var NodeRequiredError = class extends Error {
49
31
  );
50
32
  }
51
33
  };
52
- function create2(path) {
34
+ function create(path) {
53
35
  const { Os, Path } = node();
54
36
  const file = path ?? Path.join(
55
37
  env("TEMPO_HOME") ?? Path.join(Os.homedir(), ".tempo"),
@@ -116,15 +98,6 @@ function create2(path) {
116
98
  return next;
117
99
  }
118
100
  return {
119
- // The instances of the process on the file hear each saved change of each other, also through
120
- // another store of its path, so a sign-out empties their sessions at once.
121
- connect(key, listener) {
122
- const { Path: Path2 } = node();
123
- const target = Path2.resolve(resolve());
124
- const connect = connections.get(target) ?? create();
125
- connections.set(target, connect);
126
- return connect(key, listener);
127
- },
128
101
  async getItem(key) {
129
102
  await pending.catch(() => void 0);
130
103
  const entry = (await read())[key];
@@ -285,11 +258,10 @@ async function sweep(target) {
285
258
  );
286
259
  }
287
260
  var temporaryName = /^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\.tmp$/;
288
- var connections = /* @__PURE__ */ new Map();
289
261
  var lease = 3e4;
290
262
  var staleLock = 1e4;
291
263
  export {
292
264
  InvalidFileError,
293
265
  NodeRequiredError,
294
- create2 as create
266
+ create
295
267
  };
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  InvalidError
3
3
  } from "./chunk-QI2MEU2T.js";
4
+ import "./chunk-I72E6HPL.js";
4
5
  import "./chunk-DW2VLCLG.js";
5
- import "./chunk-6U63FFFG.js";
6
6
  import {
7
7
  PendingNotFoundError,
8
8
  RequestError,
@@ -12,8 +12,8 @@ import {
12
12
  key,
13
13
  permissions,
14
14
  siwe
15
- } from "./chunk-RJJV6WJL.js";
16
- import "./chunk-27R2TEQJ.js";
15
+ } from "./chunk-ZTJQSFD3.js";
16
+ import "./chunk-TEQAH4BN.js";
17
17
  import "./chunk-MLKGABMK.js";
18
18
 
19
19
  // ../../accounts/src/internal/handlers/Backend.ts
@@ -4,9 +4,9 @@ import {
4
4
  machines,
5
5
  prompt,
6
6
  waiting
7
- } from "./chunk-63HCMCFO.js";
8
- import "./chunk-RJJV6WJL.js";
9
- import "./chunk-27R2TEQJ.js";
7
+ } from "./chunk-VSCV5CCB.js";
8
+ import "./chunk-ZTJQSFD3.js";
9
+ import "./chunk-TEQAH4BN.js";
10
10
  import "./chunk-MLKGABMK.js";
11
11
  export {
12
12
  create,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  InvalidError,
3
3
  create
4
- } from "./chunk-OOVY55CN.js";
4
+ } from "./chunk-WWXHDRJ7.js";
5
5
  import {
6
6
  RequestError,
7
7
  clientAuthentication,
@@ -10,7 +10,7 @@ import {
10
10
  from3 as from2,
11
11
  json,
12
12
  post
13
- } from "./chunk-RJJV6WJL.js";
13
+ } from "./chunk-ZTJQSFD3.js";
14
14
  import {
15
15
  __export
16
16
  } from "./chunk-MLKGABMK.js";
@@ -12,7 +12,7 @@ import {
12
12
  error,
13
13
  error2,
14
14
  from,
15
- get,
15
+ get2 as get,
16
16
  json,
17
17
  own,
18
18
  revoke,
@@ -21,7 +21,7 @@ import {
21
21
  tokens,
22
22
  url,
23
23
  user
24
- } from "./chunk-RJJV6WJL.js";
24
+ } from "./chunk-ZTJQSFD3.js";
25
25
  import {
26
26
  __export
27
27
  } from "./chunk-MLKGABMK.js";
@@ -1,19 +1,16 @@
1
- import {
2
- connections_exports
3
- } from "./chunk-NNLNFKW4.js";
4
1
  import {
5
2
  dialog_exports
6
- } from "./chunk-QRBLNLDA.js";
3
+ } from "./chunk-QXAI6ONX.js";
7
4
  import {
8
5
  redirect_exports
9
- } from "./chunk-6U63FFFG.js";
6
+ } from "./chunk-I72E6HPL.js";
10
7
  import {
11
8
  complete as complete2,
12
9
  discard,
13
10
  funding_exports,
14
11
  open,
15
12
  preload
16
- } from "./chunk-HWI66NNP.js";
13
+ } from "./chunk-WY7MR7T7.js";
17
14
  import {
18
15
  deferred
19
16
  } from "./chunk-YOAFE7CM.js";
@@ -21,10 +18,10 @@ import {
21
18
  bind,
22
19
  from as from3,
23
20
  passkey_exports
24
- } from "./chunk-7W5WHEVS.js";
21
+ } from "./chunk-XBQHRIBM.js";
25
22
  import {
26
- guest_exports
27
- } from "./chunk-NDG42GMW.js";
23
+ connections_exports
24
+ } from "./chunk-BJMXAVRA.js";
28
25
  import {
29
26
  AccessKeyRequiredError,
30
27
  AccessKey_exports,
@@ -60,7 +57,7 @@ import {
60
57
  from4 as from,
61
58
  from5 as from2,
62
59
  fundingParameters,
63
- get2 as get,
60
+ get,
64
61
  json,
65
62
  keyAuthorization,
66
63
  local,
@@ -89,7 +86,7 @@ import {
89
86
  unlisted,
90
87
  user,
91
88
  withoutAccessKey
92
- } from "./chunk-RJJV6WJL.js";
89
+ } from "./chunk-ZTJQSFD3.js";
93
90
  import {
94
91
  __export
95
92
  } from "./chunk-MLKGABMK.js";
@@ -298,7 +295,7 @@ function plugin() {
298
295
  let loading;
299
296
  let loaded_plugin;
300
297
  function load() {
301
- loading ??= import("./dialog-AI3KZKYY.js").then((module) => loaded_plugin = module.dialog()).catch((error2) => {
298
+ loading ??= import("./dialog-C3YZOE26.js").then((module) => loaded_plugin = module.dialog()).catch((error2) => {
302
299
  loading = void 0;
303
300
  throw error2;
304
301
  });
@@ -394,7 +391,7 @@ function plugin2() {
394
391
  extend(instance, context) {
395
392
  let loading;
396
393
  function load() {
397
- loading ??= import("./mpp-MK3LUBFF.js").then((module) => {
394
+ loading ??= import("./mpp-NHT7TYSK.js").then((module) => {
398
395
  const loaded = module.mpp();
399
396
  loaded.setup?.(context);
400
397
  return loaded.extend(instance, context);
@@ -473,7 +470,6 @@ __export(actions_exports, {
473
470
  email: () => email_exports2,
474
471
  fetch: () => fetch2,
475
472
  funding: () => funding_exports,
476
- guest: () => guest_exports,
477
473
  oauth: () => oauth_exports,
478
474
  passkey: () => passkey_exports,
479
475
  realm: () => realm_exports,
@@ -904,7 +900,7 @@ async function signIn2(auth2, options) {
904
900
  return { ...next, options: next.options };
905
901
  })();
906
902
  if (creation && prepared.accessKey && options.accessKey) {
907
- const { register } = await import("./passkey-QJKYHCQN.js");
903
+ const { register } = await import("./passkey-7QXWYAGE.js");
908
904
  const registered = await register(auth2, {
909
905
  accessKey: { ...options.accessKey, account: prepared.accessKey.signer },
910
906
  challenge: options.challenge,
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  handleCallback,
3
3
  handleResult
4
- } from "./chunk-6U63FFFG.js";
4
+ } from "./chunk-I72E6HPL.js";
5
5
  import {
6
6
  open
7
- } from "./chunk-HWI66NNP.js";
7
+ } from "./chunk-WY7MR7T7.js";
8
8
  import {
9
9
  create,
10
10
  prompt,
11
11
  waiting
12
- } from "./chunk-63HCMCFO.js";
12
+ } from "./chunk-VSCV5CCB.js";
13
13
  import {
14
14
  RequestError,
15
15
  activated,
@@ -22,7 +22,7 @@ import {
22
22
  coinflow,
23
23
  error2 as error,
24
24
  fundingParameters,
25
- get,
25
+ get2 as get,
26
26
  http,
27
27
  json,
28
28
  openPopup,
@@ -33,7 +33,7 @@ import {
33
33
  revoke,
34
34
  signedIn,
35
35
  watchPopup
36
- } from "./chunk-RJJV6WJL.js";
36
+ } from "./chunk-ZTJQSFD3.js";
37
37
  import {
38
38
  __export
39
39
  } from "./chunk-MLKGABMK.js";
@@ -43,7 +43,6 @@ var dialog_exports = {};
43
43
  __export(dialog_exports, {
44
44
  BlockedError: () => BlockedError,
45
45
  OriginError: () => OriginError,
46
- PageRequiredError: () => PageRequiredError,
47
46
  callback: () => callback,
48
47
  machines: () => machines,
49
48
  preload: () => preload,
@@ -72,14 +71,6 @@ var OriginError = class extends Error {
72
71
  );
73
72
  }
74
73
  };
75
- var PageRequiredError = class extends Error {
76
- name = "Actions.dialog.PageRequiredError";
77
- constructor() {
78
- super(
79
- "No browser page: the sign-in shows in a frame or a popup, which only a page opens. Outside a page, sign in with the `device` plugin."
80
- );
81
- }
82
- };
83
74
  async function callback(auth) {
84
75
  const url = new URL(window.location.href);
85
76
  const state = url.searchParams.getAll("state").at(-1);
@@ -123,7 +114,6 @@ function preload(auth, options = {}) {
123
114
  });
124
115
  }
125
116
  async function signIn(auth, options = {}) {
126
- if (typeof document === "undefined") throw new PageRequiredError();
127
117
  if ("backend" in options) {
128
118
  const { crossOriginOpenerPolicy, mode, signal, timeout } = options;
129
119
  const basePath2 = `${(options.backend === true ? basePath : options.backend).replace(/\/+$/, "")}${authPath}`;
@@ -185,7 +175,6 @@ async function signInPage(auth, options) {
185
175
  return authorization;
186
176
  }
187
177
  async function signMessage(auth, options) {
188
- if (typeof document === "undefined") throw new PageRequiredError();
189
178
  return sign(auth, options);
190
179
  }
191
180
  async function sign(auth, options) {
@@ -839,7 +828,6 @@ var machines;
839
828
  export {
840
829
  BlockedError,
841
830
  OriginError,
842
- PageRequiredError,
843
831
  callback,
844
832
  preload,
845
833
  signIn,
@@ -45,9 +45,8 @@ function stringify(value) {
45
45
  "Unserializable value: a non-extractable access key has no JSON form. In a browser, keep the session in the default store."
46
46
  );
47
47
  if (typeof entry === "bigint") return `${entry}${bigintSuffix}`;
48
- const text = entry instanceof String ? entry.valueOf() : entry;
49
- if (typeof text === "string" && text.endsWith(bigintSuffix))
50
- return `${text}${stringEscape}${bigintSuffix}`;
48
+ if (typeof entry === "string" && entry.endsWith(bigintSuffix))
49
+ return `${entry}${stringEscape}${bigintSuffix}`;
51
50
  return entry;
52
51
  });
53
52
  }
@@ -3,7 +3,7 @@ import {
3
3
  openPopup,
4
4
  received,
5
5
  watchPopup
6
- } from "./chunk-RJJV6WJL.js";
6
+ } from "./chunk-ZTJQSFD3.js";
7
7
 
8
8
  // ../../accounts/src/internal/Sheet.ts
9
9
  import {
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  RequestError,
6
6
  algorithms
7
- } from "./chunk-RJJV6WJL.js";
7
+ } from "./chunk-ZTJQSFD3.js";
8
8
 
9
9
  // ../../accounts/src/AccessToken.ts
10
10
  import {
@@ -5,7 +5,7 @@ import {
5
5
  openPopup,
6
6
  parameter,
7
7
  watchPopup
8
- } from "./chunk-RJJV6WJL.js";
8
+ } from "./chunk-ZTJQSFD3.js";
9
9
  import {
10
10
  __export
11
11
  } from "./chunk-MLKGABMK.js";
@@ -119,7 +119,7 @@ async function open(auth, options) {
119
119
  throw new OriginError({ origin: window.location.origin, redirectUri });
120
120
  if (mode === "popup" && options.mode !== "popup" && !activated()) {
121
121
  const address = await abortable(read(), { signal });
122
- const Sheet = await import("./Sheet-5T6VEL5F.js");
122
+ const Sheet = await import("./Sheet-T2JZTIDW.js");
123
123
  return await new Promise((resolve, reject) => {
124
124
  const abort = () => {
125
125
  close();
@@ -182,7 +182,7 @@ async function preload(auth, options) {
182
182
  const entry = { ready: Promise.resolve(), sheet: void 0, url };
183
183
  preloads.set(auth, entry);
184
184
  entry.ready = (async () => {
185
- const Sheet = await import("./Sheet-5T6VEL5F.js").catch(() => void 0);
185
+ const Sheet = await import("./Sheet-T2JZTIDW.js").catch(() => void 0);
186
186
  if (!document.body)
187
187
  await new Promise(
188
188
  (resolve) => document.addEventListener("DOMContentLoaded", resolve, {
@@ -208,7 +208,7 @@ async function watch(auth, options) {
208
208
  try {
209
209
  return await new Promise(
210
210
  (resolve, reject) => {
211
- void import("./Sheet-5T6VEL5F.js").then(
211
+ void import("./Sheet-T2JZTIDW.js").then(
212
212
  (Sheet) => {
213
213
  if (settled) return;
214
214
  unblock = Sheet.waiting({
@@ -310,7 +310,7 @@ var decimal = /^(?:0|[1-9]\d{0,17})(?:\.\d{1,18})?$/;
310
310
  async function frame(auth, options) {
311
311
  const { redirectUri, signal, toUrl } = options;
312
312
  const address = await abortable(options.address, { signal });
313
- const Sheet = await import("./Sheet-5T6VEL5F.js");
313
+ const Sheet = await import("./Sheet-T2JZTIDW.js");
314
314
  signal?.throwIfAborted();
315
315
  const url = toUrl(address);
316
316
  const held = preloads.get(auth);
@@ -17,7 +17,7 @@ import {
17
17
  tempoAccount,
18
18
  tokens,
19
19
  user
20
- } from "./chunk-RJJV6WJL.js";
20
+ } from "./chunk-ZTJQSFD3.js";
21
21
  import {
22
22
  __export
23
23
  } from "./chunk-MLKGABMK.js";