@replayio-app-building/netlify-recorder 0.27.0 → 0.28.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 +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -602,7 +602,13 @@ function createRecordingRequestHandler(handler, options) {
602
602
  );
603
603
  }
604
604
  setCurrentRequestId(null);
605
- throw handlerErr;
605
+ return {
606
+ ...errorResponse,
607
+ headers: {
608
+ ...errorResponse.headers,
609
+ "X-Replay-Request-Id": requestId
610
+ }
611
+ };
606
612
  }
607
613
  reqContext.cleanup();
608
614
  setCurrentRequestId(null);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio-app-building/netlify-recorder",
3
- "version": "0.27.0",
3
+ "version": "0.28.0",
4
4
  "description": "Capture and replay Netlify function executions as Replay recordings",
5
5
  "type": "module",
6
6
  "exports": {