@dreamor/atlas-cli 0.7.11 → 0.7.12

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.
@@ -1,7 +1,7 @@
1
1
  import { createClient } from '../../http/client.js';
2
2
  import { isJsonMode, jsonOk, log } from '../../util/output.js';
3
3
  import { ConfigError, SessionExpiredError } from '../../util/errors.js';
4
- import { expandMonths } from '../../util/months.js';
4
+ import { expandMonths, expandMonthsDefault } from '../../util/months.js';
5
5
  import { monthTsToKey } from '../../util/time.js';
6
6
  import { groupByAxis, mergeBaselineActual, } from './_logic.js';
7
7
  import { resolveProjectId, resolveProjectInfo } from '../../util/env.js';
@@ -10,7 +10,7 @@ function getProjectId(opts) {
10
10
  }
11
11
  export async function compareCmd(opts) {
12
12
  const pid = getProjectId(opts);
13
- const months = opts.month ? [opts.month] : expandMonths(opts.from, opts.to);
13
+ const months = opts.month ? [opts.month] : (opts.from || opts.to ? expandMonths(opts.from, opts.to) : expandMonthsDefault());
14
14
  const allBl = [];
15
15
  const allAc = [];
16
16
  const client = createClient();
@@ -1 +1 @@
1
- export const ATLAS_VERSION = '0.7.11';
1
+ export const ATLAS_VERSION = '0.7.12';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dreamor/atlas-cli",
3
- "version": "0.7.11",
3
+ "version": "0.7.12",
4
4
  "description": "Atlas CLI - 斑马云图人力基线管理工具",
5
5
  "type": "module",
6
6
  "bin": {