Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@contrast/reporter

Package Overview
Dependencies
Maintainers
9
Versions
62
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.29.1 to 1.30.0

1

lib/reporters/contrast-ui/endpoints/traces/index.d.ts

@@ -18,2 +18,3 @@ import { AxiosInstance } from 'axios';

export default class Traces extends NgEndpoint {
hashSet: Set<any>;
accumMap: Map<RequestStore, Accum>;

@@ -20,0 +21,0 @@ reporter: BaseReporter;

28

lib/reporters/contrast-ui/endpoints/traces/index.js

@@ -57,2 +57,3 @@ "use strict";

super(core, { ...uiReporter, url: '/api/ng/traces' });
this.hashSet = new Set();
this.accumMap = new Map();

@@ -126,2 +127,3 @@ this.reporter = uiReporter;

}
this.hashSet.clear();
}, 1000).unref();

@@ -193,10 +195,17 @@ }

// flatten
complete.push(...accum.messages.map(({ ruleId, events, properties, time }) => ({
ruleId,
properties,
events,
routes: accum.routes,
request: accum.request,
time,
})));
accum.messages.forEach(({ ruleId, events, properties, time }) => {
const traceData = {
ruleId,
properties,
events,
routes: accum.routes,
request: accum.request,
time
};
const hash = tx.getEventHash(traceData);
if (!this.hashSet.has(hash)) {
this.hashSet.add(hash);
complete.push({ ...traceData, hash });
}
});
}

@@ -212,4 +221,3 @@ }

messages: complete.map((traceData, i) => {
const { ruleId, routes } = traceData;
const hash = traceData.hash = tx.getEventHash(traceData);
const { ruleId, routes, hash } = traceData;
return {

@@ -216,0 +224,0 @@ appLanguage: 'Node',

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

@@ -21,3 +21,3 @@ "license": "SEE LICENSE IN LICENSE",

"dependencies": {
"@contrast/common": "1.23.0",
"@contrast/common": "1.24.0",
"axios": "^1.6.8",

@@ -24,0 +24,0 @@ "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

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