msgpackr 1.7.0-alpha6 → 1.7.0-alpha7
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 +1 -1
- 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 +71 -18
- package/dist/node.cjs.map +1 -1
- package/dist/test.js +76 -19
- package/dist/test.js.map +1 -1
- package/package.json +1 -1
- package/struct.js +65 -16
- package/unpack.js +6 -3
package/dist/index.js
CHANGED
|
@@ -202,7 +202,7 @@
|
|
|
202
202
|
// else more to read, but we are reading sequentially, so don't clear source yet
|
|
203
203
|
return result
|
|
204
204
|
} catch(error) {
|
|
205
|
-
if (currentStructures
|
|
205
|
+
if (currentStructures?.restoreStructures)
|
|
206
206
|
restoreStructures();
|
|
207
207
|
clearSource();
|
|
208
208
|
if (error instanceof RangeError || error.message.startsWith('Unexpected end of buffer') || position > srcEnd) {
|