@subly_fi/pay 0.6.0 → 0.6.1
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/pay.js +5 -1
- package/dist/setup-link.js +9 -1
- package/package.json +1 -1
package/dist/pay.js
CHANGED
|
@@ -2315,13 +2315,17 @@ try {
|
|
|
2315
2315
|
}
|
|
2316
2316
|
} catch (error) {
|
|
2317
2317
|
if (error instanceof StandardX402PayError) {
|
|
2318
|
+
const refusalApprovalId = error.reason === "approval_required" ? error.detail?.approvalId : void 0;
|
|
2318
2319
|
process.stdout.write(
|
|
2319
2320
|
`${JSON.stringify(
|
|
2320
2321
|
{
|
|
2321
2322
|
paid: false,
|
|
2322
2323
|
reason: error.reason,
|
|
2323
2324
|
message: error.message,
|
|
2324
|
-
detail: error.detail ?? null
|
|
2325
|
+
detail: error.detail ?? null,
|
|
2326
|
+
...refusalApprovalId === void 0 ? {} : {
|
|
2327
|
+
retry: `pay fetch "${url}"${maxAmountArg === void 0 ? "" : ` ${maxAmountArg}`} ${refusalApprovalId}`
|
|
2328
|
+
}
|
|
2325
2329
|
},
|
|
2326
2330
|
null,
|
|
2327
2331
|
2
|
package/dist/setup-link.js
CHANGED
|
@@ -1422,7 +1422,15 @@ var FLAG_TO_POLICY_KEY = {
|
|
|
1422
1422
|
var policy = {};
|
|
1423
1423
|
var initialDepositRawUsdc;
|
|
1424
1424
|
var mandateTtlDays;
|
|
1425
|
-
var args =
|
|
1425
|
+
var args = [];
|
|
1426
|
+
for (const raw of process.argv.slice(2)) {
|
|
1427
|
+
const eq = raw.startsWith("--") ? raw.indexOf("=") : -1;
|
|
1428
|
+
if (eq > 0) {
|
|
1429
|
+
args.push(raw.slice(0, eq), raw.slice(eq + 1));
|
|
1430
|
+
} else {
|
|
1431
|
+
args.push(raw);
|
|
1432
|
+
}
|
|
1433
|
+
}
|
|
1426
1434
|
for (let i = 0; i < args.length; i += 2) {
|
|
1427
1435
|
const flag = args[i];
|
|
1428
1436
|
const value = args[i + 1];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@subly_fi/pay",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Subly client: pay compatible standard x402 Solana USDC exact APIs from Kamino vault yield — the seller needs no Subly integration. Ships an MCP server and a one-shot pay/deposit CLI; non-custodial (signs locally with your own key).",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|