@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.
Files changed (2) hide show
  1. package/dist/index.js +6 -1
  2. 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.59.0"
992
+ packageVersion: "0.60.0"
988
993
  };
989
994
  const blobData = redactBlobData(rawBlobData);
990
995
  const blobContent = JSON.stringify(blobData);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio-app-building/netlify-recorder",
3
- "version": "0.59.0",
3
+ "version": "0.60.0",
4
4
  "description": "Capture and replay Netlify function executions as Replay recordings",
5
5
  "type": "module",
6
6
  "exports": {