@contrast/core 1.27.0 → 1.27.2
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/agent-info.js +1 -1
- package/lib/app-info.js +4 -2
- package/lib/capture-stacktrace.js +1 -1
- package/lib/contrast-methods.js +4 -1
- package/lib/index.d.ts +1 -1
- package/lib/is-agent-path.js +1 -1
- package/lib/messages.js +1 -1
- package/lib/sensitive-data-masking/constants.js +1 -1
- package/lib/sensitive-data-masking/index.js +1 -1
- package/lib/sensitive-data-masking/protect-listener.js +2 -2
- package/lib/sensitive-data-masking/server-settings-listener.js +1 -1
- package/lib/system-info/index.js +1 -1
- package/package.json +3 -3
package/LICENSE
CHANGED
package/lib/agent-info.js
CHANGED
package/lib/app-info.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
|
|
|
@@ -66,6 +66,8 @@ module.exports = function (core) {
|
|
|
66
66
|
appInfo.serverName = config.server.name;
|
|
67
67
|
appInfo.serverType = config.server.type;
|
|
68
68
|
appInfo.serverEnvironment = config.server.environment;
|
|
69
|
+
appInfo.group = config.application.group;
|
|
70
|
+
appInfo.metadata = config.application.metadata;
|
|
69
71
|
|
|
70
72
|
return appInfo;
|
|
71
73
|
|
|
@@ -192,7 +194,7 @@ module.exports = function (core) {
|
|
|
192
194
|
}
|
|
193
195
|
}
|
|
194
196
|
|
|
195
|
-
// we only want to look at dirs in the
|
|
197
|
+
// we only want to look at dirs in the initial directory
|
|
196
198
|
// assign parent directory to directory
|
|
197
199
|
directory = path.dirname(directory);
|
|
198
200
|
return findFile({
|
package/lib/contrast-methods.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
|
|
|
@@ -118,6 +118,9 @@ module.exports = function (core) {
|
|
|
118
118
|
importNamed(...args) {
|
|
119
119
|
// noop
|
|
120
120
|
},
|
|
121
|
+
import(...args) {
|
|
122
|
+
// noop BAM
|
|
123
|
+
},
|
|
121
124
|
|
|
122
125
|
// Injections
|
|
123
126
|
Function: core.patcher.patch(global.Function, {
|
package/lib/index.d.ts
CHANGED
package/lib/is-agent-path.js
CHANGED
package/lib/messages.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
|
|
|
@@ -32,7 +32,7 @@ module.exports = function (core) {
|
|
|
32
32
|
return;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
logger.trace(
|
|
35
|
+
logger.trace('masking sensitive fields in %s message', Event.PROTECT);
|
|
36
36
|
|
|
37
37
|
if (policy.maskHttpBody) {
|
|
38
38
|
msg.protect.parsedBody = `${CONTRAST_REDACTED}-body`;
|
package/lib/system-info/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/core",
|
|
3
|
-
"version": "1.27.
|
|
3
|
+
"version": "1.27.2",
|
|
4
4
|
"description": "Preconfigured Contrast agent core services and models",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"test": "../scripts/test.sh"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@contrast/common": "1.16.
|
|
20
|
-
"@contrast/fn-inspect": "^
|
|
19
|
+
"@contrast/common": "1.16.1",
|
|
20
|
+
"@contrast/fn-inspect": "^4.0.0"
|
|
21
21
|
}
|
|
22
22
|
}
|