@mimik/local 4.4.3 → 4.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js CHANGED
@@ -284,9 +284,9 @@ const serverInit = (confType) => {
284
284
  const { regType, startConfig } = getStartParams(confType);
285
285
 
286
286
  const standAlone = startConfig.standAlone === 'yes';
287
- const isMSTDisabled = startConfig.DISABLE_MST === 'yes';
287
+ const isMSTSet = startConfig.MST_SET !== 'off';
288
288
 
289
- const config = init(regType, standAlone, isMSTDisabled);
289
+ const config = init(regType, standAlone, isMSTSet);
290
290
  const { mSTBaseUrl, customer } = config;
291
291
  const { type } = config.pack.mimik;
292
292
  let start = startSetup(config, startConfig);
@@ -296,7 +296,7 @@ const serverInit = (confType) => {
296
296
  .then((apiFile) => {
297
297
  console.log('- mST base url: ' + `${mSTBaseUrl}`.info);
298
298
  console.log('- mIT base url: ' + config.MITBaseUrl.info);
299
- if (standAlone || isMSTDisabled) {
299
+ if (standAlone || !isMSTSet) {
300
300
  console.log('- service ' + type.info + ' is in ' + 'stand alone'.warn + ' mode');
301
301
  start = settingUpDummyServer(type, start.SERVER_ID, customer, start);
302
302
  if (confType === TEST) {
package/lib/tasks.js CHANGED
@@ -81,7 +81,7 @@ const getStartParams = (confType) => {
81
81
  };
82
82
  };
83
83
 
84
- const init = (regType, standAlone, isMSTDisabled) => {
84
+ const init = (regType, standAlone, isMSTSet) => {
85
85
  const pack = retrieve(regType, packageFile);
86
86
  const sumoLog = retrieve(regType, sumoLogFile, { default: DEFAULT_SUMOLOG });
87
87
  const s3Log = retrieve(regType, s3LogFile, { default: DEFAULT_S3LOG });
@@ -100,8 +100,8 @@ const init = (regType, standAlone, isMSTDisabled) => {
100
100
  key,
101
101
  };
102
102
 
103
- if (!isMSTDisabled && pack.mimik.type !== TOKEN_SERVICE && pack.mimik.type !== IT_REGISTRY) config.customer = retrieve(regType, customerConfigFile); // we don't need customer for mST or mIT
104
- if (standAlone || isMSTDisabled) {
103
+ if (isMSTSet && pack.mimik.type !== TOKEN_SERVICE && pack.mimik.type !== IT_REGISTRY) config.customer = retrieve(regType, customerConfigFile); // we don't need customer for mST or mIT
104
+ if (standAlone || !isMSTSet) {
105
105
  config.mST = DUMMY_MST;
106
106
  console.log('- using ' + 'dummy mSTConfig'.warn);
107
107
  config.mIT = DUMMY_MIT;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/local",
3
- "version": "4.4.3",
3
+ "version": "4.4.4",
4
4
  "description": "Local setup configuration for normal and test opreration",
5
5
  "main": "index.js",
6
6
  "scripts": {