Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function runAsync(programName) {
try {
// Setup analytics
Analytics.setSegmentNodeKey('vGu92cdmVaggGA26s3lBX6Y5fILm8SQ7');
Analytics.setVersionName(packageJSON.version);
_registerLogs();
UserManager.setInteractiveAuthenticationCallback(loginOrRegisterIfLoggedOut);
if (process.env.SERVER_URL) {
let serverUrl = process.env.SERVER_URL;
if (!serverUrl.startsWith('http')) {
serverUrl = `http://${serverUrl}`;
}
let parsedUrl = url.parse(serverUrl);
Config.api.host = parsedUrl.hostname;
Config.api.port = parsedUrl.port;
}
Config.developerTool = packageJSON.name;
function runAsync() {
try {
// Setup analytics
Analytics.setSegmentNodeKey('vGu92cdmVaggGA26s3lBX6Y5fILm8SQ7');
Analytics.setVersionName(require('../package.json').version);
_registerLogs();
if (process.env.SERVER_URL) {
let serverUrl = process.env.SERVER_URL;
if (!serverUrl.startsWith('http')) {
serverUrl = `http://${serverUrl}`;
}
let parsedUrl = url.parse(serverUrl);
Config.api.host = parsedUrl.hostname;
Config.api.port = parsedUrl.port;
}
Config.developerTool = 'exp';
// Setup our commander instance
program.name = 'exp';
async _setVersionAsync() {
let version = await this._versionStringAsync();
Analytics.setVersionName(version);
}
async _setVersionAsync() {
let version = await this._versionStringAsync();
Analytics.setVersionName(version);
Intercom.setVersionName(version);
}