@punks/backend-core 0.0.46 → 0.0.47

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/cjs/index.js CHANGED
@@ -309,8 +309,8 @@ const jsonSerialize = (obj, options) => {
309
309
  return `<binary data (${value.length} bytes)>`;
310
310
  }
311
311
  if (typeof value === "object" &&
312
- value.type === "Buffer" &&
313
- Array.isArray(value.data)) {
312
+ value?.type === "Buffer" &&
313
+ Array.isArray(value?.data)) {
314
314
  return `<binary data (${value.data.length} bytes)>`;
315
315
  }
316
316
  }