@betit/orion-node-sdk
Advanced tools
Comparing version 1.0.0-beta.36 to 1.0.0-beta.37
@@ -30,2 +30,13 @@ "use strict"; | ||
/** | ||
* Checks if a environment variable is true or 1. | ||
* @param envName The name of the environment variable. | ||
*/ | ||
function trueEnv(envName) { | ||
return envName in process.env && | ||
process.env[envName] in { | ||
'true': 0, | ||
'1': 0, | ||
}; | ||
} | ||
/** | ||
* Provides an interface to create your service and register request handlers. | ||
@@ -49,4 +60,4 @@ */ | ||
this.logger = this.options.logger || new logger_1.Logger(name); | ||
this.enableStatusEndpoints = ('enableStatusEndpoints' in options) ? options.enableStatusEndpoints : process.argv.indexOf('--watchdog') !== -1; | ||
this.registerToWatchdog = ('registerToWatchdog' in options) ? options.registerToWatchdog : process.argv.indexOf('--watchdog') !== -1; | ||
this.enableStatusEndpoints = ('enableStatusEndpoints' in options) ? options.enableStatusEndpoints : trueEnv('WATCHDOG'); | ||
this.registerToWatchdog = ('registerToWatchdog' in options) ? options.registerToWatchdog : trueEnv('WATCHDOG'); | ||
this.healthChecks = {}; | ||
@@ -53,0 +64,0 @@ this.watchdogServiceName = health_1.DefaultWatchdogServiceName(); |
{ | ||
"name": "@betit/orion-node-sdk", | ||
"version": "1.0.0-beta.36", | ||
"version": "1.0.0-beta.37", | ||
"description": "SDK for orion", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
@@ -99,3 +99,3 @@ [![NPM version][npm-image]][npm-url] | ||
Auto-generated documentation is located [here](https://betit.github.io/orion-node-sdk/). | ||
Auto-generated documentation is located [here](https://gig.github.io/orion-node-sdk/). | ||
@@ -113,3 +113,3 @@ ## Tests | ||
[MIT](https://github.com/betit/orion-node-sdk/blob/master/LICENSE) | ||
[MIT](https://github.com/GiG/orion-node-sdk/blob/master/LICENSE) | ||
@@ -116,0 +116,0 @@ [npm-image]: https://badge.fury.io/js/%40betit%2Forion-node-sdk.svg |
Sorry, the diff of this file is too big to display
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
1733591
3235
7