@settlemint/dalp-sdk 3.1.19-main.34862433650 → 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 CHANGED
@@ -10,7 +10,7 @@ import {
10
10
  makeCookieStore2,
11
11
  createCookieStoreFetch2,
12
12
  SDK_USER_AGENT2
13
- } from "./chunk-tc3pt4c4.js";
13
+ } from "./chunk-yhzqnnbj.js";
14
14
 
15
15
  // src/auth/live.ts
16
16
  import { apiKeyClient } from "@better-auth/api-key/client";
package/dist/bundler.js CHANGED
@@ -1,10 +1,11 @@
1
- import"./chunk-w4wwzh4s.js";
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-dz1jx8y5.js";
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 createDalpClient2(options) {
13
+ // src/proxy/client-core.ts
14
+ function buildDalpClient(options, table) {
18
15
  const transport = createTransport(options);
19
- const api = buildProxy(data, createFetchExecutor(transport), createTanstackFactories(transport));
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(data, routeId);
21
+ const route = findRoute(table, routeId);
25
22
  if (route === undefined) {
26
23
  throw new TypeError(`Unknown DALP route \`${routeId}\``);
27
24
  }
28
- const result = route.serializer === "sse" ? streamRequest(transport, route, input, callOptions) : await sendRequest(transport, route, input, callOptions);
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
- export { createDalpClient2 };
29
+
30
+ export { buildDalpClient };