madden-franchise 2.3.5 → 2.3.6

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.
@@ -68,7 +68,7 @@ class FranchiseFileRecord extends EventEmitter {
68
68
 
69
69
  this._fields.forEach((field) => {
70
70
  const unformattedValue = data.slice(field.offset.offset, field.offset.offset + field.offset.length);
71
- field.setUnformattedValueWithoutChangeEvent(unformattedValue, true);
71
+ field.setUnformattedValueWithoutChangeEvent(unformattedValue);
72
72
  });
73
73
  };
74
74
 
@@ -323,7 +323,7 @@ class FranchiseFileTable extends EventEmitter {
323
323
  function setBufferToEmptyRecordReference(index, emptyRecordReference) {
324
324
  const recordStartIndex = that.header.table1StartIndex + (index * that.header.record1Size)
325
325
  that.data.writeUInt32BE(emptyRecordReference, recordStartIndex);
326
- that.data.fill(0, recordStartIndex + 4, recordStartIndex + that.header.record1Size);
326
+ // that.data.fill(0, recordStartIndex + 4, recordStartIndex + that.header.record1Size);
327
327
  };
328
328
 
329
329
  function setRecordInternalBuffer(index, emptyRecordReference) {
@@ -331,7 +331,7 @@ class FranchiseFileTable extends EventEmitter {
331
331
 
332
332
  const recordSizeInBits = that.header.record1Size * 8;
333
333
  if (recordSizeInBits > 32) {
334
- newData += utilService.dec2bin(0, recordSizeInBits - 32);
334
+ newData += that.records[index]._data.slice(32);
335
335
  }
336
336
 
337
337
  that.records[index].data = newData;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "madden-franchise",
3
- "version": "2.3.5",
3
+ "version": "2.3.6",
4
4
  "description": "Tools to read a madden franchise file and get data from it",
5
5
  "main": "FranchiseFile.js",
6
6
  "scripts": {