Socket
Socket
Sign inDemoInstall

@contrast/agentify

Package Overview
Dependencies
Maintainers
0
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/agentify - npm Package Compare versions

Comparing version 1.29.1 to 1.30.0

2

lib/index.js

@@ -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
};
};

20

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc