@waitcher/cli 0.2.4 → 0.2.5

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.mjs +8 -4
  2. package/package.json +1 -1
package/dist/cli.mjs CHANGED
@@ -62023,7 +62023,7 @@ Authentication
62023
62023
 
62024
62024
  Plans and billing
62025
62025
  account billing Plan, limits and subscription status
62026
- account upgrade Stripe Checkout URL for the pro plan (human session)
62026
+ account upgrade [--yearly] Stripe Checkout URL for the pro plan (human session)
62027
62027
  account billing-portal Stripe portal URL to change payment or cancel
62028
62028
  The plan changes only when Stripe confirms the payment, never on the return page.
62029
62029
  Billing appears when the server reports features.billing.
@@ -62486,7 +62486,7 @@ ${exitCodes}
62486
62486
  // package.json
62487
62487
  var package_default = {
62488
62488
  name: "@waitcher/cli",
62489
- version: "0.2.4",
62489
+ version: "0.2.5",
62490
62490
  description: "Synthetic monitoring from your repository: deploy HTTP, certificate, heartbeat, API and browser monitors from waitcher.json.",
62491
62491
  license: "SEE LICENSE IN LICENSE.txt",
62492
62492
  author: "S\u0142awomir Radzymi\u0144ski",
@@ -62677,6 +62677,7 @@ async function main() {
62677
62677
  enable: { type: "boolean" },
62678
62678
  "dry-run": { type: "boolean" },
62679
62679
  yes: { type: "boolean" },
62680
+ yearly: { type: "boolean" },
62680
62681
  browser: { type: "boolean" },
62681
62682
  global: { type: "boolean" },
62682
62683
  wait: { type: "boolean" },
@@ -62772,7 +62773,7 @@ async function main() {
62772
62773
  "account budget": ["daily-invocations", "expected-revision"],
62773
62774
  "account settings": [],
62774
62775
  "account billing": [],
62775
- "account upgrade": [],
62776
+ "account upgrade": ["yearly"],
62776
62777
  "account billing-portal": [],
62777
62778
  "account configure": ["file", "expected-revision"],
62778
62779
  "account activity": ["before"],
@@ -64652,7 +64653,10 @@ async function main() {
64652
64653
  else if (command === "account upgrade" || command === "account billing-portal") {
64653
64654
  const { url: url3 } = await api(
64654
64655
  command === "account upgrade" ? "billing/checkout" : "billing/portal",
64655
- { method: "POST", body: {} }
64656
+ {
64657
+ method: "POST",
64658
+ body: command === "account upgrade" && v.yearly ? { interval: "year" } : {}
64659
+ }
64656
64660
  );
64657
64661
  result2 = {
64658
64662
  event: command === "account upgrade" ? "checkout_created" : "portal_created",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waitcher/cli",
3
- "version": "0.2.4",
3
+ "version": "0.2.5",
4
4
  "description": "Synthetic monitoring from your repository: deploy HTTP, certificate, heartbeat, API and browser monitors from waitcher.json.",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "Sławomir Radzymiński",