@settlemint/dalp-cli 3.1.11-main.33738278203 → 3.1.11-main.33739619708
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/dalp.js +21 -5
- package/dist/dalp.js.map +3 -3
- package/package.json +1 -1
package/dist/dalp.js
CHANGED
|
@@ -50074,6 +50074,8 @@ async function resolveSettlement(transport, payload, options, now = Date.now, sl
|
|
|
50074
50074
|
}
|
|
50075
50075
|
|
|
50076
50076
|
// ../sdk/src/proxy/sse.ts
|
|
50077
|
+
var RESERVED_STREAM_FAILURE_EVENT = "effect/httpapi/stream/failure";
|
|
50078
|
+
var STREAM_FAILED_ERROR_CODE = "sdk.stream.FAILED";
|
|
50077
50079
|
function parseFrame(raw) {
|
|
50078
50080
|
try {
|
|
50079
50081
|
return JSON.parse(raw.data);
|
|
@@ -50081,6 +50083,20 @@ function parseFrame(raw) {
|
|
|
50081
50083
|
return raw.data;
|
|
50082
50084
|
}
|
|
50083
50085
|
}
|
|
50086
|
+
function dispatchFrame(raw) {
|
|
50087
|
+
if (raw.event === RESERVED_STREAM_FAILURE_EVENT) {
|
|
50088
|
+
throw makeDalpApiError(new DalpSdkError({
|
|
50089
|
+
code: STREAM_FAILED_ERROR_CODE,
|
|
50090
|
+
category: "dependency",
|
|
50091
|
+
retryable: true,
|
|
50092
|
+
message: "The DALP API stream failed before it completed.",
|
|
50093
|
+
why: "The route ended the stream with its reserved failure event, so the remaining frames were never sent.",
|
|
50094
|
+
fix: "Retry the stream. If it fails again, read the route's logs for the failure the server recorded.",
|
|
50095
|
+
details: { cause: raw.data }
|
|
50096
|
+
}));
|
|
50097
|
+
}
|
|
50098
|
+
return parseFrame(raw);
|
|
50099
|
+
}
|
|
50084
50100
|
function readBlock(block) {
|
|
50085
50101
|
let event = "message";
|
|
50086
50102
|
const data2 = [];
|
|
@@ -50122,7 +50138,7 @@ async function* decodeEventStream(body) {
|
|
|
50122
50138
|
const raw = readBlock(buffer.slice(0, boundary));
|
|
50123
50139
|
buffer = buffer.slice(boundary + 2);
|
|
50124
50140
|
if (raw !== undefined) {
|
|
50125
|
-
yield
|
|
50141
|
+
yield dispatchFrame(raw);
|
|
50126
50142
|
}
|
|
50127
50143
|
boundary = buffer.indexOf(`
|
|
50128
50144
|
|
|
@@ -50131,7 +50147,7 @@ async function* decodeEventStream(body) {
|
|
|
50131
50147
|
}
|
|
50132
50148
|
const trailing = readBlock(buffer);
|
|
50133
50149
|
if (trailing !== undefined) {
|
|
50134
|
-
yield
|
|
50150
|
+
yield dispatchFrame(trailing);
|
|
50135
50151
|
}
|
|
50136
50152
|
} finally {
|
|
50137
50153
|
await reader.cancel().catch(() => {});
|
|
@@ -50241,7 +50257,7 @@ var WEBHOOK_MANIFEST_VERSION = Webhook.MANIFEST_VERSION;
|
|
|
50241
50257
|
// ../sdk/package.json
|
|
50242
50258
|
var package_default = {
|
|
50243
50259
|
name: "@settlemint/dalp-sdk",
|
|
50244
|
-
version: "3.1.11-main.
|
|
50260
|
+
version: "3.1.11-main.33739619708",
|
|
50245
50261
|
private: false,
|
|
50246
50262
|
description: "Fully typed SDK for the DALP tokenization platform API",
|
|
50247
50263
|
homepage: "https://settlemint.com",
|
|
@@ -116959,7 +116975,7 @@ async function runCommand(context, operation, errorContext = UNKNOWN_COMMAND_ERR
|
|
|
116959
116975
|
// package.json
|
|
116960
116976
|
var package_default2 = {
|
|
116961
116977
|
name: "@settlemint/dalp-cli",
|
|
116962
|
-
version: "3.1.11-main.
|
|
116978
|
+
version: "3.1.11-main.33739619708",
|
|
116963
116979
|
private: false,
|
|
116964
116980
|
description: "CLI for the Digital Asset Lifecycle Platform \u2014 manage tokens, identities, compliance, and more from the command line.",
|
|
116965
116981
|
homepage: "https://settlemint.com",
|
|
@@ -118264,4 +118280,4 @@ if (false) {}
|
|
|
118264
118280
|
// src/bin.ts
|
|
118265
118281
|
await cli.serve();
|
|
118266
118282
|
|
|
118267
|
-
//# debugId=
|
|
118283
|
+
//# debugId=E314F7778091679C64756E2164756E21
|