@settlemint/dalp-sdk 3.1.26-main.39857346481 → 3.1.26-main.39864892531

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
@@ -12,12 +12,12 @@ import {
12
12
  STEP_UP_CHALLENGE_PATH,
13
13
  carriesWalletProof,
14
14
  stepUpChallengeRequest
15
- } from "./chunk-hcpk89xj.js";
15
+ } from "./chunk-s779b1kf.js";
16
16
  import {
17
17
  makeCookieStore2,
18
18
  createCookieStoreFetch2,
19
19
  SDK_USER_AGENT2
20
- } from "./chunk-f8gz7nav.js";
20
+ } from "./chunk-t7ck4dx3.js";
21
21
  import {
22
22
  normalizeDalpBaseUrl
23
23
  } from "./chunk-h9e65x5z.js";
@@ -73,6 +73,9 @@ function isBufferingFetch(fetchImpl) {
73
73
  function keepBufferingMarker(wrapped, wrapper) {
74
74
  return isBufferingFetch(wrapped) ? Object.assign(wrapper, { [WHATWG_FETCH_POLYFILL_FLAG]: true }) : wrapper;
75
75
  }
76
+ function globalFetch() {
77
+ return keepBufferingMarker(globalThis.fetch, (input, init) => globalThis.fetch(input, init));
78
+ }
76
79
  function refuseBundledApiKey(runtime) {
77
80
  if (runtime === "server") {
78
81
  return;
@@ -138,4 +141,4 @@ async function stepUpChallengeRequest(operation, target, body) {
138
141
  return { operation, target, payloadDigest };
139
142
  }
140
143
 
141
- export { DALP_AUTH_SURFACE_HEADER2, SECRET_REDACTION_MARKER2, Secret2, secret2, unwrapSecret, detectDalpRuntime, runtimeCredentials, refuseCrossOriginBrowserSession, isBufferingFetch, keepBufferingMarker, refuseBundledApiKey, STEP_UP_CHALLENGE_HEADER, WALLET_VERIFICATION_HEADER, STEP_UP_CHALLENGE_PATH, carriesWalletProof, stepUpChallengeRequest };
144
+ export { DALP_AUTH_SURFACE_HEADER2, SECRET_REDACTION_MARKER2, Secret2, secret2, unwrapSecret, detectDalpRuntime, runtimeCredentials, refuseCrossOriginBrowserSession, isBufferingFetch, keepBufferingMarker, globalFetch, refuseBundledApiKey, STEP_UP_CHALLENGE_HEADER, WALLET_VERIFICATION_HEADER, STEP_UP_CHALLENGE_PATH, carriesWalletProof, stepUpChallengeRequest };
@@ -1,6 +1,7 @@
1
1
  import {
2
- keepBufferingMarker
3
- } from "./chunk-hcpk89xj.js";
2
+ keepBufferingMarker,
3
+ globalFetch
4
+ } from "./chunk-s779b1kf.js";
4
5
 
5
6
  // src/transport/cookie-store.ts
6
7
  var parseCookieHeader = (header) => {
@@ -89,7 +90,7 @@ var splitCombinedSetCookie = (value) => {
89
90
  }
90
91
  return cookies;
91
92
  };
92
- function createCookieStoreFetch2(cookieStore, fetchImpl = globalThis.fetch) {
93
+ function createCookieStoreFetch2(cookieStore, fetchImpl = globalFetch()) {
93
94
  const cookieStoreFetch = async (input, init) => {
94
95
  const headers = new Headers(init?.headers ?? (input instanceof Request ? input.headers : undefined));
95
96
  if (!cookieStore.isEmpty() && !headers.has("cookie")) {
@@ -106,7 +107,7 @@ function createCookieStoreFetch2(cookieStore, fetchImpl = globalThis.fetch) {
106
107
  // package.json
107
108
  var package_default = {
108
109
  name: "@settlemint/dalp-sdk",
109
- version: "3.1.26-main.39857346481",
110
+ version: "3.1.26-main.39864892531",
110
111
  private: false,
111
112
  description: "Fully typed SDK for the DALP tokenization platform API",
112
113
  homepage: "https://settlemint.com",
@@ -14,13 +14,14 @@ import {
14
14
  runtimeCredentials,
15
15
  refuseCrossOriginBrowserSession,
16
16
  isBufferingFetch,
17
+ globalFetch,
17
18
  refuseBundledApiKey,
18
19
  STEP_UP_CHALLENGE_HEADER,
19
20
  WALLET_VERIFICATION_HEADER,
20
21
  STEP_UP_CHALLENGE_PATH,
21
22
  carriesWalletProof,
22
23
  stepUpChallengeRequest
23
- } from "./chunk-hcpk89xj.js";
24
+ } from "./chunk-s779b1kf.js";
24
25
  import {
25
26
  normalizeDalpBaseUrl
26
27
  } from "./chunk-h9e65x5z.js";
@@ -543,7 +544,7 @@ function preferDirective(timeoutMs) {
543
544
  function createTransport(options) {
544
545
  const baseUrl = normalizeDalpBaseUrl(String(options.baseUrl));
545
546
  const runtime = options.runtime ?? detectDalpRuntime();
546
- const baseFetch = options.fetch ?? globalThis.fetch;
547
+ const baseFetch = options.fetch ?? globalFetch();
547
548
  const transportFetch = runtime === "server" ? withRequestBodyCompression(baseFetch) : baseFetch;
548
549
  const { apiKey: apiKeyOption } = options;
549
550
  let apiKey;
@@ -4,7 +4,7 @@ import {
4
4
  sendRequest,
5
5
  createFetchExecutor,
6
6
  createTanstackFactories
7
- } from "./chunk-st589hs9.js";
7
+ } from "./chunk-x6bb2pss.js";
8
8
  import {
9
9
  buildProxy,
10
10
  findRoute
package/dist/effect.js CHANGED
@@ -5,13 +5,13 @@ import"./chunk-k3ntysxx.js";
5
5
  import {
6
6
  DalpApiError2
7
7
  } from "./chunk-c23zwtpw.js";
8
- import"./chunk-hcpk89xj.js";
8
+ import"./chunk-s779b1kf.js";
9
9
  import {
10
10
  createTransport,
11
11
  streamRequest,
12
12
  sendRequest,
13
13
  queryKeyFor2
14
- } from "./chunk-st589hs9.js";
14
+ } from "./chunk-x6bb2pss.js";
15
15
  import {
16
16
  buildProxy,
17
17
  findRoute
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  SECRET_REDACTION_MARKER2,
21
21
  Secret2,
22
22
  secret2
23
- } from "./chunk-hcpk89xj.js";
23
+ } from "./chunk-s779b1kf.js";
24
24
  import {
25
25
  DALP_CONTEXT_HEADERS2,
26
26
  serializeDalpContextHeaders2,
@@ -30,16 +30,16 @@ import {
30
30
  STREAM_FAILED_ERROR_CODE2,
31
31
  STREAM_UNREADABLE_BODY_ERROR_CODE2,
32
32
  decodeEventStream2
33
- } from "./chunk-st589hs9.js";
33
+ } from "./chunk-x6bb2pss.js";
34
34
  import {
35
35
  makeCookieStore2,
36
36
  createCookieStoreFetch2,
37
37
  SDK_VERSION2,
38
38
  SDK_USER_AGENT2
39
- } from "./chunk-f8gz7nav.js";
39
+ } from "./chunk-t7ck4dx3.js";
40
40
  import {
41
41
  buildDalpClient
42
- } from "./chunk-ybds48n1.js";
42
+ } from "./chunk-xmd617v1.js";
43
43
  import"./chunk-h9e65x5z.js";
44
44
 
45
45
  // src/proxy/client.ts
@@ -1,11 +1,11 @@
1
1
  import"./chunk-k3ntysxx.js";
2
2
  import"./chunk-c23zwtpw.js";
3
- import"./chunk-hcpk89xj.js";
3
+ import"./chunk-s779b1kf.js";
4
4
  import {
5
5
  canonicalize2,
6
6
  queryKeyFor2,
7
7
  UI_SETTLEMENT_TIMEOUT_MS2
8
- } from "./chunk-st589hs9.js";
8
+ } from "./chunk-x6bb2pss.js";
9
9
  import"./chunk-h9e65x5z.js";
10
10
  export {
11
11
  UI_SETTLEMENT_TIMEOUT_MS2 as UI_SETTLEMENT_TIMEOUT_MS,
@@ -3,11 +3,11 @@ import {
3
3
  isDalpApiError2,
4
4
  answeredByRoute
5
5
  } from "../chunk-c23zwtpw.js";
6
- import"../chunk-hcpk89xj.js";
7
- import"../chunk-st589hs9.js";
6
+ import"../chunk-s779b1kf.js";
7
+ import"../chunk-x6bb2pss.js";
8
8
  import {
9
9
  buildDalpClient
10
- } from "../chunk-ybds48n1.js";
10
+ } from "../chunk-xmd617v1.js";
11
11
  import"../chunk-h9e65x5z.js";
12
12
 
13
13
  // src/generated/console-routes.ts
package/dist/runtime.d.ts CHANGED
@@ -4,4 +4,5 @@ export declare function runtimeCredentials(runtime: DalpRuntime): RequestCredent
4
4
  export declare function refuseCrossOriginBrowserSession(runtime: DalpRuntime, baseUrl: string, usesApiKey: boolean): void;
5
5
  export declare function isBufferingFetch(fetchImpl: unknown): boolean;
6
6
  export declare function keepBufferingMarker<Wrapper extends object>(wrapped: unknown, wrapper: Wrapper): Wrapper;
7
+ export declare function globalFetch(): (input: RequestInfo | URL, init?: RequestInit) => Promise<Response>;
7
8
  export declare function refuseBundledApiKey(runtime: DalpRuntime): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "3.1.26-main.39857346481",
3
+ "version": "3.1.26-main.39864892531",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",
@@ -133,7 +133,7 @@
133
133
  "dependencies": {
134
134
  "@better-auth/api-key": "1.7.10",
135
135
  "@better-auth/passkey": "1.7.10",
136
- "@domains/webhooks-contract": "3.1.26-main.39857346481",
136
+ "@domains/webhooks-contract": "3.1.26-main.39864892531",
137
137
  "better-auth": "1.7.10",
138
138
  "better-call": "1.4.2",
139
139
  "dnum": "2.18.0",
@@ -142,14 +142,14 @@
142
142
  },
143
143
  "devDependencies": {
144
144
  "@arethetypeswrong/cli": "0.18.5",
145
- "@domains/trading-venue-contract": "3.1.26-main.39857346481",
146
- "@kernel/evm": "3.1.26-main.39857346481",
147
- "@kernel/json": "3.1.26-main.39857346481",
145
+ "@domains/trading-venue-contract": "3.1.26-main.39864892531",
146
+ "@kernel/evm": "3.1.26-main.39864892531",
147
+ "@kernel/json": "3.1.26-main.39864892531",
148
148
  "@tanstack/react-query": "5.104.3",
149
- "@testkit/effect-bun-test": "3.1.26-main.39857346481",
150
- "@tools/typescript-config": "3.1.26-main.39857346481",
149
+ "@testkit/effect-bun-test": "3.1.26-main.39864892531",
150
+ "@tools/typescript-config": "3.1.26-main.39864892531",
151
151
  "@types/bun": "1.4.3",
152
- "@wire/http-contract": "3.1.26-main.39857346481",
152
+ "@wire/http-contract": "3.1.26-main.39864892531",
153
153
  "abort-controller": "3.0.0",
154
154
  "effect": "4.0.5",
155
155
  "publint": "0.3.25",