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-no-eval.cjs +2 -2
- package/dist/index-no-eval.cjs.map +1 -1
- package/dist/index-no-eval.min.js +1 -1
- package/dist/index-no-eval.min.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +1 -1
- package/dist/index.min.js.map +1 -1
- package/dist/node.cjs +22 -21
- package/dist/node.cjs.map +1 -1
- package/dist/test.js +22 -21
- package/dist/test.js.map +1 -1
- package/pack.js +2 -2
- package/package.json +1 -1
- package/struct.js +20 -19
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;
|