@vonpay/checkout-cli 0.9.0 → 0.11.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/README.md +6 -2
- package/dist/app-info.d.ts +5 -0
- package/dist/app-info.d.ts.map +1 -0
- package/dist/app-info.js +11 -0
- package/dist/app-info.js.map +1 -0
- package/dist/client-factory.d.ts.map +1 -1
- package/dist/client-factory.js +9 -4
- package/dist/client-factory.js.map +1 -1
- package/dist/commands/capabilities.js +2 -2
- package/dist/commands/capabilities.js.map +1 -1
- package/dist/commands/checkout.d.ts.map +1 -1
- package/dist/commands/checkout.js +9 -0
- package/dist/commands/checkout.js.map +1 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +2 -0
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/health.d.ts.map +1 -1
- package/dist/commands/health.js +11 -4
- package/dist/commands/health.js.map +1 -1
- package/dist/commands/listen.d.ts.map +1 -1
- package/dist/commands/listen.js +22 -9
- package/dist/commands/listen.js.map +1 -1
- package/dist/commands/payment-intents.d.ts.map +1 -1
- package/dist/commands/payment-intents.js +7 -7
- package/dist/commands/payment-intents.js.map +1 -1
- package/dist/commands/refunds.d.ts.map +1 -1
- package/dist/commands/refunds.js +12 -9
- package/dist/commands/refunds.js.map +1 -1
- package/dist/commands/sessions.d.ts +13 -0
- package/dist/commands/sessions.d.ts.map +1 -1
- package/dist/commands/sessions.js +58 -18
- package/dist/commands/sessions.js.map +1 -1
- package/dist/commands/tokens.js +2 -2
- package/dist/commands/tokens.js.map +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +4 -2
- package/dist/config.js.map +1 -1
- package/dist/utils/errors.d.ts +74 -1
- package/dist/utils/errors.d.ts.map +1 -1
- package/dist/utils/errors.js +127 -13
- package/dist/utils/errors.js.map +1 -1
- package/dist/utils/json-errors.d.ts +16 -0
- package/dist/utils/json-errors.d.ts.map +1 -0
- package/dist/utils/json-errors.js +41 -0
- package/dist/utils/json-errors.js.map +1 -0
- package/dist/utils/live-key.d.ts.map +1 -1
- package/dist/utils/live-key.js +3 -2
- package/dist/utils/live-key.js.map +1 -1
- package/dist/utils/spinner.d.ts +15 -0
- package/dist/utils/spinner.d.ts.map +1 -0
- package/dist/utils/spinner.js +18 -0
- package/dist/utils/spinner.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"live-key.js","sourceRoot":"","sources":["../../src/utils/live-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"live-key.js","sourceRoot":"","sources":["../../src/utils/live-key.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAE/C,8EAA8E;AAC9E,wEAAwE;AACxE,sCAAsC;AACtC,OAAO,EAAE,SAAS,EAAE,CAAC;AAMrB;;;;;;;;;;;;;GAaG;AACH,MAAM,UAAU,uBAAuB,CACrC,GAAW,EACX,IAAkB,EAClB,SAAiB,EACjB,WAAW,GAAG,iBAAiB;IAE/B,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;QAAE,OAAO;IAC5B,IAAI,IAAI,CAAC,WAAW,EAAE,CAAC;QACrB,OAAO,CAAC,IAAI,CACV,KAAK,CAAC,MAAM,CACV,qBAAqB,SAAS,IAAI,WAAW,iDAAiD,CAC/F,CACF,CAAC;QACF,OAAO;IACT,CAAC;IACD,MAAM,OAAO,GAAG,eAAe,SAAS,2EAA2E,CAAC;IACpH,gBAAgB,CAAC,OAAO,EAAE,KAAK,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,kBAAkB,CAAC,GAAW,EAAE,IAAY;IAC1D,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC;QAAE,OAAO;IAC5B,OAAO,CAAC,IAAI,CACV,KAAK,CAAC,MAAM,CACV,oBAAoB,IAAI,mJAAmJ,CAC5K,CACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { type Ora } from "ora";
|
|
2
|
+
/**
|
|
3
|
+
* Start the progress spinner for a command — silent under `--json`.
|
|
4
|
+
*
|
|
5
|
+
* ⛔ When stderr is not a terminal (a script, a CI step) ora does not animate:
|
|
6
|
+
* it prints its text once, as `- Capturing payment intent...`, to stderr. Under
|
|
7
|
+
* `--json` that put a non-JSON line in front of the JSON error, so stderr did
|
|
8
|
+
* not parse. `doctor` already silenced its spinner under `--json` for the same
|
|
9
|
+
* reason; every command now does. Without `--json` nothing changes.
|
|
10
|
+
*
|
|
11
|
+
* Reads the per-run `--json` setting made by the `preAction` hook in
|
|
12
|
+
* `commands/checkout.ts`, which runs before any command's action.
|
|
13
|
+
*/
|
|
14
|
+
export declare function startSpinner(text: string): Ora;
|
|
15
|
+
//# sourceMappingURL=spinner.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/utils/spinner.ts"],"names":[],"mappings":"AAAA,OAAY,EAAE,KAAK,GAAG,EAAE,MAAM,KAAK,CAAC;AAGpC;;;;;;;;;;;GAWG;AACH,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,CAE9C"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import ora from "ora";
|
|
2
|
+
import { jsonErrorsEnabled } from "./json-errors.js";
|
|
3
|
+
/**
|
|
4
|
+
* Start the progress spinner for a command — silent under `--json`.
|
|
5
|
+
*
|
|
6
|
+
* ⛔ When stderr is not a terminal (a script, a CI step) ora does not animate:
|
|
7
|
+
* it prints its text once, as `- Capturing payment intent...`, to stderr. Under
|
|
8
|
+
* `--json` that put a non-JSON line in front of the JSON error, so stderr did
|
|
9
|
+
* not parse. `doctor` already silenced its spinner under `--json` for the same
|
|
10
|
+
* reason; every command now does. Without `--json` nothing changes.
|
|
11
|
+
*
|
|
12
|
+
* Reads the per-run `--json` setting made by the `preAction` hook in
|
|
13
|
+
* `commands/checkout.ts`, which runs before any command's action.
|
|
14
|
+
*/
|
|
15
|
+
export function startSpinner(text) {
|
|
16
|
+
return ora({ text, isSilent: jsonErrorsEnabled() }).start();
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=spinner.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/utils/spinner.ts"],"names":[],"mappings":"AAAA,OAAO,GAAiB,MAAM,KAAK,CAAC;AACpC,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,YAAY,CAAC,IAAY;IACvC,OAAO,GAAG,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,iBAAiB,EAAE,EAAE,CAAC,CAAC,KAAK,EAAE,CAAC;AAC9D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonpay/checkout-cli",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.0",
|
|
4
4
|
"description": "Von Payments CLI — developer tools for checkout integration",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
"node": ">=20"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@vonpay/checkout-node": "^3.
|
|
18
|
+
"@vonpay/checkout-node": "^3.4.0",
|
|
19
19
|
"commander": "^13.0.0",
|
|
20
20
|
"chalk": "^5.4.0",
|
|
21
21
|
"ora": "^8.2.0"
|