@settlemint/dalp-sdk 3.1.19-main.34868848362 → 3.1.19-main.34874518496
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/auth.js +1 -1
- package/dist/bundler.js +3 -2
- package/dist/{chunk-dz1jx8y5.js → chunk-79av07h6.js} +7 -10
- package/dist/chunk-h0z2r2hv.js +4 -0
- package/dist/chunk-qqhrt2cm.js +12 -0
- package/dist/{chunk-jv6agqgk.js → chunk-yhzqnnbj.js} +6 -1
- package/dist/effect.js +1 -1
- package/dist/generated/api-types.d.ts +6308 -292
- package/dist/generated/console-routes.d.ts +12 -0
- package/dist/generated/routes.d.ts +1 -1
- package/dist/index.js +6 -5
- package/dist/proxy/client-core.d.ts +39 -0
- package/dist/proxy/client.d.ts +7 -21
- package/dist/routes/console.d.ts +22 -0
- package/dist/routes/console.js +20 -0
- package/dist/routes/index.js +1 -1
- package/package.json +6 -1
- package/dist/chunk-w4wwzh4s.js +0 -4
package/dist/auth.js
CHANGED
package/dist/bundler.js
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import"./chunk-
|
|
1
|
+
import"./chunk-h0z2r2hv.js";
|
|
2
2
|
import"./chunk-j4sxrfzz.js";
|
|
3
3
|
import"./chunk-shp8v4ws.js";
|
|
4
4
|
import"./chunk-xp3fx2yt.js";
|
|
5
5
|
import {
|
|
6
6
|
createDalpClient2
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-qqhrt2cm.js";
|
|
8
|
+
import"./chunk-79av07h6.js";
|
|
8
9
|
|
|
9
10
|
// src/bundler.ts
|
|
10
11
|
import { getAddress, hexToBigInt, isHex } from "viem";
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
data
|
|
3
|
-
} from "./chunk-w4wwzh4s.js";
|
|
4
1
|
import {
|
|
5
2
|
createTransport,
|
|
6
3
|
streamRequest,
|
|
@@ -13,21 +10,21 @@ import {
|
|
|
13
10
|
findRoute
|
|
14
11
|
} from "./chunk-rb8k4w3q.js";
|
|
15
12
|
|
|
16
|
-
// src/proxy/client.ts
|
|
17
|
-
function
|
|
13
|
+
// src/proxy/client-core.ts
|
|
14
|
+
function buildDalpClient(options, table) {
|
|
18
15
|
const transport = createTransport(options);
|
|
19
|
-
const api = buildProxy(
|
|
16
|
+
const api = buildProxy(table, createFetchExecutor(transport), createTanstackFactories(transport));
|
|
20
17
|
return {
|
|
21
18
|
api,
|
|
22
19
|
conditionalRequests: transport.conditionalRequests,
|
|
23
20
|
execute: async (routeId, input, callOptions) => {
|
|
24
|
-
const route = findRoute(
|
|
21
|
+
const route = findRoute(table, routeId);
|
|
25
22
|
if (route === undefined) {
|
|
26
23
|
throw new TypeError(`Unknown DALP route \`${routeId}\``);
|
|
27
24
|
}
|
|
28
|
-
|
|
29
|
-
return result;
|
|
25
|
+
return route.serializer === "sse" ? streamRequest(transport, route, input, callOptions) : await sendRequest(transport, route, input, callOptions);
|
|
30
26
|
}
|
|
31
27
|
};
|
|
32
28
|
}
|
|
33
|
-
|
|
29
|
+
|
|
30
|
+
export { buildDalpClient };
|