@contrast/agent 5.0.0-beta.8 → 5.0.0-beta.9

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.
Files changed (2) hide show
  1. package/lib/index.js +8 -12
  2. package/package.json +6 -6
package/lib/index.js CHANGED
@@ -16,11 +16,6 @@
16
16
  'use strict';
17
17
 
18
18
  const semver = require('semver');
19
- const assess = require('@contrast/assess');
20
- const archComponents = require('@contrast/architecture-components');
21
- const libraryUsage = require('@contrast/library-analysis');
22
- const protect = require('@contrast/protect');
23
- const routeCoverage = require('@contrast/route-coverage');
24
19
  const {
25
20
  name: agentName,
26
21
  version: agentVersion,
@@ -29,7 +24,7 @@ const {
29
24
  npm: npmEngine
30
25
  }
31
26
  } = require('../package.json');
32
- const { agentify } = require('@contrast/core')({ agentName, agentVersion });
27
+ const agentify = require('@contrast/agentify')({ agentName, agentVersion });
33
28
 
34
29
  agentify((core) => {
35
30
  if (!semver.satisfies(process.version, nodeEngine)) {
@@ -58,11 +53,11 @@ agentify((core) => {
58
53
  };
59
54
 
60
55
  core.npmVersionRange = npmEngine;
61
- assess(core);
62
- archComponents(core);
63
- libraryUsage(core);
64
- routeCoverage(core);
65
- protect(core); // protect loads lastly, being the only non-passive feature
56
+ require('@contrast/assess')(core);
57
+ require('@contrast/architecture-components')(core);
58
+ require('@contrast/library-analysis')(core);
59
+ require('@contrast/route-coverage')(core);
60
+ require('@contrast/protect')(core); // protect loads lastly, being the only non-passive feature
66
61
  }, {
67
62
  installOrder: [
68
63
  'reporter',
@@ -79,6 +74,7 @@ agentify((core) => {
79
74
  'libraryAnalysis',
80
75
  'heapSnapshots',
81
76
  'rewriteHooks',
82
- 'functionHooks'
77
+ 'functionHooks',
78
+ 'metrics',
83
79
  ],
84
80
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contrast/agent",
3
- "version": "5.0.0-beta.8",
3
+ "version": "5.0.0-beta.9",
4
4
  "description": "Assess and Protect agents for Node.js",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "Contrast Security <nodejs@contrastsecurity.com> (https://www.contrastsecurity.com)",
@@ -17,12 +17,12 @@
17
17
  "test": "../scripts/test.sh"
18
18
  },
19
19
  "dependencies": {
20
+ "@contrast/agentify": "1.16.0",
20
21
  "@contrast/architecture-components": "1.13.1",
21
- "@contrast/assess": "1.16.1",
22
- "@contrast/core": "1.26.0",
23
- "@contrast/library-analysis": "1.13.1",
24
- "@contrast/route-coverage": "1.11.2",
25
- "@contrast/protect": "1.28.0",
22
+ "@contrast/assess": "1.17.0",
23
+ "@contrast/library-analysis": "1.14.0",
24
+ "@contrast/protect": "1.28.1",
25
+ "@contrast/route-coverage": "1.12.0",
26
26
  "semver": "^7.3.7"
27
27
  }
28
28
  }