@domino-sdk/relay 1.74.0 → 1.76.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/CHANGELOG.md +54 -0
- package/dist/authoring.d.ts +6 -6
- package/dist/authoring.js +4 -4
- package/dist/browser.d.ts +3 -3
- package/dist/browser.js +8 -8
- package/dist/{capability-error-Bn6cCqof.d.ts → capability-error-D56xxE2i.d.ts} +1 -1
- package/dist/{chunk-CW7FJ5PX.js → chunk-3KHVIUKK.js} +1 -1
- package/dist/{chunk-2LURSPDM.js → chunk-4WODSE6Y.js} +2 -2
- package/dist/{chunk-F66GGNKD.js → chunk-4YKOSNYI.js} +1 -1
- package/dist/{chunk-ELHMJODS.js → chunk-7B7MDHJ6.js} +1 -1
- package/dist/{chunk-6TDHRGBM.js → chunk-7QHROIML.js} +3 -0
- package/dist/{chunk-DNOLNMCW.js → chunk-E4ZQCG44.js} +9 -8
- package/dist/{chunk-SVZ3QWHT.js → chunk-FBS65R66.js} +2 -2
- package/dist/{chunk-KP55TMCC.js → chunk-HEQ7HLXG.js} +1 -1
- package/dist/{chunk-TGQNNMCY.js → chunk-IMX45NSW.js} +6 -6
- package/dist/{chunk-RALBAKKX.js → chunk-K3PEQXDV.js} +1 -1
- package/dist/{chunk-JZT2NLSG.js → chunk-LFFGW7GB.js} +449 -392
- package/dist/{chunk-NI6XRGEL.js → chunk-SPLXHFVX.js} +2 -2
- package/dist/{chunk-KGZ7SRKJ.js → chunk-TAZ5AEYF.js} +1 -1
- package/dist/{chunk-HCOLMJFX.js → chunk-X5REDFGV.js} +4 -3
- package/dist/{chunk-T4PTFCSB.js → chunk-XEXB3WZE.js} +1 -1
- package/dist/{chunk-724CKAC7.js → chunk-YB5BSKVU.js} +3 -3
- package/dist/{chunk-7I7P5UVC.js → chunk-ZXFRHGZC.js} +422 -291
- package/dist/{client-B2aVGf38.d.ts → client-336yROej.d.ts} +2 -2
- package/dist/{identity-integration-C03rUYc0.d.ts → identity-integration-B1f5oOdc.d.ts} +1169 -3
- package/dist/{transport-D77Rbf4D.d.ts → index-BM0DdDYy.d.ts} +614 -1274
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/internal.d.ts +46 -22
- package/dist/internal.js +24 -17
- package/dist/{limits-p-Mg0oSi.d.ts → limits-DICxln-i.d.ts} +6 -0
- package/dist/portal-proxy.d.ts +8 -1
- package/dist/portal-proxy.js +125 -50
- package/dist/react/index.d.ts +5 -5
- package/dist/react/index.js +8 -8
- package/dist/runtime/authoring.js +1 -1
- package/dist/runtime/chunks/H6GH644T.js +1 -0
- package/dist/runtime/manifest.json +3 -3
- package/dist/runtime/schema.js +1 -1
- package/dist/schema.d.ts +4 -4
- package/dist/schema.js +7 -7
- package/dist/server/index.d.ts +4 -4
- package/dist/server/index.js +136 -29
- package/dist/{sign-in-providers-BG22ZZkl.d.ts → sign-in-providers-BMtk_NWY.d.ts} +1 -1
- package/dist/solana.d.ts +3 -3
- package/dist/solana.js +8 -8
- package/dist/{station-check-in-a1deSjbm.d.ts → station-check-in-vcDKQOet.d.ts} +2 -2
- package/dist/{submission-input-DBDLkTF8.d.ts → submission-input-D_NiBR0W.d.ts} +6 -1
- package/dist/telegram.d.ts +2 -2
- package/dist/testing.d.ts +2 -2
- package/dist/testing.js +15 -5
- package/package.json +2 -1
- package/dist/runtime/chunks/NYEWMPJH.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
imageRequestSchema,
|
|
3
3
|
xRequestSchema
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-K3PEQXDV.js";
|
|
5
5
|
import {
|
|
6
6
|
cosmosAddressSchema,
|
|
7
7
|
cosmosNetworkSchema,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
textReviewInputSchema,
|
|
25
25
|
trackerContentQuerySchema,
|
|
26
26
|
trackerQuerySchema
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-7QHROIML.js";
|
|
28
28
|
|
|
29
29
|
// src/capability-requests.ts
|
|
30
30
|
import * as z from "zod";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
|
|
5
5
|
// package.json
|
|
6
6
|
var name = "@domino-sdk/relay";
|
|
7
|
-
var version = "1.
|
|
7
|
+
var version = "1.76.0";
|
|
8
8
|
|
|
9
9
|
// src/client-identity.ts
|
|
10
10
|
function clientIdentity() {
|
|
@@ -20,6 +20,7 @@ var transientStatuses = /* @__PURE__ */ (() => /* @__PURE__ */ new Set([429, 500
|
|
|
20
20
|
function validTimeout(value) {
|
|
21
21
|
return typeof value === "number" && Number.isFinite(value) && value > 0;
|
|
22
22
|
}
|
|
23
|
+
var MAX_TIMER = 2 ** 31 - 1;
|
|
23
24
|
function lifetime(timeout, caller) {
|
|
24
25
|
const deadline = new AbortController();
|
|
25
26
|
const expiresAt = Date.now() + timeout;
|
|
@@ -27,7 +28,7 @@ function lifetime(timeout, caller) {
|
|
|
27
28
|
() => deadline.abort(
|
|
28
29
|
new DOMException(`No answer within ${timeout} ms`, "TimeoutError")
|
|
29
30
|
),
|
|
30
|
-
timeout
|
|
31
|
+
Math.min(timeout, MAX_TIMER)
|
|
31
32
|
);
|
|
32
33
|
const signal = caller ? AbortSignal.any([caller, deadline.signal]) : deadline.signal;
|
|
33
34
|
return {
|
|
@@ -70,7 +71,7 @@ function pause(ms, signal) {
|
|
|
70
71
|
signal.removeEventListener("abort", done);
|
|
71
72
|
resolve();
|
|
72
73
|
};
|
|
73
|
-
const timer = setTimeout(done, ms);
|
|
74
|
+
const timer = setTimeout(done, Math.min(ms, MAX_TIMER));
|
|
74
75
|
signal.addEventListener("abort", done, { once: true });
|
|
75
76
|
});
|
|
76
77
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createRelayClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-E4ZQCG44.js";
|
|
4
4
|
import {
|
|
5
5
|
connectSolanaAccount,
|
|
6
6
|
noAccount,
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
} from "./chunk-MDSSIOBC.js";
|
|
10
10
|
import {
|
|
11
11
|
sessionMember
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-3KHVIUKK.js";
|
|
13
13
|
import {
|
|
14
14
|
base58,
|
|
15
15
|
cosmosChain
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-7QHROIML.js";
|
|
17
17
|
import {
|
|
18
18
|
RelayErrorCode,
|
|
19
19
|
asRelayError,
|