spooder 4.2.13 → 4.2.15

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "spooder",
3
3
  "type": "module",
4
- "version": "4.2.13",
4
+ "version": "4.2.15",
5
5
  "exports": {
6
6
  ".": {
7
7
  "bun": "./src/api.ts",
package/src/api.ts CHANGED
@@ -108,7 +108,7 @@ export async function safe(target_fn: Callable) {
108
108
  }
109
109
  }
110
110
 
111
- type ReplacerFn = (key: string) => string | Array<string>;
111
+ type ReplacerFn = (key: string) => string | Array<string> | undefined;
112
112
  type Replacements = Record<string, string | Array<string>> | ReplacerFn;
113
113
 
114
114
  export function parse_template(template: string, replacements: Replacements, drop_missing = false): string {
package/src/cli.ts CHANGED
@@ -84,9 +84,7 @@ async function start_server() {
84
84
  capture_stream(proc.stderr as ReadableStream, process.stderr);
85
85
  }
86
86
 
87
- await proc.exited;
88
-
89
- const proc_exit_code = proc.exitCode;
87
+ const proc_exit_code = await proc.exited;
90
88
  log('server exited with code {%s}', proc_exit_code);
91
89
 
92
90
  if (proc_exit_code !== 0) {