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

backtrace-service

Package Overview
Dependencies
Maintainers
5
Versions
153
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

backtrace-service - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

13

lib/identity/identity.js

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

return __awaiter(this, void 0, void 0, function () {
var prefix, requestUrl, nonce, hmac, result, err_1;
var prefix, protocol, requestUrl, nonce, hmac, result, err_1;
return __generator(this, function (_a) {

@@ -176,3 +176,4 @@ switch (_a.label) {

prefix = coronerdUrl.endsWith('/') ? '' : '/';
requestUrl = "" + coronerdUrl + prefix + "api/login";
protocol = coronerdUrl.startsWith('http') ? '' : 'http://';
requestUrl = "" + protocol + coronerdUrl + prefix + "api/login";
nonce = crypto_1.randomBytes(32).toString('hex');

@@ -227,3 +228,3 @@ hmac = this.generateHmac(this.descr.secret, nonce);

return __awaiter(this, void 0, void 0, function () {
var prefix, requestUrl, result, err_2;
var prefix, protocol, requestUrl, result, err_2;
return __generator(this, function (_a) {

@@ -236,3 +237,4 @@ switch (_a.label) {

prefix = universeUrl.endsWith('/') ? '' : '/';
requestUrl = "" + universeUrl + prefix + "api/config";
protocol = universeUrl.startsWith('http') ? '' : 'http://';
requestUrl = "" + protocol + universeUrl + prefix + "api/config";
_a.label = 1;

@@ -278,2 +280,5 @@ case 1:

};
if (!data.url.startsWith('http')) {
data.url = "http://" + data.url;
}
request.coronerAuth = data;

@@ -280,0 +285,0 @@ }

/**
* Identity
*/
export { IServerConfiguration } from './identity/model/serverConfiguration';
export { IdentityManager } from './identity/identity';

@@ -5,0 +6,0 @@ export { ICoronerRequestOption } from './identity/model/authRequestOptions';

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
/**
* Identity
*/
var identity_1 = require("./identity/identity");

@@ -7,0 +4,0 @@ exports.IdentityManager = identity_1.IdentityManager;

{
"name": "backtrace-service",
"version": "1.2.4",
"version": "1.2.5",
"description": "Common tools for Backtrace Node services",

@@ -5,0 +5,0 @@ "author": "Backtrace",

@@ -168,3 +168,4 @@ import axios from 'axios';

const prefix = coronerdUrl.endsWith('/') ? '' : '/';
const requestUrl = `${coronerdUrl}${prefix}api/login`;
const protocol = coronerdUrl.startsWith('http') ? '' : 'http://';
const requestUrl = `${protocol}${coronerdUrl}${prefix}api/login`;
const nonce = randomBytes(32).toString('hex');

@@ -216,3 +217,4 @@ const hmac = this.generateHmac(this.descr.secret, nonce);

const prefix = universeUrl.endsWith('/') ? '' : '/';
const requestUrl = `${universeUrl}${prefix}api/config`;
const protocol = universeUrl.startsWith('http') ? '' : 'http://';
const requestUrl = `${protocol}${universeUrl}${prefix}api/config`;
try {

@@ -254,2 +256,5 @@ const result = await axios.get<IServerConfiguration>(requestUrl, {

};
if (!data.url.startsWith('http')) {
data.url = `http://${data.url}`;
}
(request as any).coronerAuth = data;

@@ -256,0 +261,0 @@ }

@@ -95,2 +95,3 @@ export interface IConfig {

// tslint:disable-next-line: interface-name
export interface Intercom {

@@ -97,0 +98,0 @@ user_hash: string;

/**
* Identity
*/
export { IServerConfiguration } from './identity/model/serverConfiguration';
export { IdentityManager } from './identity/identity';

@@ -5,0 +6,0 @@ export { ICoronerRequestOption } from './identity/model/authRequestOptions';

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