@contrast/agentify 1.14.0 → 1.15.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 +3 -4
- package/package.json +2 -2
package/lib/index.js
CHANGED
|
@@ -20,8 +20,7 @@ const path = require('path');
|
|
|
20
20
|
const Module = require('module');
|
|
21
21
|
|
|
22
22
|
const defaultOpts = {
|
|
23
|
-
|
|
24
|
-
svcList: [
|
|
23
|
+
installOrder: [
|
|
25
24
|
'reporter',
|
|
26
25
|
'contrastMethods',
|
|
27
26
|
'deadzones',
|
|
@@ -102,7 +101,7 @@ class Agent {
|
|
|
102
101
|
|
|
103
102
|
const plugin = await opts.preRunMain(core);
|
|
104
103
|
|
|
105
|
-
if (opts.
|
|
104
|
+
if (opts.installOrder?.length) {
|
|
106
105
|
await self.install();
|
|
107
106
|
}
|
|
108
107
|
|
|
@@ -133,7 +132,7 @@ class Agent {
|
|
|
133
132
|
}
|
|
134
133
|
|
|
135
134
|
async install() {
|
|
136
|
-
for (const svcName of this.opts.
|
|
135
|
+
for (const svcName of this.opts.installOrder) {
|
|
137
136
|
const svc = this.core[svcName];
|
|
138
137
|
if (svc?.install) {
|
|
139
138
|
this.core.logger.trace('installing service: %s', svcName);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contrast/agentify",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.15.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)",
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@contrast/common": "1.15.1",
|
|
21
|
-
"@contrast/config": "1.
|
|
21
|
+
"@contrast/config": "1.20.0",
|
|
22
22
|
"@contrast/logger": "1.6.0"
|
|
23
23
|
}
|
|
24
24
|
}
|