@settlemint/dalp-sdk 3.1.18-main.33824883355 → 3.1.18-main.33825816214

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
@@ -2,7 +2,7 @@ import {
2
2
  SDK_USER_AGENT,
3
3
  createCookieStoreFetch,
4
4
  makeCookieStore
5
- } from "./chunk-02f62ghn.js";
5
+ } from "./chunk-zd04jccg.js";
6
6
  import {
7
7
  normalizeDalpBaseUrl,
8
8
  secret,
package/dist/bundler.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import {
2
2
  createDalpClient
3
- } from "./chunk-tmk1f2yb.js";
3
+ } from "./chunk-6cbetv6m.js";
4
4
  import"./chunk-f4t1bm86.js";
5
- import"./chunk-def7rqy6.js";
5
+ import"./chunk-mdaqtrdz.js";
6
6
  import"./chunk-fjnq61hj.js";
7
7
  import"./chunk-9k284df4.js";
8
8
  import"./chunk-h12fatty.js";
@@ -8,7 +8,7 @@ import {
8
8
  createTransport,
9
9
  sendRequest,
10
10
  streamRequest
11
- } from "./chunk-def7rqy6.js";
11
+ } from "./chunk-mdaqtrdz.js";
12
12
  import {
13
13
  data
14
14
  } from "./chunk-9k284df4.js";
@@ -106,9 +106,11 @@ var makeDalpApiError = (error) => {
106
106
  fix: "Check network connectivity and retry the request."
107
107
  });
108
108
  }
109
+ const detailsId = sdkError.details?.id;
109
110
  return new DalpApiError({
110
111
  message: sdkError.message,
111
112
  cause: sdkError,
113
+ id: typeof detailsId === "string" ? detailsId : undefined,
112
114
  code: sdkError.code,
113
115
  category: mapSdkErrorCategory(sdkError.category),
114
116
  retryable: sdkError.retryable,
@@ -102,7 +102,7 @@ function createCookieStoreFetch(cookieStore, fetchImpl = globalThis.fetch) {
102
102
  // package.json
103
103
  var package_default = {
104
104
  name: "@settlemint/dalp-sdk",
105
- version: "3.1.18-main.33824883355",
105
+ version: "3.1.18-main.33825816214",
106
106
  private: false,
107
107
  description: "Fully typed SDK for the DALP tokenization platform API",
108
108
  homepage: "https://settlemint.com",
package/dist/effect.d.ts CHANGED
@@ -29,6 +29,8 @@ export declare class DalpRequestError extends Error {
29
29
  readonly _tag = "DalpRequestError";
30
30
  /** Stable DALP error id when the platform supplied one, else the SDK code. */
31
31
  readonly id: string;
32
+ /** The DALP error code, mirroring `DalpApiError.code`. */
33
+ readonly code: string;
32
34
  readonly status: number | undefined;
33
35
  readonly retryable: boolean;
34
36
  readonly routeId: string;
package/dist/effect.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  queryKeyFor,
9
9
  sendRequest,
10
10
  streamRequest
11
- } from "./chunk-def7rqy6.js";
11
+ } from "./chunk-mdaqtrdz.js";
12
12
  import"./chunk-fjnq61hj.js";
13
13
  import {
14
14
  data
@@ -21,6 +21,7 @@ import * as Effect from "effect/Effect";
21
21
  class DalpRequestError extends Error {
22
22
  _tag = "DalpRequestError";
23
23
  id;
24
+ code;
24
25
  status;
25
26
  retryable;
26
27
  routeId;
@@ -30,7 +31,8 @@ class DalpRequestError extends Error {
30
31
  this.name = "DalpRequestError";
31
32
  this._tag = "DalpRequestError";
32
33
  this.routeId = routeId;
33
- this.id = api?.code ?? "sdk.transport.REQUEST_FAILED";
34
+ this.code = api?.code ?? "sdk.transport.REQUEST_FAILED";
35
+ this.id = api?.id ?? this.code;
34
36
  this.status = api?.status;
35
37
  this.retryable = api?.retryable ?? true;
36
38
  }
package/dist/index.js CHANGED
@@ -3,10 +3,10 @@ import {
3
3
  SDK_VERSION,
4
4
  createCookieStoreFetch,
5
5
  makeCookieStore
6
- } from "./chunk-02f62ghn.js";
6
+ } from "./chunk-zd04jccg.js";
7
7
  import {
8
8
  createDalpClient
9
- } from "./chunk-tmk1f2yb.js";
9
+ } from "./chunk-6cbetv6m.js";
10
10
  import"./chunk-f4t1bm86.js";
11
11
  import {
12
12
  DEFAULT_SETTLEMENT_TIMEOUT_MS,
@@ -20,7 +20,7 @@ import {
20
20
  findDalpSdkError,
21
21
  isDalpApiError,
22
22
  makeDalpApiError
23
- } from "./chunk-def7rqy6.js";
23
+ } from "./chunk-mdaqtrdz.js";
24
24
  import"./chunk-fjnq61hj.js";
25
25
  import"./chunk-9k284df4.js";
26
26
  import {
@@ -2,7 +2,7 @@ import {
2
2
  UI_SETTLEMENT_TIMEOUT_MS,
3
3
  canonicalize,
4
4
  queryKeyFor
5
- } from "./chunk-def7rqy6.js";
5
+ } from "./chunk-mdaqtrdz.js";
6
6
  import"./chunk-fjnq61hj.js";
7
7
  import"./chunk-h12fatty.js";
8
8
  import"./chunk-y0d2c7kp.js";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@settlemint/dalp-sdk",
3
- "version": "3.1.18-main.33824883355",
3
+ "version": "3.1.18-main.33825816214",
4
4
  "private": false,
5
5
  "description": "Fully typed SDK for the DALP tokenization platform API",
6
6
  "homepage": "https://settlemint.com",