@replayio-app-building/netlify-recorder 0.59.0 → 0.60.0
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 +6 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -930,8 +930,13 @@ function redactBlobData(blobData) {
|
|
|
930
930
|
responseBody: scrub(call.responseBody)
|
|
931
931
|
})
|
|
932
932
|
);
|
|
933
|
+
const redactedHandlerResponse = blobData.handlerResponse ? {
|
|
934
|
+
...blobData.handlerResponse,
|
|
935
|
+
body: scrub(blobData.handlerResponse.body)
|
|
936
|
+
} : blobData.handlerResponse;
|
|
933
937
|
return {
|
|
934
938
|
...blobData,
|
|
939
|
+
handlerResponse: redactedHandlerResponse,
|
|
935
940
|
requestInfo: redactedRequestInfo,
|
|
936
941
|
capturedData: {
|
|
937
942
|
networkCalls: redactedNetworkCalls,
|
|
@@ -984,7 +989,7 @@ async function finishRequest(requestContext, callbacks, response, options) {
|
|
|
984
989
|
body: typeof response.body === "string" ? response.body : void 0
|
|
985
990
|
},
|
|
986
991
|
originalRequestId: options?.originalRequestId,
|
|
987
|
-
packageVersion: "0.
|
|
992
|
+
packageVersion: "0.60.0"
|
|
988
993
|
};
|
|
989
994
|
const blobData = redactBlobData(rawBlobData);
|
|
990
995
|
const blobContent = JSON.stringify(blobData);
|