@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 +1 -1
- package/dist/bundler.js +2 -2
- package/dist/{chunk-tmk1f2yb.js → chunk-6cbetv6m.js} +1 -1
- package/dist/{chunk-def7rqy6.js → chunk-mdaqtrdz.js} +2 -0
- package/dist/{chunk-02f62ghn.js → chunk-zd04jccg.js} +1 -1
- package/dist/effect.d.ts +2 -0
- package/dist/effect.js +4 -2
- package/dist/index.js +3 -3
- package/dist/react-query.js +1 -1
- package/package.json +1 -1
package/dist/auth.js
CHANGED
package/dist/bundler.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createDalpClient
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6cbetv6m.js";
|
|
4
4
|
import"./chunk-f4t1bm86.js";
|
|
5
|
-
import"./chunk-
|
|
5
|
+
import"./chunk-mdaqtrdz.js";
|
|
6
6
|
import"./chunk-fjnq61hj.js";
|
|
7
7
|
import"./chunk-9k284df4.js";
|
|
8
8
|
import"./chunk-h12fatty.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.
|
|
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-
|
|
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.
|
|
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-
|
|
6
|
+
} from "./chunk-zd04jccg.js";
|
|
7
7
|
import {
|
|
8
8
|
createDalpClient
|
|
9
|
-
} from "./chunk-
|
|
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-
|
|
23
|
+
} from "./chunk-mdaqtrdz.js";
|
|
24
24
|
import"./chunk-fjnq61hj.js";
|
|
25
25
|
import"./chunk-9k284df4.js";
|
|
26
26
|
import {
|
package/dist/react-query.js
CHANGED
package/package.json
CHANGED