maxsimcli 4.7.0 → 4.8.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.
@@ -4288,9 +4288,10 @@ function writeOutput(out) {
4288
4288
  } else process.stdout.write(json);
4289
4289
  }
4290
4290
  }
4291
- function safeReadFile(filePath) {
4291
+ /** Read a file, returning null if it doesn't exist or fails. */
4292
+ async function safeReadFile(filePath) {
4292
4293
  try {
4293
- return node_fs.default.readFileSync(filePath, "utf-8");
4294
+ return await node_fs.promises.readFile(filePath, "utf-8");
4294
4295
  } catch {
4295
4296
  return null;
4296
4297
  }
@@ -4301,4 +4302,4 @@ exports.CliError = CliError;
4301
4302
  exports.CliOutput = CliOutput;
4302
4303
  exports.safeReadFile = safeReadFile;
4303
4304
  exports.writeOutput = writeOutput;
4304
- //# sourceMappingURL=core-RRjCSt0G.cjs.map
4305
+ //# sourceMappingURL=core-D5zUr9cb.cjs.map