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