@anaella/cli 0.5.1 → 0.5.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.
Files changed (2) hide show
  1. package/dist/index.js +5 -2
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -6,7 +6,7 @@ import { AnaellaClient } from "@anaella/client";
6
6
  import { Command } from "commander";
7
7
 
8
8
  // package.json
9
- var version = "0.5.1";
9
+ var version = "0.5.2";
10
10
 
11
11
  // src/browser-login.ts
12
12
  import { spawn } from "child_process";
@@ -180,7 +180,10 @@ async function cmdDo(client, id, o) {
180
180
  }
181
181
  }
182
182
  const job = await client.do(id, input);
183
- return o.wait && (job.status === "queued" || job.status === "running") ? client.waitForJob(job.id) : job;
183
+ const pending = job.status === "queued" || job.status === "running";
184
+ if (pending && o.wait) return client.waitForJob(job.id, { timeoutMs: 15 * 6e4 });
185
+ if (pending) console.error(`Running in the background: anaella job ${job.id} (or pass --wait)`);
186
+ return job;
184
187
  }
185
188
 
186
189
  // src/config.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anaella/cli",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Command-line tool for anaella.com — schedule and publish social posts.",
5
5
  "type": "module",
6
6
  "bin": {