@mimik/local 4.4.2 → 4.4.3

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
@@ -282,7 +282,11 @@ const mITInit = (confType) => {
282
282
 
283
283
  const serverInit = (confType) => {
284
284
  const { regType, startConfig } = getStartParams(confType);
285
- const config = init(regType, startConfig.standAlone);
285
+
286
+ const standAlone = startConfig.standAlone === 'yes';
287
+ const isMSTDisabled = startConfig.DISABLE_MST === 'yes';
288
+
289
+ const config = init(regType, standAlone, isMSTDisabled);
286
290
  const { mSTBaseUrl, customer } = config;
287
291
  const { type } = config.pack.mimik;
288
292
  let start = startSetup(config, startConfig);
@@ -292,7 +296,7 @@ const serverInit = (confType) => {
292
296
  .then((apiFile) => {
293
297
  console.log('- mST base url: ' + `${mSTBaseUrl}`.info);
294
298
  console.log('- mIT base url: ' + config.MITBaseUrl.info);
295
- if (startConfig.standAlone === 'yes') {
299
+ if (standAlone || isMSTDisabled) {
296
300
  console.log('- service ' + type.info + ' is in ' + 'stand alone'.warn + ' mode');
297
301
  start = settingUpDummyServer(type, start.SERVER_ID, customer, start);
298
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) => {
84
+ const init = (regType, standAlone, isMSTDisabled) => {
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) => {
100
100
  key,
101
101
  };
102
102
 
103
- if (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 === 'yes') {
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) {
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.2",
3
+ "version": "4.4.3",
4
4
  "description": "Local setup configuration for normal and test opreration",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -29,21 +29,21 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@mimik/eslint-plugin-dependencies": "2.4.1",
32
- "@mimik/eslint-plugin-document-env": "1.0.0",
33
- "@mimik/git-hooks": "1.5.2",
32
+ "@mimik/eslint-plugin-document-env": "1.0.1",
33
+ "@mimik/git-hooks": "1.5.3",
34
34
  "axios": "0.24.0",
35
35
  "bluebird": "3.7.2",
36
36
  "chai": "4.3.4",
37
37
  "colors": "1.4.0",
38
38
  "comment-json": "4.1.1",
39
39
  "debug": "4.3.3",
40
- "eslint": "8.4.1",
40
+ "eslint": "8.6.0",
41
41
  "eslint-config-airbnb": "18.2.1",
42
- "eslint-plugin-import": "2.25.3",
42
+ "eslint-plugin-import": "2.25.4",
43
43
  "eslint-plugin-jsx-a11y": "6.5.1",
44
- "eslint-plugin-react": "7.27.1",
44
+ "eslint-plugin-react": "7.28.0",
45
45
  "eslint-plugin-react-hooks": "4.3.0",
46
- "fancy-log": "1.3.3",
46
+ "fancy-log": "2.0.0",
47
47
  "gulp": "4.0.2",
48
48
  "gulp-env": "0.4.0",
49
49
  "gulp-eslint": "6.0.0",
@@ -55,7 +55,7 @@
55
55
  "mocha": "9.1.3",
56
56
  "mochawesome": "7.0.1",
57
57
  "nyc": "15.1.0",
58
- "supertest": "6.1.6",
58
+ "supertest": "6.2.1",
59
59
  "uuid": "8.3.2"
60
60
  },
61
61
  "devDependencies": {