@hawkeyexl/manni 2.10.0 → 2.10.1

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
@@ -7,7 +7,7 @@ import {
7
7
  readStdin,
8
8
  reportConfig,
9
9
  splitList
10
- } from "./chunk-XXNHE2IW.js";
10
+ } from "./chunk-5GVRMS6B.js";
11
11
  import {
12
12
  CiteError,
13
13
  KeyError,
@@ -40,7 +40,7 @@ import {
40
40
  shortPin,
41
41
  shortSrc,
42
42
  spellSource
43
- } from "./chunk-FHRU3GN6.js";
43
+ } from "./chunk-HA4CK35M.js";
44
44
  import {
45
45
  COMMON_FORMAT_LIST,
46
46
  FAMILY_CONFIG_NAMES,
@@ -80,7 +80,7 @@ import {
80
80
  splitPageArgument,
81
81
  terminalConfirm,
82
82
  valeConfigPath
83
- } from "./chunk-ROAPSWWB.js";
83
+ } from "./chunk-O2V45AVG.js";
84
84
 
85
85
  // src/cli.ts
86
86
  import { Command as Command5 } from "commander";
@@ -4793,8 +4793,8 @@ var spawnVale = (args, opts) => new Promise((settle, reject) => {
4793
4793
  settle({ code: error.code, stdout, stderr });
4794
4794
  return;
4795
4795
  }
4796
- if (error.code === void 0 && error.signal) {
4797
- settle({ code: null, stdout, stderr });
4796
+ if (error.code == null && typeof error.signal === "string") {
4797
+ settle({ code: null, signal: error.signal, stdout, stderr });
4798
4798
  return;
4799
4799
  }
4800
4800
  const failure = error;
@@ -4823,7 +4823,9 @@ function failureText(result) {
4823
4823
  if (isMapping2(parsed) && typeof parsed["Text"] === "string") return parsed["Text"].trim();
4824
4824
  } catch {
4825
4825
  }
4826
- return stderr === "" ? `exit code ${String(result.code)}` : stderr;
4826
+ if (stderr !== "") return stderr;
4827
+ if (result.signal != null) return `killed by ${result.signal}`;
4828
+ return `exit code ${String(result.code)}`;
4827
4829
  }
4828
4830
  function parseJson(stdout, what) {
4829
4831
  try {