@ondrej-svec/hog 1.7.1 → 1.7.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.
package/dist/cli.js CHANGED
@@ -2349,7 +2349,7 @@ function navReducer(state, action) {
2349
2349
  const collapsedSections = isFirstLoad ? new Set(sections.filter((s) => s === "activity")) : state.collapsedSections;
2350
2350
  const selectionValid = state.selectedId != null && action.items.some((i) => i.id === state.selectedId);
2351
2351
  if (!isFirstLoad && selectionValid && arraysEqual(sections, state.sections)) {
2352
- return state;
2352
+ return state.allItems === action.items ? state : { ...state, allItems: action.items };
2353
2353
  }
2354
2354
  if (selectionValid) {
2355
2355
  const selected = action.items.find((i) => i.id === state.selectedId);
@@ -6998,7 +6998,7 @@ function resolveProjectId(projectId) {
6998
6998
  process.exit(1);
6999
6999
  }
7000
7000
  var program = new Command();
7001
- program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.7.1").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7001
+ program.name("hog").description("Personal command deck \u2014 unified task dashboard for GitHub Projects + TickTick").version("1.7.2").option("--json", "Force JSON output").option("--human", "Force human-readable output").hook("preAction", (thisCommand) => {
7002
7002
  const opts = thisCommand.opts();
7003
7003
  if (opts.json) setFormat("json");
7004
7004
  if (opts.human) setFormat("human");