@stripe/link-cli 0.14.2 → 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.
Files changed (2) hide show
  1. package/dist/cli.js +4 -4
  2. 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.14.2"}`;
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 cannot be used when execution-method is link_pay_token; use request-approval instead"
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.14.2";
7583
+ var cliVersion = "0.15.0";
7584
7584
  var cliName = "@stripe/link-cli";
7585
7585
  var defaultHeaders = {
7586
7586
  "User-Agent": `link-cli/${cliVersion}`
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stripe/link-cli",
3
- "version": "0.14.2",
3
+ "version": "0.15.0",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "link-cli": "./dist/cli.js"