@mimik/local 7.0.8 → 7.1.1
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 +332 -223
- package/dotFiles/eslint.config.js +10 -12
- package/eslint.config.js +10 -6
- package/index.js +358 -273
- package/lib/common.js +149 -142
- package/lib/helpers.js +12 -11
- package/lib/rp-axios-wrapper.js +4 -4
- package/lib/tasks.js +36 -57
- package/manual-test/getAPI.js +2 -2
- package/manual-test/testMerge.js +3 -3
- package/manual-test/testString.js +2 -3
- package/package.json +8 -8
- package/scripts.json +2 -1
- package/configuration/config.js +0 -57
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/local",
|
|
3
|
-
"version": "7.
|
|
3
|
+
"version": "7.1.1",
|
|
4
4
|
"description": "Local setup configuration for normal and test opreration",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -29,22 +29,23 @@
|
|
|
29
29
|
"url": "https://bitbucket.org/mimiktech/local"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@eslint/js": "9.
|
|
32
|
+
"@eslint/js": "9.34.0",
|
|
33
33
|
"@mimik/eslint-plugin-document-env": "^2.0.8",
|
|
34
34
|
"@mimik/git-hooks": "^2.0.0",
|
|
35
|
-
"@
|
|
35
|
+
"@mimik/request-helper": "^2.0.2",
|
|
36
|
+
"@stylistic/eslint-plugin": "5.2.3",
|
|
36
37
|
"axios": "1.11.0",
|
|
37
38
|
"bluebird": "3.7.2",
|
|
38
39
|
"c8": "10.1.3",
|
|
39
|
-
"chai": "
|
|
40
|
+
"chai": "6.0.1",
|
|
40
41
|
"colors": "1.4.0",
|
|
41
42
|
"comment-json": "4.2.5",
|
|
42
43
|
"debug": "4.4.1",
|
|
43
|
-
"eslint": "9.
|
|
44
|
+
"eslint": "9.34.0",
|
|
44
45
|
"eslint-plugin-import": "2.32.0",
|
|
45
46
|
"husky": "9.1.7",
|
|
46
47
|
"ip": "2.0.1",
|
|
47
|
-
"js-base64": "3.7.
|
|
48
|
+
"js-base64": "3.7.8",
|
|
48
49
|
"js-yaml": "4.1.0",
|
|
49
50
|
"jsdoc-to-markdown": "9.1.2",
|
|
50
51
|
"lodash": "4.17.21",
|
|
@@ -56,11 +57,10 @@
|
|
|
56
57
|
"lodash.isnumber": "3.0.3",
|
|
57
58
|
"lodash.isobject": "3.0.2",
|
|
58
59
|
"lodash.split": "4.4.2",
|
|
59
|
-
"lodash.trim": "4.5.1",
|
|
60
60
|
"lodash.union": "4.6.0",
|
|
61
61
|
"mocha": "11.7.1",
|
|
62
62
|
"mochawesome": "7.1.3",
|
|
63
|
-
"rewire": "9.0.
|
|
63
|
+
"rewire": "9.0.1",
|
|
64
64
|
"sinon": "21.0.0",
|
|
65
65
|
"supertest": "7.1.4",
|
|
66
66
|
"swagger-client": "3.35.6",
|
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 --
|
|
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",
|
package/configuration/config.js
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
const DEFAULT_MIT_PORT = 8050;
|
|
2
|
-
const DEFAULT_MID_PORT = 8015;
|
|
3
|
-
const DEFAULT_MST_PORT = 8025;
|
|
4
|
-
|
|
5
|
-
const adminExternalIdBase = 'admin_default_local';
|
|
6
|
-
|
|
7
|
-
export const config = {
|
|
8
|
-
APIProvider: 'https://api.swaggerhub.com/apis',
|
|
9
|
-
DEFAULT_MID: {
|
|
10
|
-
basePath: '/mID/v1',
|
|
11
|
-
protocol: 'http:',
|
|
12
|
-
domainName: 'localhost',
|
|
13
|
-
port: DEFAULT_MID_PORT,
|
|
14
|
-
implicit: {
|
|
15
|
-
key: 'a-secret-key',
|
|
16
|
-
audience: 'https://mimik',
|
|
17
|
-
},
|
|
18
|
-
admin: {
|
|
19
|
-
externalId: `${adminExternalIdBase}_mID`,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
DEFAULT_MIT: {
|
|
23
|
-
basePath: '/mIT/v1',
|
|
24
|
-
protocol: 'http:',
|
|
25
|
-
domainName: 'localhost',
|
|
26
|
-
port: DEFAULT_MIT_PORT,
|
|
27
|
-
},
|
|
28
|
-
DEFAULT_MST: {
|
|
29
|
-
basePath: '/mST/v1',
|
|
30
|
-
protocol: 'http:',
|
|
31
|
-
domainName: 'localhost',
|
|
32
|
-
port: DEFAULT_MST_PORT,
|
|
33
|
-
admin: {
|
|
34
|
-
clientId: '12345',
|
|
35
|
-
clientSecret: 'timeForSecret',
|
|
36
|
-
},
|
|
37
|
-
},
|
|
38
|
-
DEFAULT_SUMO: {
|
|
39
|
-
default: {
|
|
40
|
-
url: 'https://default-sumo-endPoint',
|
|
41
|
-
code: '--- default code ---',
|
|
42
|
-
},
|
|
43
|
-
},
|
|
44
|
-
adminExternalIdBase,
|
|
45
|
-
customerConfigFile: '../customerConfig.json',
|
|
46
|
-
defaultDirectory: './api',
|
|
47
|
-
exampleStartFile: './local/start-example.json',
|
|
48
|
-
mIDConfigFile: '../mIDConfig.json',
|
|
49
|
-
mITConfigFile: '../mITConfig.json',
|
|
50
|
-
mSTConfigFile: '../mSTConfig.json',
|
|
51
|
-
shellFile: './server-start.sh',
|
|
52
|
-
startFile: './local/start.json',
|
|
53
|
-
sumoFile: '../sumo.json',
|
|
54
|
-
swaggerExt: 'swagger.json',
|
|
55
|
-
testJsonFile: './server-test.json',
|
|
56
|
-
testStartFile: './local/testStart.json',
|
|
57
|
-
};
|