msgpackr 1.11.7 → 1.11.8
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 +1 -1
- 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 +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 +1 -1
- package/dist/node.cjs.map +1 -1
- package/dist/test.js +1 -1
- package/dist/test.js.map +1 -1
- package/pack.js +1 -1
- package/package.json +1 -1
package/pack.js
CHANGED
|
@@ -123,7 +123,7 @@ export class Packr extends Unpackr {
|
|
|
123
123
|
hasSharedUpdate = false
|
|
124
124
|
let encodingError;
|
|
125
125
|
try {
|
|
126
|
-
if (packr.randomAccessStructure && value && value
|
|
126
|
+
if (packr.randomAccessStructure && value && typeof value === 'object') {
|
|
127
127
|
if (value.constructor === Object) writeStruct(value); // simple object
|
|
128
128
|
else if (value.constructor !== Map && !Array.isArray(value) && !extensionClasses.some(extClass => value instanceof extClass)) {
|
|
129
129
|
// allow user classes, if they don't need special handling (but do use toJSON if available)
|
package/package.json
CHANGED