@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/CHANGELOG.md +10 -0
- package/README.md +5 -0
- package/dist/cli/index.cjs +4 -3
- package/dist/cli/index.cjs.map +1 -1
- package/dist/cli/index.js +4 -3
- package/dist/cli/index.js.map +1 -1
- package/dist/incremental/index.cjs +4 -3
- package/dist/incremental/index.cjs.map +1 -1
- package/dist/incremental/index.js +4 -3
- package/dist/incremental/index.js.map +1 -1
- package/dist/index.cjs +4 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -3
- package/dist/index.js.map +1 -1
- package/dist/seed/index.cjs +4 -3
- package/dist/seed/index.cjs.map +1 -1
- package/dist/seed/index.js +4 -3
- package/dist/seed/index.js.map +1 -1
- package/package.json +1 -1
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(
|
|
1466
|
-
|
|
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:
|
|
1470
|
+
data: raw.toString("base64")
|
|
1470
1471
|
};
|
|
1471
1472
|
return env;
|
|
1472
1473
|
}
|