@hawkeyexl/manni 4.0.1 → 4.0.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/README.md CHANGED
@@ -102,7 +102,7 @@ actually reads rather than hand-written:
102
102
  ```yaml
103
103
  repos:
104
104
  - repo: https://github.com/hawkeyexl/manni
105
- rev: v4.0.1
105
+ rev: v4.0.2
106
106
  hooks:
107
107
  - id: manni-meta
108
108
  ```
@@ -63,7 +63,7 @@ import {
63
63
  terminalConfirm,
64
64
  toJsonText,
65
65
  warn
66
- } from "./chunk-DJ2WOJIG.js";
66
+ } from "./chunk-TK5PYPFU.js";
67
67
 
68
68
  // src/meta/cli.ts
69
69
  import { existsSync } from "node:fs";
@@ -1533,4 +1533,4 @@ export {
1533
1533
  reportConfig,
1534
1534
  buildProgram
1535
1535
  };
1536
- //# sourceMappingURL=chunk-RBAJIEGC.js.map
1536
+ //# sourceMappingURL=chunk-KSH7XS2R.js.map
@@ -90,7 +90,7 @@ import {
90
90
  writeEncryptionKey,
91
91
  writeFileAtomic,
92
92
  writeTextAtomic
93
- } from "./chunk-DJ2WOJIG.js";
93
+ } from "./chunk-TK5PYPFU.js";
94
94
 
95
95
  // src/meta/core/reencrypt.ts
96
96
  import { extname } from "node:path";
@@ -13905,4 +13905,4 @@ export {
13905
13905
  renderTemplates,
13906
13906
  renderTools
13907
13907
  };
13908
- //# sourceMappingURL=chunk-Z2RBN4N4.js.map
13908
+ //# sourceMappingURL=chunk-L26XRFBJ.js.map
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@hawkeyexl/manni",
11
- version: "4.0.1",
11
+ version: "4.0.2",
12
12
  description: "One command line for documentation that is meant to be checked. `manni meta` validates the presence and format of document metadata (Markdown frontmatter and more) against JSON Schema, built for CI. Formerly docmeta.",
13
13
  type: "module",
14
14
  bin: {
@@ -15031,7 +15031,7 @@ function judge(input, root, history, blobs, now, machines, manifestStamp2) {
15031
15031
  lastBodyCommit = null;
15032
15032
  const working = input.extracted.data["last-updated"];
15033
15033
  const committed = stampsOf(headBlob)["last-updated"];
15034
- lastUpdated = working !== void 0 && working !== null && !sameValue(working, committed) ? git(working, "stamped in working tree") : git(localDate(now()), "uncommitted body change");
15034
+ lastUpdated = working !== void 0 && working !== null && !sameValue(working, committed) ? git(working, "stamped in working tree") : git(utcDate2(now()), "uncommitted body change");
15035
15035
  } else if (newestBody === void 0) {
15036
15036
  lastBodyCommit = null;
15037
15037
  lastUpdated = null;
@@ -15323,10 +15323,12 @@ function sameValue(a, b) {
15323
15323
  return toJsonText(a) === toJsonText(b);
15324
15324
  }
15325
15325
  var short2 = (sha) => sha.slice(0, 7);
15326
- var datePart = (iso) => iso.slice(0, 10);
15327
- function localDate(d) {
15328
- const pad2 = (n) => String(n).padStart(2, "0");
15329
- return `${d.getFullYear()}-${pad2(d.getMonth() + 1)}-${pad2(d.getDate())}`;
15326
+ var datePart = (iso) => {
15327
+ const d = new Date(iso);
15328
+ return Number.isNaN(d.getTime()) ? "" : utcDate2(d);
15329
+ };
15330
+ function utcDate2(d) {
15331
+ return d.toISOString().slice(0, 10);
15330
15332
  }
15331
15333
  function nameOf(trailer) {
15332
15334
  const lt = trailer.lastIndexOf("<");
@@ -25111,4 +25113,4 @@ export {
25111
25113
  renderQuery,
25112
25114
  renderQueryCsv
25113
25115
  };
25114
- //# sourceMappingURL=chunk-DJ2WOJIG.js.map
25116
+ //# sourceMappingURL=chunk-TK5PYPFU.js.map