@contrast/reporter
Advanced tools
Comparing version 1.23.0 to 1.23.1
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
207949