@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.
- package/dist/index.js +8 -1
- 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
|
-
|
|
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
|
}
|