ebag 0.1.2 → 0.1.3

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/README.md CHANGED
@@ -22,14 +22,12 @@ Get the cookie header from your browser and store it:
22
22
  ebag login --cookie "<cookie>"
23
23
  ```
24
24
 
25
- Notes:
25
+ ## Data and storage
26
26
 
27
+ - Config is stored in `~/.config/ebag` (override with `EBAG_CONFIG_DIR`).
27
28
  - Session data is stored in plain text at `~/.config/ebag/session.json` with owner-only permissions (`0600`).
28
29
  - List-based search caches product details in `~/.config/ebag/cache.json` for up to 6 hours.
29
- - Completed orders may be cached locally for faster access.
30
- - Unknown order statuses warn on stderr and include a link to file a GitHub issue.
31
- - API `statusText` values are inconsistent with the website and intentionally ignored (including `--json`).
32
- - `statusDescription` is the supported status label field in `--json` output and is computed at runtime.
30
+ - Completed orders may be cached locally for faster access, and the order cache is retained indefinitely.
33
31
 
34
32
  ## Products
35
33
 
package/dist/cli/index.js CHANGED
@@ -337,7 +337,7 @@ async function main() {
337
337
  cart
338
338
  .command("update")
339
339
  .argument("<productId>", "Product ID")
340
- .option("--qty <n>", "Quantity", "1")
340
+ .requiredOption("--qty <n>", "Quantity")
341
341
  .action(async (productId, options) => {
342
342
  const config = (0, config_1.loadConfig)();
343
343
  const session = requireSessionCookie();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ebag",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Unofficial CLI for interacting with ebag.bg using cookie-based auth.",
5
5
  "main": "dist/lib/index.js",
6
6
  "types": "dist/lib/index.d.ts",