paybox-emulator 0.1.0 → 0.1.2
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/paybox.js +13 -5
- package/package.json +2 -2
package/dist/paybox.js
CHANGED
|
@@ -380,6 +380,15 @@ var init_coverage_report = __esm({
|
|
|
380
380
|
}
|
|
381
381
|
});
|
|
382
382
|
|
|
383
|
+
// packages/shared/src/version.ts
|
|
384
|
+
var VERSION;
|
|
385
|
+
var init_version = __esm({
|
|
386
|
+
"packages/shared/src/version.ts"() {
|
|
387
|
+
"use strict";
|
|
388
|
+
VERSION = true ? "0.1.2" : "0.0.0-dev";
|
|
389
|
+
}
|
|
390
|
+
});
|
|
391
|
+
|
|
383
392
|
// packages/shared/src/index.ts
|
|
384
393
|
var init_src = __esm({
|
|
385
394
|
"packages/shared/src/index.ts"() {
|
|
@@ -394,6 +403,7 @@ var init_src = __esm({
|
|
|
394
403
|
init_hosted_page();
|
|
395
404
|
init_coverage();
|
|
396
405
|
init_coverage_report();
|
|
406
|
+
init_version();
|
|
397
407
|
}
|
|
398
408
|
});
|
|
399
409
|
|
|
@@ -19820,7 +19830,7 @@ var init_control_api = __esm({
|
|
|
19820
19830
|
});
|
|
19821
19831
|
fastify.get("/health", async () => ({
|
|
19822
19832
|
status: "ok",
|
|
19823
|
-
version:
|
|
19833
|
+
version: VERSION,
|
|
19824
19834
|
time: clock.nowISO(),
|
|
19825
19835
|
clock: clock.state()
|
|
19826
19836
|
}));
|
|
@@ -20432,7 +20442,7 @@ function buildOpenApiDocument(context) {
|
|
|
20432
20442
|
openapi: "3.1.0",
|
|
20433
20443
|
info: {
|
|
20434
20444
|
title: "paybox \u2014 local payment infrastructure emulator",
|
|
20435
|
-
version:
|
|
20445
|
+
version: VERSION,
|
|
20436
20446
|
description: "Provider-compatible payment APIs served from localhost. No real money moves. Provider routes mirror the upstream contract; /api/* is the emulator control plane."
|
|
20437
20447
|
},
|
|
20438
20448
|
servers: [{ url: context.baseUrl }],
|
|
@@ -20665,6 +20675,7 @@ function buildOpenApiDocument(context) {
|
|
|
20665
20675
|
var init_openapi = __esm({
|
|
20666
20676
|
"apps/api/src/openapi.ts"() {
|
|
20667
20677
|
"use strict";
|
|
20678
|
+
init_src();
|
|
20668
20679
|
}
|
|
20669
20680
|
});
|
|
20670
20681
|
|
|
@@ -25700,9 +25711,6 @@ ${pc.bold(text)}
|
|
|
25700
25711
|
`;
|
|
25701
25712
|
}
|
|
25702
25713
|
|
|
25703
|
-
// apps/cli/src/version.ts
|
|
25704
|
-
var VERSION = true ? "0.1.0" : "0.0.0-dev";
|
|
25705
|
-
|
|
25706
25714
|
// apps/cli/src/main.ts
|
|
25707
25715
|
var DEFAULT_URL = process.env.PAYBOX_URL ?? "http://127.0.0.1:8080";
|
|
25708
25716
|
var program = new Command().name("paybox").description("Local payment infrastructure emulator").version(VERSION).option("--url <url>", "emulator base URL", DEFAULT_URL).option("--json", "print raw JSON instead of tables", false);
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paybox-emulator",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Local payment infrastructure emulator. Point a Paystack, Stripe, Flutterwave, Kora, WeWire or Wise integration at localhost and test pending payments, webhook retries, duplicate deliveries, timeouts, refunds and idempotency — deterministically, with no provider sandbox.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"bin": {
|
|
8
|
-
"paybox": "
|
|
8
|
+
"paybox": "bin/paybox.js"
|
|
9
9
|
},
|
|
10
10
|
"files": [
|
|
11
11
|
"bin",
|