@mulmoclaude/accounting-plugin 2.0.0 → 2.1.0

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/server.cjs CHANGED
@@ -16,7 +16,7 @@ var __copyProps = (to, from, except, desc) => {
16
16
  }
17
17
  return to;
18
18
  };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
20
20
  value: mod,
21
21
  enumerable: true
22
22
  }) : target, mod));
@@ -2046,9 +2046,10 @@ function validateTimeSeriesInput(input) {
2046
2046
  async function loadTimeSeriesBookContext(requestedBookId, workspaceRoot) {
2047
2047
  const config = await loadOrInitConfig(workspaceRoot);
2048
2048
  const bookId = resolveBookId(config, requestedBookId);
2049
+ const book = findBook(config, bookId);
2049
2050
  return {
2050
2051
  bookId,
2051
- fiscalYearEnd: require_shared.resolveFiscalYearEnd(findBook(config, bookId)?.fiscalYearEnd),
2052
+ fiscalYearEnd: require_shared.resolveFiscalYearEnd(book?.fiscalYearEnd),
2052
2053
  accounts: await readAccounts(bookId, workspaceRoot)
2053
2054
  };
2054
2055
  }