qcobjects-cli
Advanced tools
Comparing version 0.1.33 to 0.1.34
{ | ||
"name": "qcobjects-cli", | ||
"version": "0.1.33", | ||
"version": "0.1.34", | ||
"description": "qcobjects cli command line tool", | ||
@@ -5,0 +5,0 @@ "main": "qcobjects-cli.js", |
@@ -33,30 +33,5 @@ #!/usr/bin/env node | ||
CONFIG.set('projectPath',`${process.cwd()}/`); | ||
CONFIG.set('private-key-pem','localhost-privkey.pem'); | ||
CONFIG.set('private-cert-pem','localhost-cert.pem'); | ||
CONFIG.set('domain','localhost'); | ||
require(absolutePath+'/org.quickcorp.qcobjects.defaultsettings.js'); | ||
try { | ||
const _config = require(CONFIG.get('projectPath')+'config.json'); | ||
logger.debug('Loading settings from your config.json'); | ||
for (var k in _config){ | ||
CONFIG.set(k,_config[k]); | ||
} | ||
if (typeof CONFIG.get('backend') != 'undefined'){ | ||
global.set('backendAvailable',true); | ||
if (typeof CONFIG.get('basePath') != 'undefined'){ | ||
logger.debug(`Changing the current directory: ${process.cwd()}`); | ||
try { | ||
process.chdir(CONFIG.get('basePath')); | ||
logger.debug(`New directory: ${process.cwd()}`); | ||
} catch (err) { | ||
logger.warn(`It was impossible to change the current chdir: ${err}`); | ||
} | ||
} | ||
} | ||
}catch (e){ | ||
logger.debug('No config.json file in your project'); | ||
} | ||
const { execSync } = require('child_process'); | ||
@@ -63,0 +38,0 @@ // stderr is sent to stderr of parent process |
@@ -32,36 +32,4 @@ #!/usr/bin/env node | ||
CONFIG.set('documentRootFileIndex','index.html'); | ||
CONFIG.set('projectPath',`${process.cwd()}/`); | ||
CONFIG.set('useConfigService',false); // this is only true useful for client web side | ||
CONFIG.set('documentRoot','./'); | ||
CONFIG.set('serverPortHTTP',80); | ||
CONFIG.set('serverPortHTTPS',443); | ||
CONFIG.set('private-key-pem','localhost-privkey.pem'); | ||
CONFIG.set('private-cert-pem','localhost-cert.pem'); | ||
CONFIG.set('allowHTTP1',true); | ||
CONFIG.set('useTemplate',false); | ||
CONFIG.set('domain','localhost'); | ||
require(absolutePath+'/org.quickcorp.qcobjects.defaultsettings.js'); | ||
try { | ||
const _config = require(CONFIG.get('projectPath')+'config.json'); | ||
logger.debug('Loading settings from your config.json'); | ||
for (var k in _config){ | ||
CONFIG.set(k,_config[k]); | ||
} | ||
if (typeof CONFIG.get('backend') != 'undefined'){ | ||
global.set('backendAvailable',true); | ||
if (typeof CONFIG.get('basePath') != 'undefined'){ | ||
logger.debug(`Changing the current directory: ${process.cwd()}`); | ||
try { | ||
process.chdir(CONFIG.get('basePath')); | ||
logger.debug(`New directory: ${process.cwd()}`); | ||
} catch (err) { | ||
logger.warn(`It was impossible to change the current chdir: ${err}`); | ||
} | ||
} | ||
} | ||
}catch (e){ | ||
logger.debug('No config.json file in your project'); | ||
} | ||
require(absolutePath+'/org.quickcorp.qcobjects.main.http.gae.server.js'); | ||
@@ -68,0 +36,0 @@ |
@@ -32,36 +32,4 @@ #!/usr/bin/env node | ||
CONFIG.set('documentRootFileIndex','index.html'); | ||
CONFIG.set('projectPath',`${process.cwd()}/`); | ||
CONFIG.set('useConfigService',false); // this is only true useful for client web side | ||
CONFIG.set('documentRoot','./'); | ||
CONFIG.set('serverPortHTTP',80); | ||
CONFIG.set('serverPortHTTPS',443); | ||
CONFIG.set('private-key-pem','localhost-privkey.pem'); | ||
CONFIG.set('private-cert-pem','localhost-cert.pem'); | ||
CONFIG.set('allowHTTP1',true); | ||
CONFIG.set('useTemplate',false); | ||
CONFIG.set('domain','localhost'); | ||
require(absolutePath+'/org.quickcorp.qcobjects.defaultsettings.js'); | ||
try { | ||
const _config = require(CONFIG.get('projectPath')+'config.json'); | ||
logger.debug('Loading settings from your config.json'); | ||
for (var k in _config){ | ||
CONFIG.set(k,_config[k]); | ||
} | ||
if (typeof CONFIG.get('backend') != 'undefined'){ | ||
global.set('backendAvailable',true); | ||
if (typeof CONFIG.get('basePath') != 'undefined'){ | ||
logger.debug(`Changing the current directory: ${process.cwd()}`); | ||
try { | ||
process.chdir(CONFIG.get('basePath')); | ||
logger.debug(`New directory: ${process.cwd()}`); | ||
} catch (err) { | ||
logger.warn(`It was impossible to change the current chdir: ${err}`); | ||
} | ||
} | ||
} | ||
}catch (e){ | ||
logger.debug('No config.json file in your project'); | ||
} | ||
require(absolutePath+'/org.quickcorp.qcobjects.main.http2.server.js'); | ||
@@ -68,0 +36,0 @@ |
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
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
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
21
80285
1837
24