paymongo-cli 1.4.8 → 1.4.10
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/.github/workflows/release.yml +5 -7
- package/CHANGELOG.md +20 -0
- package/dist/.tsbuildinfo +1 -1
- package/dist/commands/config.js +3 -1
- package/dist/commands/dev.js +3 -3
- package/dist/commands/generate/templates/index.js +1 -1
- package/dist/commands/generate/templates/webhook-handler/javascript.js +15 -9
- package/dist/commands/generate/templates/webhook-handler/typescript.js +24 -6
- package/dist/commands/generate.js +4 -4
- package/dist/commands/payments/actions.js +11 -8
- package/dist/commands/payments.js +6 -5
- package/dist/commands/trigger/helpers.js +9 -7
- package/dist/commands/webhooks/actions.js +36 -9
- package/dist/commands/webhooks.js +11 -6
- package/dist/index.js +2 -2
- package/dist/services/api/client.js +15 -6
- package/dist/services/dev/process-manager.js +13 -5
- package/dist/services/dev/server.js +7 -16
- package/dist/utils/constants.js +1 -1
- package/dist/utils/webhook-store.js +6 -2
- package/package.json +1 -1
|
@@ -31,7 +31,9 @@ class WebhookEventStore {
|
|
|
31
31
|
return JSON.parse(data);
|
|
32
32
|
}
|
|
33
33
|
catch (error) {
|
|
34
|
-
if (error instanceof Error &&
|
|
34
|
+
if (error instanceof Error &&
|
|
35
|
+
'code' in error &&
|
|
36
|
+
error.code === 'ENOENT') {
|
|
35
37
|
return [];
|
|
36
38
|
}
|
|
37
39
|
return [];
|
|
@@ -50,7 +52,9 @@ class WebhookEventStore {
|
|
|
50
52
|
await fs.unlink(this.storePath);
|
|
51
53
|
}
|
|
52
54
|
catch (error) {
|
|
53
|
-
if (error instanceof Error &&
|
|
55
|
+
if (error instanceof Error &&
|
|
56
|
+
'code' in error &&
|
|
57
|
+
error.code === 'ENOENT') {
|
|
54
58
|
return;
|
|
55
59
|
}
|
|
56
60
|
console.warn('Failed to clear webhook events:', error);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "paymongo-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.10",
|
|
4
4
|
"description": "Developer-first CLI tool for PayMongo integration development with local webhook forwarding, payment testing, and team collaboration features. See USER_GUIDE.md for comprehensive documentation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|