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.12 to 1.2.13

2

lib/identity/identity.d.ts

@@ -11,4 +11,6 @@ import { NextFunction, Request, Response } from 'express';

authenticated: any;
private developmentMode;
private logger;
constructor(descr: IServiceDescriptor);
setDevelopmentMode(): void;
setLogger(logger: {

@@ -15,0 +17,0 @@ log: (level: string, msg: string) => void;

@@ -51,5 +51,9 @@ "use strict";

this.descr = descr;
this.developmentMode = false;
this.logger = undefined;
this.authenticated = {};
}
IdentityManager.prototype.setDevelopmentMode = function () {
this.developmentMode = true;
};
IdentityManager.prototype.setLogger = function (logger) {

@@ -155,2 +159,7 @@ if (!logger || !logger.log) {

if (!coronerd_nonce || !coronerd_hmac) {
if (_this.developmentMode) {
/* Ignore missing parameters only in development mode */
next();
return;
}
responseResult_1.ResponseResult.badRequest(response, 'missing parameters');

@@ -317,2 +326,3 @@ next(new Error('missing response parameters'));

exports.IdentityManager = IdentityManager;
// vim:set ts=2 sw=2 et:
//# sourceMappingURL=identity.js.map

2

package.json
{
"name": "backtrace-service",
"version": "1.2.12",
"version": "1.2.13",
"description": "Common tools for Backtrace Node services",

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

@@ -23,2 +23,4 @@ import axios from 'axios';

private developmentMode: boolean = false;
private logger:

@@ -32,2 +34,6 @@ | { log: (level: string, log: string) => void }

public setDevelopmentMode() {
this.developmentMode = true;
}
public setLogger(logger: { log: (level: string, msg: string) => void }) {

@@ -155,2 +161,7 @@ if (!logger || !logger.log) {

if (!coronerd_nonce || !coronerd_hmac) {
if (this.developmentMode) {
/* Ignore missing parameters only in development mode */
next();
return;
}
ResponseResult.badRequest(response, 'missing parameters');

@@ -306,1 +317,3 @@ next(new Error('missing response parameters'));

}
// vim:set ts=2 sw=2 et:

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