@capxul/cli 4.20.0-beta.21 → 4.20.0-beta.23
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/README.md +9 -7
- package/dist/browser/signer.js.map +1 -1
- package/dist/main.mjs +14 -10
- package/dist/main.mjs.map +1 -1
- package/package.json +3 -3
package/dist/main.mjs
CHANGED
|
@@ -16680,7 +16680,7 @@ function signerFailure(source, operation, cause) {
|
|
|
16680
16680
|
}
|
|
16681
16681
|
//#endregion
|
|
16682
16682
|
//#region ../../packages/sdk/package.json
|
|
16683
|
-
var version$3 = "4.20.0-beta.
|
|
16683
|
+
var version$3 = "4.20.0-beta.23";
|
|
16684
16684
|
//#endregion
|
|
16685
16685
|
//#region ../../packages/sdk/src/telemetry/exception-projection.ts
|
|
16686
16686
|
/** Fixed fallback for failures that have no safe message. */
|
|
@@ -19697,6 +19697,7 @@ function mapActorRequest(request, payer) {
|
|
|
19697
19697
|
function mapInboxItem(item) {
|
|
19698
19698
|
return {
|
|
19699
19699
|
id: item.id,
|
|
19700
|
+
...item.linkToken === void 0 ? {} : { linkToken: item.linkToken },
|
|
19700
19701
|
issuer: item.issuer,
|
|
19701
19702
|
amount: item.amount,
|
|
19702
19703
|
reference: item.reference,
|
|
@@ -69966,8 +69967,8 @@ function captureException(telemetry, error, context) {
|
|
|
69966
69967
|
}
|
|
69967
69968
|
//#endregion
|
|
69968
69969
|
//#region src/runtime/version.ts
|
|
69969
|
-
const cliVersion = "4.20.0-beta.
|
|
69970
|
-
const sdkVersion = "4.20.0-beta.
|
|
69970
|
+
const cliVersion = "4.20.0-beta.23";
|
|
69971
|
+
const sdkVersion = "4.20.0-beta.23";
|
|
69971
69972
|
const ReleaseVersion = Schema.String.check(Schema.isMaxLength(256), Schema.isPattern(/^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+[0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*)?$/u)).pipe(Schema.brand("CliReleaseVersion"));
|
|
69972
69973
|
const parts = (version) => {
|
|
69973
69974
|
const [core = "", ...prerelease] = version.split("+")[0].split("-");
|
|
@@ -75260,13 +75261,16 @@ const referenceLabel = (ref) => {
|
|
|
75260
75261
|
case "handle": return ref.handle;
|
|
75261
75262
|
}
|
|
75262
75263
|
};
|
|
75263
|
-
const requestCheckout = (item, origin) =>
|
|
75264
|
-
|
|
75265
|
-
|
|
75266
|
-
|
|
75267
|
-
linkToken
|
|
75268
|
-
|
|
75269
|
-
|
|
75264
|
+
const requestCheckout = (item, origin) => {
|
|
75265
|
+
const instruction = item.documents.find((document) => document.role === "instruction" && (document.kind === "invoice" || document.kind === "memo"));
|
|
75266
|
+
return {
|
|
75267
|
+
...item,
|
|
75268
|
+
..."linkToken" in item && item.linkToken !== void 0 && instruction !== void 0 ? { checkoutUrl: checkoutUrl(origin, {
|
|
75269
|
+
kind: instruction.kind === "invoice" ? "invoice" : "request",
|
|
75270
|
+
linkToken: item.linkToken
|
|
75271
|
+
}) } : {}
|
|
75272
|
+
};
|
|
75273
|
+
};
|
|
75270
75274
|
const requestLines = (item, email, orgId = null) => [
|
|
75271
75275
|
`Request ${terminalText(item.id)}`,
|
|
75272
75276
|
...item.checkoutUrl === void 0 ? [] : [` Checkout: ${terminalText(item.checkoutUrl)}`],
|