msgpackr 1.9.8 → 1.9.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.
@@ -1267,7 +1267,7 @@
1267
1267
  let newSharedData = prepareStructures(structures, packr);
1268
1268
  if (packr.saveStructures(newSharedData, newSharedData.isCompatible) === false) {
1269
1269
  // get updated structures and try again if the update failed
1270
- return packr.pack(value)
1270
+ return packr.pack(value, encodeOptions)
1271
1271
  }
1272
1272
  packr.lastNamedStructuresLength = sharedLength;
1273
1273
  return returnBuffer
@@ -1861,7 +1861,7 @@
1861
1861
  }
1862
1862
  };
1863
1863
  const writeStruct = (object, safePrototype) => {
1864
- let newPosition = writeStructSlots(object, target, position, structures, makeRoom, (value, newPosition, notifySharedUpdate) => {
1864
+ let newPosition = writeStructSlots(object, target, start, position, structures, makeRoom, (value, newPosition, notifySharedUpdate) => {
1865
1865
  if (notifySharedUpdate)
1866
1866
  return hasSharedUpdate = true;
1867
1867
  position = newPosition;