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

@contrast/reporter

Package Overview
Dependencies
Maintainers
0
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.27.3 to 1.28.0

1

lib/reporters/base.d.ts

@@ -9,2 +9,3 @@ import { AppInfo, Event, Messages, RequestStore } from '@contrast/common';

readonly agentVersion: string;
readonly reportingInstance: string;
readonly appInfo: AppInfo;

@@ -11,0 +12,0 @@ readonly config: Config;

2

lib/reporters/contrast-ui/endpoints/library-usage.d.ts

@@ -6,4 +6,4 @@ import { Core } from '../../base';

constructor(core: Core, uiReporter: ContrastUIReporter);
post(libInfo: object): Promise<void>;
post(observations: [object]): Promise<void>;
}
//# sourceMappingURL=library-usage.d.ts.map

@@ -25,7 +25,7 @@ "use strict";

}
async post(libInfo) {
async post(observations) {
const { client, core: { logger }, } = this;
try {
await client.post(this.appUrl('/library-usage'), {
observations: [libInfo]
observations
});

@@ -32,0 +32,0 @@ }

@@ -134,5 +134,5 @@ "use strict";

});
this.subscribeWithLock(common_1.Event.LIBRARY_USAGE, async (libInfo) => {
this.subscribeWithLock(common_1.Event.LIBRARY_USAGE, async (observations) => {
try {
await this.libraryUsage.post(libInfo);
await this.libraryUsage.post(observations);
}

@@ -139,0 +139,0 @@ catch (err) {

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

'X-Contrast-Header-Encoding': 'base64',
'X-Contrast-Reporting-Instance': core.reportingInstance,
},

@@ -117,2 +118,3 @@ httpsAgent: httpsAgent(core),

'User-Agent': `ContrastNodeAgent/${core.agentVersion}`,
'X-Contrast-Reporting-Instance': core.reportingInstance,
},

@@ -119,0 +121,0 @@ httpsAgent: httpsAgent(core),

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

common_1.Event.ARCHITECTURE_COMPONENT,
common_1.Event.ROUTE_COVERAGE_DISCOVERY,
common_1.Event.ROUTE_COVERAGE_DISCOVERY_FINISHED,

@@ -46,0 +45,0 @@ common_1.Event.ROUTE_COVERAGE_OBSERVATION

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

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

"dependencies": {
"@contrast/common": "1.21.3",
"@contrast/common": "1.22.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

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