@contrast/agentify 1.45.0 → 1.47.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/lib/index.js +4 -0
- package/package.json +13 -13
package/lib/index.js
CHANGED
|
@@ -234,6 +234,10 @@ module.exports = function init(core = {}) {
|
|
|
234
234
|
core.initComponentFactory(component, spec);
|
|
235
235
|
}
|
|
236
236
|
|
|
237
|
+
if (spec === '@contrast/config' && !core.config.enable) {
|
|
238
|
+
throw new IntentionalError('Contrast is disabled in configuration and will not instrument this application');
|
|
239
|
+
}
|
|
240
|
+
|
|
237
241
|
// perform any validations that can take place now that this module is loaded.
|
|
238
242
|
if (name === 'logger') {
|
|
239
243
|
// note that this runs the "config" validation. it does this so that
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agentify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.47.0",
|
|
4
4
|
"description": "Configures Contrast agent services and instrumentation within an application",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
|
|
@@ -21,20 +21,20 @@
|
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"@contrast/common": "1.32.0",
|
|
24
|
-
"@contrast/config": "1.
|
|
25
|
-
"@contrast/core": "1.
|
|
26
|
-
"@contrast/deadzones": "1.
|
|
27
|
-
"@contrast/dep-hooks": "1.
|
|
28
|
-
"@contrast/esm-hooks": "2.
|
|
24
|
+
"@contrast/config": "1.45.0",
|
|
25
|
+
"@contrast/core": "1.50.0",
|
|
26
|
+
"@contrast/deadzones": "1.22.0",
|
|
27
|
+
"@contrast/dep-hooks": "1.19.0",
|
|
28
|
+
"@contrast/esm-hooks": "2.24.0",
|
|
29
29
|
"@contrast/find-package-json": "^1.1.0",
|
|
30
|
-
"@contrast/instrumentation": "1.
|
|
31
|
-
"@contrast/logger": "1.
|
|
32
|
-
"@contrast/metrics": "1.
|
|
33
|
-
"@contrast/patcher": "1.
|
|
30
|
+
"@contrast/instrumentation": "1.29.0",
|
|
31
|
+
"@contrast/logger": "1.23.0",
|
|
32
|
+
"@contrast/metrics": "1.27.0",
|
|
33
|
+
"@contrast/patcher": "1.22.0",
|
|
34
34
|
"@contrast/perf": "1.3.1",
|
|
35
|
-
"@contrast/reporter": "1.
|
|
36
|
-
"@contrast/rewriter": "1.
|
|
37
|
-
"@contrast/scopes": "1.
|
|
35
|
+
"@contrast/reporter": "1.46.0",
|
|
36
|
+
"@contrast/rewriter": "1.26.0",
|
|
37
|
+
"@contrast/scopes": "1.20.0",
|
|
38
38
|
"on-finished": "^2.4.1",
|
|
39
39
|
"semver": "^7.6.0"
|
|
40
40
|
}
|