@dcmjs-org/dcmjs 1.0.0-beta.14 → 1.0.0-beta.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/build/dcmjs.js CHANGED
@@ -12807,7 +12807,9 @@
12807
12807
  /**
12808
12808
  * A PN value in the naturalized form (NAT-U-VAL-5): the component object
12809
12809
  * `{ Alphabetic, Ideographic, Phonetic }`, or a list of them, with the PN
12810
- * value accessors (String() gives the DICOM PN string).
12810
+ * value accessors (String() gives the DICOM PN string). A single component
12811
+ * object is array-like, as a single-item sequence (NAT-U-SQ-1):
12812
+ * `pn[0] === pn`, `pn.length === 1`, and `for...of` gives it once.
12811
12813
  *
12812
12814
  * The input is a PN string (`"Doe^John"`, `"A^B=C\\D^E"`), a component
12813
12815
  * object, or a list of strings and objects. `length` is the value count:
@@ -12831,7 +12833,7 @@
12831
12833
  });
12832
12834
  if (single && list.length <= 1) {
12833
12835
  var name = list[0];
12834
- return name && Object.keys(name).length ? dicomJson.pnAddValueAccessors(name) : null;
12836
+ return name && Object.keys(name).length ? addAccessors(dicomJson.pnAddValueAccessors(name)) : null;
12835
12837
  }
12836
12838
  return dicomJson.pnAddValueAccessors(list);
12837
12839
  }