@mimik/configuration 6.0.3 → 6.0.5
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 +2 -0
- package/index.js +3 -2
- package/package.json +1 -2
package/README.md
CHANGED
package/index.js
CHANGED
|
@@ -93,7 +93,6 @@ import logger from '@mimik/sumologic-winston-logger';
|
|
|
93
93
|
import process from 'process';
|
|
94
94
|
import querystring from 'querystring';
|
|
95
95
|
import split from 'lodash.split';
|
|
96
|
-
import trim from 'lodash.trim';
|
|
97
96
|
import { userDefinitions } from '@mimik/user-filters';
|
|
98
97
|
import { v4 as uuidv4 } from 'uuid';
|
|
99
98
|
|
|
@@ -107,6 +106,8 @@ const ISSUE_EXIT = 1;
|
|
|
107
106
|
* @module configuration
|
|
108
107
|
* @example
|
|
109
108
|
* import config from '@mimik/configuration';
|
|
109
|
+
* or
|
|
110
|
+
* import { setConfig, isProd } from '@mimik/configuration';
|
|
110
111
|
*/
|
|
111
112
|
|
|
112
113
|
let display = true;
|
|
@@ -459,7 +460,7 @@ const configuration = {
|
|
|
459
460
|
key: process.env.OAUTH_GENERIC_KEY || NO_GENERIC,
|
|
460
461
|
audience: process.env.OAUTH_GENERIC_AUDIENCE || NO_GENERIC,
|
|
461
462
|
},
|
|
462
|
-
apiKeys: process.env.API_KEYS ? split(
|
|
463
|
+
apiKeys: process.env.API_KEYS ? split(process.env.API_KEYS.trim(), /\s*,\s*/u) : [],
|
|
463
464
|
},
|
|
464
465
|
serverSettings: {
|
|
465
466
|
id: process.env.SERVER_ID,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/configuration",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "Common configuration for mimik services",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"type": "module",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"lodash.isstring": "4.0.1",
|
|
41
41
|
"lodash.isundefined": "3.0.1",
|
|
42
42
|
"lodash.split": "4.4.2",
|
|
43
|
-
"lodash.trim": "4.5.1",
|
|
44
43
|
"uuid": "11.1.0"
|
|
45
44
|
},
|
|
46
45
|
"devDependencies": {
|