@leejpsd/nextjs-cache-handler 0.4.0 → 0.4.1

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 CHANGED
@@ -1462,11 +1462,12 @@ function isEnvelope(value) {
1462
1462
  function isLegacyBufferShape(value) {
1463
1463
  return typeof value === "object" && value !== null && value.type === "Buffer" && Array.isArray(value.data);
1464
1464
  }
1465
- function replacer(_key, value) {
1466
- if (Buffer.isBuffer(value)) {
1465
+ function replacer(key, value) {
1466
+ const raw = this[key];
1467
+ if (Buffer.isBuffer(raw)) {
1467
1468
  const env = {
1468
1469
  __type: "Buffer",
1469
- data: value.toString("base64")
1470
+ data: raw.toString("base64")
1470
1471
  };
1471
1472
  return env;
1472
1473
  }