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.28.0 to 1.29.0

lib/index.d.ts.map

12

lib/reporters/base.d.ts

@@ -1,17 +0,13 @@

import { AppInfo, Event, Messages, RequestStore } from '@contrast/common';
import { Event, Messages, RequestStore } from '@contrast/common';
import { Config } from '@contrast/config';
import { Core as _Core } from '@contrast/core';
import { Scopes } from '@contrast/scopes';
import { Logger } from '@contrast/logger';
import { Protect } from '@contrast/protect';
export interface Core {
readonly agentName: string;
readonly agentVersion: string;
readonly reportingInstance: string;
readonly appInfo: AppInfo;
export type Core = Readonly<_Core> & {
readonly config: Config;
readonly logger: Logger;
readonly messages: Messages;
readonly protect?: Protect;
readonly scopes: Scopes;
}
};
export default abstract class BaseReporter {

@@ -18,0 +14,0 @@ config: Config;

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

if (err.response?.status >= 400) {
logger.error({ err }, 'failed to send application-activity');
logger.error({ err }, 'failure sending application-activity');
throw err;

@@ -64,0 +64,0 @@ }

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

catch (err) {
logger.error({ err }, 'failed to send application-inventory');
logger.error({ err }, 'failure sending application-inventory');
throw err;

@@ -46,0 +46,0 @@ }

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

catch (err) {
logger.error({ err }, 'failure sending effective config');
logger.error({ err }, 'failure sending effective-config');
throw err;

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

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

catch (err) {
logger.error({ err }, 'failure sending library usage');
logger.error({ err }, 'failure sending library-usage');
throw err;

@@ -36,0 +36,0 @@ }

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

catch (err) {
logger.error({ err }, 'failed to send routes-observed');
logger.error({ err }, 'failure sending routes-observed');
throw err;

@@ -50,0 +50,0 @@ }

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

catch (err) {
this.core.logger.error({ err }, 'failed to send traces data');
this.core.logger.error({ err }, 'failure sending traces data');
}

@@ -184,0 +184,0 @@ }

@@ -13,2 +13,3 @@ import { RequestStore } from '@contrast/common';

import ServerActivity from './endpoints/server-activity';
import ServerInventory from './endpoints/server-inventory';
import ServerSettings from './endpoints/server-settings';

@@ -33,2 +34,3 @@ import ServerStartup from './endpoints/server-startup';

serverActivity: ServerActivity;
serverInventory: ServerInventory;
serverSettings: ServerSettings;

@@ -35,0 +37,0 @@ serverStartup: ServerStartup;

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

const server_activity_1 = __importDefault(require("./endpoints/server-activity"));
const server_inventory_1 = __importDefault(require("./endpoints/server-inventory"));
const server_settings_1 = __importDefault(require("./endpoints/server-settings"));

@@ -57,2 +58,3 @@ const server_startup_1 = __importDefault(require("./endpoints/server-startup"));

this.serverActivity = new server_activity_1.default(core, this);
this.serverInventory = new server_inventory_1.default(core, this);
this.serverSettings = new server_settings_1.default(core, this);

@@ -71,2 +73,3 @@ this.serverStartup = new server_startup_1.default(core, this);

await this.effectiveConfig.put();
await this.serverInventory.post();
}

@@ -73,0 +76,0 @@ catch (err) {

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

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

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

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