@newrelic/security-agent 2.4.0 → 2.4.1
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/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
### v2.4.1 (2025-05-13)
|
|
2
|
+
#### Bug fixes
|
|
3
|
+
* Only listen once for uncaughtException
|
|
4
|
+
#### Miscellaneous chores
|
|
5
|
+
* (deps-dev): bump koa from v2.14.2 to v2.16.1
|
|
6
|
+
* (deps-dev): bump tar-fs from v2.1.1 to v2.1.2
|
|
7
|
+
|
|
8
|
+
|
|
1
9
|
### v2.4.0 (2025-03-21)
|
|
2
10
|
#### Features
|
|
3
11
|
* Support for gRPC error reporting
|
|
@@ -629,7 +629,12 @@ function deleteTempFileForIAST(file) {
|
|
|
629
629
|
/**
|
|
630
630
|
* Collect and report the uncaught Exception
|
|
631
631
|
*/
|
|
632
|
-
process.
|
|
632
|
+
const listeners = process.listeners('uncaughtException')
|
|
633
|
+
if (listeners.findIndex(uncaughtListener) === -1) {
|
|
634
|
+
process.on('uncaughtException', uncaughtListener);
|
|
635
|
+
}
|
|
636
|
+
|
|
637
|
+
function uncaughtListener(err, origin) {
|
|
633
638
|
console.error(err);
|
|
634
639
|
if (uncaughtExceptionReportFlag) {
|
|
635
640
|
process.exit(1);
|
|
@@ -641,7 +646,7 @@ process.on('uncaughtException', (err, origin) => {
|
|
|
641
646
|
}
|
|
642
647
|
logger.error("An uncaughtException is detected:", err);
|
|
643
648
|
uncaughtExceptionReportFlag = true;
|
|
644
|
-
}
|
|
649
|
+
}
|
|
645
650
|
|
|
646
651
|
/**
|
|
647
652
|
* utility to parse response headers for cookie check
|