@mimik/local 7.0.7 → 7.1.0

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.
@@ -53,7 +53,7 @@ export default [
53
53
  'max-lines-per-function': ['warn', { max: MAX_LINES_IN_FUNCTION, skipComments: true }],
54
54
  'max-params': ['error', MAX_FUNCTION_PARAMETERS],
55
55
  'max-statements': ['warn', MAX_STATEMENTS_IN_FUNCTION],
56
- 'no-confusing-arrow': ['off'], // arrow isnt confusing
56
+ 'no-confusing-arrow': ['off'], // arrow isn't confusing
57
57
  'no-inline-comments': ['off'],
58
58
  'no-magic-numbers': ['error', {
59
59
  ignore: ALLOWED_CONSTANTS,
package/eslint.config.js CHANGED
@@ -51,7 +51,7 @@ export default [
51
51
  'max-lines-per-function': ['warn', { max: MAX_LINES_IN_FUNCTION, skipComments: true }],
52
52
  'max-params': ['error', MAX_FUNCTION_PARAMETERS],
53
53
  'max-statements': ['warn', MAX_STATEMENTS_IN_FUNCTION],
54
- 'no-confusing-arrow': ['off'], // arrow isnt confusing
54
+ 'no-confusing-arrow': ['off'], // arrow isn't confusing
55
55
  'no-inline-comments': ['off'],
56
56
  'no-process-env': ['error'],
57
57
  'no-ternary': ['off'],
package/lib/tasks.js CHANGED
@@ -72,7 +72,6 @@ import { load } from 'js-yaml';
72
72
  import process from 'process';
73
73
  import { rp } from './rp-axios-wrapper.js';
74
74
  import split from 'lodash.split';
75
- import trim from 'lodash.trim';
76
75
  import { v4 as uuidv4 } from 'uuid';
77
76
 
78
77
  const EMPTY = 0;
@@ -161,7 +160,7 @@ const startSetup = (config, origStart) => {
161
160
  let logMode = null;
162
161
 
163
162
  if (start.LOG_MODE) {
164
- logMode = split(trim(start.LOG_MODE), /\s*,\s*/u);
163
+ logMode = split(start.LOG_MODE.trim(), /\s*,\s*/u);
165
164
  if (logMode.length === EMPTY) exitError(regType, 'Invalid LOG_MODE: cannot be an empty array');
166
165
  if (difference(logMode, ALL_MODES).length !== EMPTY) exitError(regType, `Invalid items in LOG_MODE: ${logMode}`);
167
166
  if (logMode.includes(NONE) && logMode.length !== DUPLICATE) throw new Error(`Cannot have multiple modes when ${NONE} is selected`);
@@ -1,9 +1,8 @@
1
1
  /* eslint-disable no-console */
2
2
  import split from 'lodash.split';
3
- import trim from 'lodash.trim';
4
3
 
5
4
  const test = ' a, b ,c,d ';
6
5
  const allTest = 'all ';
7
6
 
8
- console.log(split(trim(test), /\s*,\s*/u));
9
- console.log(split(trim(allTest), /\s*,\s*/u));
7
+ console.log(split(test.trim(), /\s*,\s*/u));
8
+ console.log(split(allTest.trim(), /\s*,\s*/u));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mimik/local",
3
- "version": "7.0.7",
3
+ "version": "7.1.0",
4
4
  "description": "Local setup configuration for normal and test opreration",
5
5
  "main": "./index.js",
6
6
  "type": "module",
@@ -29,10 +29,10 @@
29
29
  "url": "https://bitbucket.org/mimiktech/local"
30
30
  },
31
31
  "dependencies": {
32
- "@eslint/js": "9.32.0",
32
+ "@eslint/js": "9.33.0",
33
33
  "@mimik/eslint-plugin-document-env": "^2.0.8",
34
34
  "@mimik/git-hooks": "^2.0.0",
35
- "@stylistic/eslint-plugin": "5.2.2",
35
+ "@stylistic/eslint-plugin": "5.2.3",
36
36
  "axios": "1.11.0",
37
37
  "bluebird": "3.7.2",
38
38
  "c8": "10.1.3",
@@ -40,11 +40,11 @@
40
40
  "colors": "1.4.0",
41
41
  "comment-json": "4.2.5",
42
42
  "debug": "4.4.1",
43
- "eslint": "9.32.0",
43
+ "eslint": "9.33.0",
44
44
  "eslint-plugin-import": "2.32.0",
45
45
  "husky": "9.1.7",
46
46
  "ip": "2.0.1",
47
- "js-base64": "3.7.7",
47
+ "js-base64": "3.7.8",
48
48
  "js-yaml": "4.1.0",
49
49
  "jsdoc-to-markdown": "9.1.2",
50
50
  "lodash": "4.17.21",
@@ -56,7 +56,6 @@
56
56
  "lodash.isnumber": "3.0.3",
57
57
  "lodash.isobject": "3.0.2",
58
58
  "lodash.split": "4.4.2",
59
- "lodash.trim": "4.5.1",
60
59
  "lodash.union": "4.6.0",
61
60
  "mocha": "11.7.1",
62
61
  "mochawesome": "7.1.3",
package/scripts.json CHANGED
@@ -3,7 +3,8 @@
3
3
  "lint": "eslint . --no-error-on-unmatched-pattern",
4
4
  "docs": "jsdoc2md ./src/configuration/config.js > README.md",
5
5
  "pretest": "node ./local/testSetup.js",
6
- "test": "mocha --reporter mochawesome --bail --check-leaks --exit test/",
6
+ "test": "mocha --reporter mochawesome --bail --exit --file test/src/set-env.js test/normal/",
7
+ "test-detached": "node ./local/testSetup.js && mocha --reporter mochawesome --bail --exit --file test/src/set-env.js test/detached/",
7
8
  "test-ci": "c8 --reporter=lcov --reporter=text npm test --exit",
8
9
  "prestart": "node ./local/setup.js",
9
10
  "start": "sh server-start.sh",