dcmjs 0.49.0 → 0.49.2

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
@@ -9200,12 +9200,7 @@
9200
9200
 
9201
9201
  // Nearly all transfer syntaxes are encapsulated, so record those which are
9202
9202
  // unencapsulated as the exceptions.
9203
- var unencapsulatedTransferSyntaxes = {
9204
- IMPLICIT_LITTLE_ENDIAN: true,
9205
- EXPLICIT_BIG_ENDIAN: true,
9206
- DEFLATED_EXPLICIT_LITTLE_ENDIAN: true,
9207
- EXPLICIT_LITTLE_ENDIAN: true
9208
- };
9203
+ var unencapsulatedTransferSyntaxes = _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, IMPLICIT_LITTLE_ENDIAN, true), EXPLICIT_BIG_ENDIAN, true), DEFLATED_EXPLICIT_LITTLE_ENDIAN, true), EXPLICIT_LITTLE_ENDIAN$1, true);
9209
9204
 
9210
9205
  /**
9211
9206
  * Video transfer syntax UIDs (MPEG2, H.264, H.265)
@@ -10017,7 +10012,7 @@
10017
10012
  }
10018
10013
  _createClass(BinaryRepresentation, [{
10019
10014
  key: "writeBytes",
10020
- value: function writeBytes(stream, value, syntax, isEncapsulated) {
10015
+ value: function writeBytes(stream, value, _syntax, isEncapsulated) {
10021
10016
  var writeOptions = arguments.length > 4 && arguments[4] !== undefined ? arguments[4] : {};
10022
10017
  var i;
10023
10018
  var binaryStream;
@@ -11821,8 +11816,8 @@
11821
11816
  value: function write(stream, vrType, values, syntax, writeOptions) {
11822
11817
  var vr = ValueRepresentation.createByTypeString(vrType);
11823
11818
  var useSyntax = DicomMessage$1._normalizeSyntax(syntax);
11824
- var implicit = useSyntax == IMPLICIT_LITTLE_ENDIAN ? true : false;
11825
- var isLittleEndian = useSyntax == IMPLICIT_LITTLE_ENDIAN || useSyntax == EXPLICIT_LITTLE_ENDIAN$1 ? true : false;
11819
+ var implicit = useSyntax === IMPLICIT_LITTLE_ENDIAN;
11820
+ var isLittleEndian = useSyntax === IMPLICIT_LITTLE_ENDIAN || useSyntax === EXPLICIT_LITTLE_ENDIAN$1;
11826
11821
  var isEncapsulated = this.isPixelDataTag() && DicomMessage$1.isEncapsulated(syntax);
11827
11822
  var oldEndian = stream.isLittleEndian;
11828
11823
  stream.setEndian(isLittleEndian);
@@ -13712,8 +13707,9 @@
13712
13707
  while (1) switch (_context10.prev = _context10.next) {
13713
13708
  case 0:
13714
13709
  length = tagInfo.length;
13715
- this._emitSplitValues(length);
13716
- case 2:
13710
+ _context10.next = 3;
13711
+ return this._emitSplitValues(length);
13712
+ case 3:
13717
13713
  case "end":
13718
13714
  return _context10.stop();
13719
13715
  }