Socket
Socket
Sign inDemoInstall

@contrast/reporter

Package Overview
Dependencies
Maintainers
11
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@contrast/reporter - npm Package Compare versions

Comparing version 1.19.0 to 1.20.0

2

lib/reporters/contrast-ui/endpoints/effective-config.js

@@ -35,3 +35,3 @@ "use strict";

}),
...this.core.getEffectiveConfig(true)
...this.core.config.getReport({ redact: true })
});

@@ -38,0 +38,0 @@ }

@@ -86,4 +86,14 @@ "use strict";

});
// NODE-3136
// this.reporter.subscribeWithLock(Event.ASSESS_SESSION_CONFIGURATION_FINDING, (msg) => {});
this.reporter.subscribeWithLock(common_1.Event.ASSESS_SESSION_CONFIGURATION_FINDING, (msg) => {
const { ruleId, sinkEvent } = msg;
const store = this.getStore(msg);
if (!store)
return;
this.getAccum(store).messages.push({
events: tx.getTraceEvents(sinkEvent),
properties: sinkEvent.properties,
ruleId,
time: Date.now(),
});
});
this.reporter.subscribeWithLock(common_1.Event.RESPONSE_FINISH, (store) => {

@@ -90,0 +100,0 @@ const { route } = store;

@@ -79,9 +79,14 @@ "use strict";

this.version = core.protect?.version || '';
function setterFn(target, name, value) {
(0, common_1.set)(target, name, value);
target._flat[name] = value;
target._sources[name] = 'CONTRAST_UI';
}
core.messages.on(common_1.Event.SERVER_SETTINGS_UPDATE, (msg) => {
Object.assign(this.loggerConfig.syslog, (0, common_1.mergeRemoteData)(this.config, msg, common_1.featureReaders, setterFn).agent.security_logger.syslog);
core.messages?.on?.(common_1.Event.SERVER_SETTINGS_UPDATE, () => {
[
'syslog.enable',
'syslog.ip',
'syslog.port',
'syslog.facility',
'syslog.severity_exploited',
'syslog.severity_blocked',
'syslog.severity_probed',
].forEach((name) => {
(0, common_1.set)(this.loggerConfig, name, core.config.getEffectiveValue(`agent.security_logger.${name}`));
});
});

@@ -88,0 +93,0 @@ }

{
"name": "@contrast/reporter",
"version": "1.19.0",
"version": "1.20.0",
"description": "Subscribes to agent messages and reports them",

@@ -11,2 +11,3 @@ "license": "SEE LICENSE IN LICENSE",

"main": "lib/index.js",
"types": "lib/index.d.ts",
"engines": {

@@ -21,3 +22,3 @@ "npm": ">=6.13.7 <7 || >= 8.3.1",

"dependencies": {
"@contrast/common": "1.14.0",
"@contrast/common": "1.15.0",
"axios": "^0.27.2",

@@ -29,2 +30,2 @@ "crc-32": "^1.2.2",

}
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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