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-no-eval.cjs
CHANGED
|
@@ -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;
|