backtrace-service
Advanced tools
Comparing version 1.2.12 to 1.2.13
@@ -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 |
{ | ||
"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
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
99744
1775