@cosyte/synth 0.1.7 → 0.1.9

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.
@@ -477,7 +477,12 @@ function isRequireEsmRefusal(error) {
477
477
  }
478
478
  function loadPeer(specifier, host) {
479
479
  if (host.resolve === void 0) return host.require(specifier);
480
- const entry = fileURLToPath(host.resolve(specifier));
480
+ let entry;
481
+ try {
482
+ entry = fileURLToPath(host.resolve(specifier));
483
+ } catch {
484
+ return host.require(specifier);
485
+ }
481
486
  try {
482
487
  return host.require(entry);
483
488
  } catch (error) {
@@ -513,7 +518,9 @@ function mshScaffold(rng, type) {
513
518
  controlId,
514
519
  timestamp,
515
520
  version: "2.5",
516
- processingId: "P"
521
+ // MSH-11 processing ID `T` (HL7 table 0103: training), never `P` (production): every message
522
+ // says it is test data in the field the standard gives for it.
523
+ processingId: "T"
517
524
  });
518
525
  return { message, timestamp, controlId };
519
526
  }