@contrast/agentify
Advanced tools
Comparing version 1.29.1 to 1.30.0
@@ -36,2 +36,3 @@ /* | ||
'reporter', | ||
'telemetry', | ||
'contrastMethods', | ||
@@ -147,2 +148,3 @@ 'deadzones', | ||
// was check for appInfo errors length and throw if found | ||
{ name: 'telemetry', spec: '@contrast/telemetry' }, | ||
{ name: 'sensitive-data-masking', spec: '@contrast/core/lib/sensitive-data-masking' }, | ||
@@ -149,0 +151,0 @@ { name: 'is-agent-path', spec: '@contrast/core/lib/is-agent-path' }, |
@@ -18,4 +18,4 @@ /* | ||
const { EventEmitter } = require('events'); | ||
const { Event } = require('@contrast/common'); | ||
const patchType = 'sources'; | ||
@@ -29,2 +29,4 @@ module.exports = function(core) { | ||
const _hooks = new EventEmitter(); | ||
function aroundHook(serverType) { | ||
@@ -45,2 +47,12 @@ return function around(next, data) { | ||
if (_hooks._events.onSource) { | ||
_hooks.emit('onSource', { | ||
// future: non-http sources will have their own type | ||
sourceType: 'HTTP', | ||
store, | ||
incomingMessage: req, | ||
serverResponse: res, | ||
}); | ||
} | ||
res.on('finish', () => { | ||
@@ -61,3 +73,3 @@ messages.emit(Event.RESPONSE_FINISH, store); | ||
methods: ['emit'], | ||
patchType, | ||
patchType: 'sources', | ||
around: aroundHook(moduleName) | ||
@@ -70,4 +82,7 @@ }] | ||
install, | ||
addHook(name, handler) { | ||
if (name === 'onSource') _hooks.on(name, handler); | ||
}, | ||
aroundHook | ||
}; | ||
}; |
{ | ||
"name": "@contrast/agentify", | ||
"version": "1.29.1", | ||
"version": "1.30.0", | ||
"description": "Configures Contrast agent services and instrumentation within an application", | ||
@@ -20,15 +20,15 @@ "license": "SEE LICENSE IN LICENSE", | ||
"dependencies": { | ||
"@contrast/common": "1.23.0", | ||
"@contrast/config": "1.30.1", | ||
"@contrast/core": "1.34.1", | ||
"@contrast/deadzones": "1.4.0", | ||
"@contrast/common": "1.24.0", | ||
"@contrast/config": "1.31.0", | ||
"@contrast/core": "1.35.0", | ||
"@contrast/deadzones": "1.5.0", | ||
"@contrast/dep-hooks": "1.3.3", | ||
"@contrast/esm-hooks": "2.8.1", | ||
"@contrast/esm-hooks": "2.9.0", | ||
"@contrast/find-package-json": "^1.1.0", | ||
"@contrast/instrumentation": "1.12.0", | ||
"@contrast/instrumentation": "1.13.0", | ||
"@contrast/logger": "1.8.4", | ||
"@contrast/metrics": "1.10.0", | ||
"@contrast/metrics": "1.11.0", | ||
"@contrast/patcher": "1.7.4", | ||
"@contrast/reporter": "1.29.1", | ||
"@contrast/rewriter": "1.10.1", | ||
"@contrast/reporter": "1.30.0", | ||
"@contrast/rewriter": "1.11.0", | ||
"@contrast/scopes": "1.4.1", | ||
@@ -35,0 +35,0 @@ "semver": "^7.6.0" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58567
1543
+ Added@contrast/common@1.24.0(transitive)
+ Added@contrast/config@1.31.0(transitive)
+ Added@contrast/core@1.35.0(transitive)
+ Added@contrast/deadzones@1.5.0(transitive)
+ Added@contrast/esm-hooks@2.9.0(transitive)
+ Added@contrast/instrumentation@1.13.0(transitive)
+ Added@contrast/metrics@1.11.0(transitive)
+ Added@contrast/reporter@1.30.0(transitive)
+ Added@contrast/rewriter@1.11.0(transitive)
- Removed@contrast/common@1.23.0(transitive)
- Removed@contrast/config@1.30.1(transitive)
- Removed@contrast/core@1.34.1(transitive)
- Removed@contrast/deadzones@1.4.0(transitive)
- Removed@contrast/esm-hooks@2.8.1(transitive)
- Removed@contrast/instrumentation@1.12.0(transitive)
- Removed@contrast/metrics@1.10.0(transitive)
- Removed@contrast/reporter@1.29.1(transitive)
- Removed@contrast/rewriter@1.10.1(transitive)
Updated@contrast/common@1.24.0
Updated@contrast/config@1.31.0
Updated@contrast/core@1.35.0
Updated@contrast/deadzones@1.5.0
Updated@contrast/esm-hooks@2.9.0
Updated@contrast/metrics@1.11.0
Updated@contrast/reporter@1.30.0
Updated@contrast/rewriter@1.11.0