@contrast/instrumentation 1.3.0 → 1.3.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/LICENSE +1 -1
- package/lib/http.js +1 -1
- package/lib/http2.js +7 -3
- package/lib/index.js +1 -1
- package/lib/mongodb.js +1 -1
- package/lib/utils.js +1 -1
- package/package.json +2 -2
package/LICENSE
CHANGED
package/lib/http.js
CHANGED
package/lib/http2.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright:
|
|
2
|
+
* Copyright: 2024 Contrast Security, Inc
|
|
3
3
|
* Contact: support@contrastsecurity.com
|
|
4
4
|
* License: Commercial
|
|
5
5
|
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*/
|
|
15
15
|
'use strict';
|
|
16
16
|
|
|
17
|
-
module.exports = function(core) {
|
|
17
|
+
module.exports = function (core) {
|
|
18
18
|
const {
|
|
19
19
|
patcher,
|
|
20
20
|
depHooks
|
|
@@ -26,7 +26,11 @@ module.exports = function(core) {
|
|
|
26
26
|
const serverPrototype = server ? Object.getPrototypeOf(server) : null;
|
|
27
27
|
|
|
28
28
|
if (!serverPrototype) {
|
|
29
|
-
core.logger.error(
|
|
29
|
+
core.logger.error(
|
|
30
|
+
{ funcKey: data.funcKey },
|
|
31
|
+
'Unable to patch %s, continuing without instrumentation',
|
|
32
|
+
namePrefix,
|
|
33
|
+
);
|
|
30
34
|
return;
|
|
31
35
|
}
|
|
32
36
|
methods.forEach((method) => {
|
package/lib/index.js
CHANGED
package/lib/mongodb.js
CHANGED
package/lib/utils.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/instrumentation",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "Shared hooks and patches between Protect and Assess components",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -17,6 +17,6 @@
|
|
|
17
17
|
"test": "../scripts/test.sh"
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@contrast/common": "1.16.
|
|
20
|
+
"@contrast/common": "1.16.1"
|
|
21
21
|
}
|
|
22
22
|
}
|