@grainulation/orchard 1.1.0 → 1.1.1
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/lib/farmer.js +2 -2
- package/package.json +1 -1
package/lib/farmer.js
CHANGED
|
@@ -11,7 +11,7 @@ let _warnedNoToken = false;
|
|
|
11
11
|
/**
|
|
12
12
|
* POST an activity event to farmer.
|
|
13
13
|
* Graceful failure -- catch and warn, never crash.
|
|
14
|
-
* @param {string} farmerUrl - Base URL of farmer
|
|
14
|
+
* @param {string} farmerUrl - Base URL of farmer
|
|
15
15
|
* @param {object} event - Event object (e.g. { type: "scan", data: {...} })
|
|
16
16
|
* @param {object} [opts] - Options
|
|
17
17
|
* @param {string} [opts.token] - Bearer token for Authorization header
|
|
@@ -89,7 +89,7 @@ function notify(farmerUrl, event, opts) {
|
|
|
89
89
|
* CLI handler for `orchard connect farmer`.
|
|
90
90
|
* Reads/writes .farmer.json in targetDir.
|
|
91
91
|
* @param {string} targetDir - Working directory
|
|
92
|
-
* @param {string[]} args - CLI arguments (e.g. ["farmer", "--url", "
|
|
92
|
+
* @param {string[]} args - CLI arguments (e.g. ["farmer", "--url", "<farmer-url>"])
|
|
93
93
|
*/
|
|
94
94
|
async function connect(targetDir, args) {
|
|
95
95
|
const subcommand = args[0];
|