@hawkeyexl/manni 2.3.4 → 2.3.6

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.
@@ -8,7 +8,7 @@ var __export = (target, all) => {
8
8
  // package.json
9
9
  var package_default = {
10
10
  name: "@hawkeyexl/manni",
11
- version: "2.3.4",
11
+ version: "2.3.6",
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: {
@@ -199,8 +199,17 @@ function isMainModule(moduleUrl) {
199
199
  return false;
200
200
  }
201
201
  }
202
+ function endOutputOnClosedReader(streams = [process.stdout, process.stderr]) {
203
+ for (const stream of streams) {
204
+ stream.on("error", (err) => {
205
+ if (err.code === "EPIPE") return;
206
+ throw err;
207
+ });
208
+ }
209
+ }
202
210
  function runIfMain(moduleUrl, build) {
203
211
  if (!isMainModule(moduleUrl)) return;
212
+ endOutputOnClosedReader();
204
213
  runProgram(build()).catch(fail);
205
214
  }
206
215
 
@@ -19789,6 +19798,7 @@ export {
19789
19798
  terminalConfirm,
19790
19799
  ensureEncryptionKey,
19791
19800
  escapePointerSegment,
19801
+ hasFrontmatterFence,
19792
19802
  locateFrontmatter,
19793
19803
  frontmatterInnerText,
19794
19804
  extractFrontmatter,
@@ -19932,4 +19942,4 @@ export {
19932
19942
  renderQuery,
19933
19943
  renderQueryCsv
19934
19944
  };
19935
- //# sourceMappingURL=chunk-LHYFB75E.js.map
19945
+ //# sourceMappingURL=chunk-UUXTFBWD.js.map