@digilabs/ngest-ig
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -5,2 +5,3 @@ 'use strict' | ||
const pack = require('../../package.json'); | ||
console.log("PlatformIG Api Version: " + pack.version); | ||
@@ -96,4 +97,6 @@ // endpoints | ||
setEnvironment() { | ||
const environment = (typeof process.env.IG_ALGO_DEMO) === 'undefined' ? 'dev' : process.env.IG_ALGO_DEMO; | ||
let environment = process.env.IG_ALGO_DEMO === true ? 'dev' : 'prod'; | ||
this.config_env = this.config[environment]; | ||
if (!this.config_env) throw new Error('The environment config is missing') | ||
@@ -100,0 +103,0 @@ } |
{ | ||
"name": "@digilabs/ngest-ig", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"description": "IG API nodejs client", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -14,3 +14,11 @@ # ngest-ig | ||
## Environment variables | ||
Set the following environment variables | ||
* IG_USERNAME | ||
* IG_PASSWORD | ||
* IG_API_KEY | ||
* IG_ALGO_DEMO=true <-- to use demo account otherwise will attempt to use prod account> | ||
## License | ||
@@ -17,0 +25,0 @@ The MIT License (MIT) |
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
51772
643
32
9