Socket
Socket
Sign inDemoInstall

qcobjects-cli

Package Overview
Dependencies
Maintainers
1
Versions
197
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

qcobjects-cli - npm Package Compare versions

Comparing version 0.1.33 to 0.1.34

org.quickcorp.qcobjects.defaultsettings.js

2

package.json
{
"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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc