@paychainly/cli 1.0.2 → 1.0.4
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/bin/paychainly.js +1 -1
- package/package.json +2 -3
- package/src/listen.js +1 -1
package/bin/paychainly.js
CHANGED
|
@@ -16,7 +16,7 @@ if (!cmd || cmd === 'help' || cmd === '--help' || cmd === '-h') {
|
|
|
16
16
|
--api-key Your Paychainly API key (pk_live_... or pk_test_...)
|
|
17
17
|
--port Local port to forward webhooks to (default: 3000)
|
|
18
18
|
--forward-to Full local URL to forward webhooks to
|
|
19
|
-
--host Paychainly server URL (default:
|
|
19
|
+
--host Paychainly server URL (default: https://api.paychainly.com)
|
|
20
20
|
--secret Webhook secret to verify incoming signatures
|
|
21
21
|
`);
|
|
22
22
|
process.exit(0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@paychainly/cli",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Paychainly CLI — relay webhooks to your localhost during development",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"paychainly",
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
"homepage": "https://paychainly.com",
|
|
15
15
|
"license": "MIT",
|
|
16
16
|
"bin": {
|
|
17
|
-
"paychainly": "bin/paychainly.js"
|
|
18
|
-
"paychainly-cli": "bin/paychainly.js"
|
|
17
|
+
"paychainly": "bin/paychainly.js"
|
|
19
18
|
},
|
|
20
19
|
"files": [
|
|
21
20
|
"bin/",
|
package/src/listen.js
CHANGED
|
@@ -90,7 +90,7 @@ function eventColor(event) {
|
|
|
90
90
|
module.exports = function listen(argv) {
|
|
91
91
|
const args = parseArgs(argv);
|
|
92
92
|
const apiKey = args['api-key'] || process.env.PAYCHAINLY_API_KEY;
|
|
93
|
-
const host = args['host'] || process.env.PAYCHAINLY_HOST || '
|
|
93
|
+
const host = args['host'] || process.env.PAYCHAINLY_HOST || 'https://api.paychainly.com';
|
|
94
94
|
const secret = args['secret'] || process.env.PAYCHAINLY_WEBHOOK_SECRET || '';
|
|
95
95
|
const forwardTo = args['forward-to'] || (args['port'] ? `http://localhost:${args['port']}/webhook` : 'http://localhost:3000/webhook');
|
|
96
96
|
|