@stripe/link-cli 0.14.1 → 0.15.0
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/cli.js +4 -4
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -2799,7 +2799,7 @@ function buildHeaders(data, headers) {
|
|
|
2799
2799
|
if (key) result[key] = value;
|
|
2800
2800
|
}
|
|
2801
2801
|
if (!Object.keys(result).some((key) => key.toLowerCase() === "user-agent")) {
|
|
2802
|
-
result["User-Agent"] = `link-cli/${"0.
|
|
2802
|
+
result["User-Agent"] = `link-cli/${"0.15.0"}`;
|
|
2803
2803
|
}
|
|
2804
2804
|
return result;
|
|
2805
2805
|
}
|
|
@@ -6340,10 +6340,10 @@ function createSpendRequestCli(repository, authStorage2, envAccessToken2) {
|
|
|
6340
6340
|
message: "test cannot be used when execution-method is link_pay_token"
|
|
6341
6341
|
});
|
|
6342
6342
|
}
|
|
6343
|
-
if (opts.approve) {
|
|
6343
|
+
if (opts.approve && requestApproval) {
|
|
6344
6344
|
return c.error({
|
|
6345
6345
|
code: "INVALID_INPUT",
|
|
6346
|
-
message: "approve
|
|
6346
|
+
message: "--approve with --execution-method link_pay_token requires --no-request-approval"
|
|
6347
6347
|
});
|
|
6348
6348
|
}
|
|
6349
6349
|
if (opts.merchantName || opts.merchantUrl) {
|
|
@@ -7580,7 +7580,7 @@ function cacheUpdateInfo(value, ttlMs = UPDATE_CACHE_TTL_MS) {
|
|
|
7580
7580
|
}
|
|
7581
7581
|
|
|
7582
7582
|
// src/cli.tsx
|
|
7583
|
-
var cliVersion = "0.
|
|
7583
|
+
var cliVersion = "0.15.0";
|
|
7584
7584
|
var cliName = "@stripe/link-cli";
|
|
7585
7585
|
var defaultHeaders = {
|
|
7586
7586
|
"User-Agent": `link-cli/${cliVersion}`
|