@mimik/local 6.0.12 → 7.0.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.
- package/README.md +23 -23
- package/configuration/config.js +32 -28
- package/dotFiles/eslint.config.js +63 -0
- package/eslint.config.js +65 -0
- package/index.js +97 -93
- package/lib/common.js +3 -1
- package/lib/commonExt.js +12 -9
- package/lib/helpers.js +49 -30
- package/lib/rp-axios-wrapper.js +4 -5
- package/lib/tasks.js +113 -100
- package/manual-test/getAPI.js +1 -1
- package/manual-test/retrieve.js +1 -1
- package/manual-test/testMerge.js +27 -13
- package/manual-test/testString.js +4 -3
- package/package.json +34 -27
- package/scripts.json +3 -4
- package/.eslintrc +0 -43
- package/dotFiles/eslintrc.json +0 -102
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/local",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Local setup configuration for normal and test opreration",
|
|
5
|
-
"main": "index.js",
|
|
5
|
+
"main": "./index.js",
|
|
6
|
+
"type": "module",
|
|
6
7
|
"scripts": {
|
|
7
|
-
"lint": "eslint --
|
|
8
|
+
"lint": "eslint . --no-error-on-unmatched-pattern",
|
|
8
9
|
"docs": "jsdoc2md index.js > README.md",
|
|
9
10
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
10
11
|
"test-ci": "echo \"Error: no test specified\" && exit 0",
|
|
11
12
|
"prepublishOnly": "npm run docs && npm run lint && npm run test-ci",
|
|
12
|
-
"commit-ready": "npm run docs && npm run lint && npm run test-ci"
|
|
13
|
-
"prepare": "husky"
|
|
13
|
+
"commit-ready": "npm run docs && npm run lint && npm run test-ci"
|
|
14
14
|
},
|
|
15
15
|
"husky": {
|
|
16
16
|
"hooks": {
|
|
@@ -29,34 +29,41 @@
|
|
|
29
29
|
"url": "https://bitbucket.org/mimiktech/local"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@
|
|
33
|
-
"@mimik/eslint-plugin-document-env": "^
|
|
34
|
-
"@mimik/git-hooks": "^
|
|
35
|
-
"
|
|
32
|
+
"@eslint/js": "9.31.0",
|
|
33
|
+
"@mimik/eslint-plugin-document-env": "^2.0.8",
|
|
34
|
+
"@mimik/git-hooks": "^2.0.0",
|
|
35
|
+
"@stylistic/eslint-plugin": "5.2.2",
|
|
36
|
+
"axios": "1.11.0",
|
|
36
37
|
"bluebird": "3.7.2",
|
|
37
|
-
"
|
|
38
|
+
"c8": "10.1.3",
|
|
39
|
+
"chai": "5.2.1",
|
|
38
40
|
"colors": "1.4.0",
|
|
39
|
-
"comment-json": "4.2.
|
|
40
|
-
"debug": "4.
|
|
41
|
-
"eslint": "
|
|
42
|
-
"eslint-
|
|
43
|
-
"
|
|
44
|
-
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
45
|
-
"eslint-plugin-react": "7.34.3",
|
|
46
|
-
"eslint-plugin-react-hooks": "4.6.2",
|
|
47
|
-
"husky": "9.0.11",
|
|
41
|
+
"comment-json": "4.2.5",
|
|
42
|
+
"debug": "4.4.1",
|
|
43
|
+
"eslint": "9.31.0",
|
|
44
|
+
"eslint-plugin-import": "2.32.0",
|
|
45
|
+
"husky": "9.1.7",
|
|
48
46
|
"ip": "2.0.1",
|
|
49
47
|
"js-base64": "3.7.7",
|
|
50
48
|
"js-yaml": "4.1.0",
|
|
51
|
-
"jsdoc-to-markdown": "
|
|
49
|
+
"jsdoc-to-markdown": "9.1.2",
|
|
52
50
|
"lodash": "4.17.21",
|
|
53
|
-
"
|
|
51
|
+
"lodash.clone": "",
|
|
52
|
+
"lodash.difference": "",
|
|
53
|
+
"lodash.find": "",
|
|
54
|
+
"lodash.findindex": "",
|
|
55
|
+
"lodash.isempty": "",
|
|
56
|
+
"lodash.isnumber": "",
|
|
57
|
+
"lodash.isobject": "",
|
|
58
|
+
"lodash.split": "",
|
|
59
|
+
"lodash.trim": "",
|
|
60
|
+
"lodash.union": "",
|
|
61
|
+
"mocha": "11.7.1",
|
|
54
62
|
"mochawesome": "7.1.3",
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"uuid": "10.0.0"
|
|
63
|
+
"rewire": "9.0.0",
|
|
64
|
+
"sinon": "21.0.0",
|
|
65
|
+
"supertest": "7.1.4",
|
|
66
|
+
"swagger-client": "3.35.6",
|
|
67
|
+
"uuid": "11.1.0"
|
|
61
68
|
}
|
|
62
69
|
}
|
package/scripts.json
CHANGED
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"scripts": {
|
|
3
|
-
"lint": "eslint --
|
|
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
6
|
"test": "mocha --reporter mochawesome --bail --check-leaks --exit test/",
|
|
7
|
-
"test-ci": "
|
|
7
|
+
"test-ci": "c8 --reporter=lcov --reporter=text npm test --exit",
|
|
8
8
|
"prestart": "node ./local/setup.js",
|
|
9
9
|
"start": "sh server-start.sh",
|
|
10
10
|
"pre-push": "npm run docs && npm run lint && npm run test",
|
|
11
|
-
"pre-commit": "npm run docs && npm run lint"
|
|
12
|
-
"prepare": "if [ \"$NODE_ENV\" != \"production\" ]\nthen\nhusky\nfi"
|
|
11
|
+
"pre-commit": "npm run docs && npm run lint"
|
|
13
12
|
},
|
|
14
13
|
"husky": {
|
|
15
14
|
"hooks": {
|
package/.eslintrc
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"plugins": [
|
|
3
|
-
"@mimik/document-env",
|
|
4
|
-
"@mimik/dependencies"
|
|
5
|
-
],
|
|
6
|
-
"env": {
|
|
7
|
-
"node": true
|
|
8
|
-
},
|
|
9
|
-
"parserOptions": {
|
|
10
|
-
"ecmaVersion": 2020
|
|
11
|
-
},
|
|
12
|
-
"extends": "airbnb",
|
|
13
|
-
"rules": {
|
|
14
|
-
"import/no-extraneous-dependencies": ["error", { "devDependencies": true }],
|
|
15
|
-
"import/no-unresolved": ["error", { "amd": true, "commonjs": true, "caseSensitiveStrict": true }],
|
|
16
|
-
"brace-style": [1, "stroustrup", { "allowSingleLine": true }],
|
|
17
|
-
"no-confusing-arrow": [0], // arrow isnt confusing
|
|
18
|
-
"max-len": [1, 180, { "ignoreComments": true }],
|
|
19
|
-
"linebreak-style": 0,
|
|
20
|
-
"quotes": [1, "single"],
|
|
21
|
-
"semi": [1, "always"],
|
|
22
|
-
"no-process-env": ["error"],
|
|
23
|
-
"@mimik/document-env/validate-document-env": 2,
|
|
24
|
-
"@mimik/dependencies/case-sensitive": 2,
|
|
25
|
-
"@mimik/dependencies/no-cycles": 2,
|
|
26
|
-
"@mimik/dependencies/require-json-ext": 2
|
|
27
|
-
},
|
|
28
|
-
"settings":{
|
|
29
|
-
"react": {
|
|
30
|
-
"version": "detect"
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
"globals": {
|
|
34
|
-
"module": true,
|
|
35
|
-
"require": true,
|
|
36
|
-
"const": false,
|
|
37
|
-
"it": false,
|
|
38
|
-
"describe": false,
|
|
39
|
-
"before": true,
|
|
40
|
-
"after": true,
|
|
41
|
-
"JSON": true
|
|
42
|
-
}
|
|
43
|
-
}
|
package/dotFiles/eslintrc.json
DELETED
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"env": {
|
|
3
|
-
"node": true
|
|
4
|
-
},
|
|
5
|
-
"plugins": [
|
|
6
|
-
"@mimik/document-env",
|
|
7
|
-
"@mimik/dependencies"
|
|
8
|
-
],
|
|
9
|
-
"extends": "airbnb",
|
|
10
|
-
"parserOptions": {
|
|
11
|
-
"ecmaVersion": 2020
|
|
12
|
-
},
|
|
13
|
-
"rules": {
|
|
14
|
-
"import/no-extraneous-dependencies": [
|
|
15
|
-
"error",
|
|
16
|
-
{
|
|
17
|
-
"devDependencies": true
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
"import/no-unresolved": [
|
|
21
|
-
"error",
|
|
22
|
-
{
|
|
23
|
-
"amd": true,
|
|
24
|
-
"commonjs": true,
|
|
25
|
-
"caseSensitiveStrict": true
|
|
26
|
-
}
|
|
27
|
-
],
|
|
28
|
-
"brace-style": [
|
|
29
|
-
1,
|
|
30
|
-
"stroustrup",
|
|
31
|
-
{
|
|
32
|
-
"allowSingleLine": true
|
|
33
|
-
}
|
|
34
|
-
],
|
|
35
|
-
"no-confusing-arrow": [
|
|
36
|
-
0
|
|
37
|
-
],
|
|
38
|
-
"max-len": [
|
|
39
|
-
1,
|
|
40
|
-
180,
|
|
41
|
-
{
|
|
42
|
-
"ignoreComments": true
|
|
43
|
-
}
|
|
44
|
-
],
|
|
45
|
-
"linebreak-style": 0,
|
|
46
|
-
"quotes": [
|
|
47
|
-
1,
|
|
48
|
-
"single"
|
|
49
|
-
],
|
|
50
|
-
"semi": [
|
|
51
|
-
1,
|
|
52
|
-
"always"
|
|
53
|
-
],
|
|
54
|
-
"no-process-env": [
|
|
55
|
-
"error"
|
|
56
|
-
],
|
|
57
|
-
"@mimik/document-env/validate-document-env": 2,
|
|
58
|
-
"@mimik/dependencies/case-sensitive": 2,
|
|
59
|
-
"@mimik/dependencies/no-cycles": 2,
|
|
60
|
-
"@mimik/dependencies/require-json-ext": 2
|
|
61
|
-
},
|
|
62
|
-
"ignorePatterns": [
|
|
63
|
-
"manual-test/**/*.js"
|
|
64
|
-
],
|
|
65
|
-
"overrides": [
|
|
66
|
-
{
|
|
67
|
-
"files": [
|
|
68
|
-
"src/configuration/config.js"
|
|
69
|
-
],
|
|
70
|
-
"rules": {
|
|
71
|
-
"no-process-env": "off"
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
"files": [
|
|
76
|
-
"test/**/*.js",
|
|
77
|
-
"tools/**/*.js"
|
|
78
|
-
],
|
|
79
|
-
"rules": {
|
|
80
|
-
"no-process-env": "off",
|
|
81
|
-
"import/no-extraneous-dependencies": "off",
|
|
82
|
-
"import/no-dynamic-require": "off",
|
|
83
|
-
"@mimik/document-env/validate-document-env": "off"
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
],
|
|
87
|
-
"settings": {
|
|
88
|
-
"react": {
|
|
89
|
-
"version": "detect"
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
"globals": {
|
|
93
|
-
"module": true,
|
|
94
|
-
"require": true,
|
|
95
|
-
"const": false,
|
|
96
|
-
"it": false,
|
|
97
|
-
"describe": false,
|
|
98
|
-
"before": true,
|
|
99
|
-
"after": true,
|
|
100
|
-
"JSON": true
|
|
101
|
-
}
|
|
102
|
-
}
|