@replayio-app-building/netlify-recorder 0.30.0 → 0.31.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 +8 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -634,7 +634,14 @@ function createRecordingRequestHandler(handler, options) {
634
634
  );
635
635
  return responseWithHeader;
636
636
  }
637
- await finishRequest(reqContext, options.callbacks, response, finishOpts);
637
+ try {
638
+ await finishRequest(reqContext, options.callbacks, response, finishOpts);
639
+ } catch (err) {
640
+ console.error(
641
+ `netlify-recorder: finishRequest failed (handler: ${options.handlerPath ?? "unknown"})`,
642
+ err
643
+ );
644
+ }
638
645
  return responseWithHeader;
639
646
  };
640
647
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@replayio-app-building/netlify-recorder",
3
- "version": "0.30.0",
3
+ "version": "0.31.0",
4
4
  "description": "Capture and replay Netlify function executions as Replay recordings",
5
5
  "type": "module",
6
6
  "exports": {