Socket
Socket
Sign inDemoInstall

@contrast/reporter

Package Overview
Dependencies
Maintainers
9
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.23.0 to 1.23.1

10

lib/reporters/contrast-ui/endpoints/v1-endpoint.js

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

this.client = opts.v1Client;
this.serverHostName = (0, utils_1.base64Encode)(core.appInfo.serverName);
this.serverPath = (0, utils_1.base64Encode)(core.appInfo.app_dir);
this.serverType = (0, utils_1.base64Encode)(core.appInfo.serverType);
this.appLanguage = (0, utils_1.base64Encode)('Node');
this.appName = (0, utils_1.base64Encode)(core.appInfo.name);
this.serverHostName = (0, utils_1.base64Encode)(core.appInfo.serverName, true);
this.serverPath = (0, utils_1.base64Encode)(core.appInfo.app_dir, true);
this.serverType = (0, utils_1.base64Encode)(core.appInfo.serverType, true);
this.appLanguage = (0, utils_1.base64Encode)('Node', true);
this.appName = (0, utils_1.base64Encode)(core.appInfo.name, true);
}

@@ -35,0 +35,0 @@ appUrl(endpoint) {

import { AxiosInstance } from 'axios';
import { Core } from './../base';
export declare function base64Encode(str: string): string;
export declare function base64Encode(str: string, urlSafe?: boolean): string;
export declare function createNgClient(core: Core): AxiosInstance;
export declare function createV1Client(core: Core): AxiosInstance;
//# sourceMappingURL=utils.d.ts.map

@@ -24,4 +24,4 @@ "use strict";

const crypto_1 = require("crypto");
function base64Encode(str) {
return Buffer.from(str).toString('base64url');
function base64Encode(str, urlSafe) {
return Buffer.from(str).toString(urlSafe ? 'base64url' : 'base64');
}

@@ -28,0 +28,0 @@ exports.base64Encode = base64Encode;

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

@@ -5,0 +5,0 @@ "license": "SEE LICENSE IN LICENSE",

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