@mimik/mongooser 2.0.3 → 2.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.
- package/index.js +2 -2
- package/package.json +10 -9
package/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const mongoose = require('mongoose');
|
|
2
2
|
const Promise = require('bluebird');
|
|
3
|
-
const
|
|
3
|
+
const replace = require('lodash.replace');
|
|
4
4
|
|
|
5
5
|
const { getCorrelationId } = require('@mimik/request-helper');
|
|
6
6
|
const logger = require('@mimik/sumologic-winston-logger');
|
|
@@ -85,7 +85,7 @@ module.exports = (config) => {
|
|
|
85
85
|
if (isProd(config.nodeEnvironment) && mongoSettings.password) {
|
|
86
86
|
const mongoSettingsClone = { ...mongoSettings };
|
|
87
87
|
|
|
88
|
-
mongoSettingsClone.url =
|
|
88
|
+
mongoSettingsClone.url = replace(mongoSettingsClone.url, mongoSettings.password, MASK);
|
|
89
89
|
logger.info('creating a database connection', { type, settings: mongoSettingsClone }, correlationId);
|
|
90
90
|
}
|
|
91
91
|
else logger.info('creating a database connection', { type, settings: mongoSettings }, correlationId);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/mongooser",
|
|
3
|
-
"version": "2.0
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "Helper for setting up mongodb using mongoose for mimik microservices",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"test": "echo \"Error: no test specified\" && exit 0",
|
|
13
13
|
"test-ci": "echo \"Error: no test specified\" && exit 0",
|
|
14
14
|
"prepublishOnly": "npm run docs && npm run lint && npm run test-ci",
|
|
15
|
-
"commit-ready": "npm run docs && npm run lint && npm run test-ci"
|
|
15
|
+
"commit-ready": "npm run docs && npm run lint && npm run test-ci",
|
|
16
|
+
"prepare": "husky"
|
|
16
17
|
},
|
|
17
18
|
"husky": {
|
|
18
19
|
"hooks": {
|
|
@@ -32,11 +33,11 @@
|
|
|
32
33
|
},
|
|
33
34
|
"dependencies": {
|
|
34
35
|
"@mimik/lib-filters": "^1.5.4",
|
|
35
|
-
"@mimik/request-helper": "^1.7.
|
|
36
|
+
"@mimik/request-helper": "^1.7.11",
|
|
36
37
|
"@mimik/sumologic-winston-logger": "^1.6.21",
|
|
37
38
|
"bluebird": "3.7.2",
|
|
38
|
-
"lodash": "4.
|
|
39
|
-
"mongoose": "
|
|
39
|
+
"lodash.replace": "4.1.4",
|
|
40
|
+
"mongoose": "8.5.1"
|
|
40
41
|
},
|
|
41
42
|
"devDependencies": {
|
|
42
43
|
"@mimik/eslint-plugin-dependencies": "^2.4.6",
|
|
@@ -44,10 +45,10 @@
|
|
|
44
45
|
"eslint": "8.57.0",
|
|
45
46
|
"eslint-config-airbnb": "19.0.4",
|
|
46
47
|
"eslint-plugin-import": "2.29.1",
|
|
47
|
-
"eslint-plugin-jsx-a11y": "6.
|
|
48
|
-
"eslint-plugin-react": "7.
|
|
48
|
+
"eslint-plugin-jsx-a11y": "6.9.0",
|
|
49
|
+
"eslint-plugin-react": "7.35.0",
|
|
49
50
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
50
|
-
"husky": "9.
|
|
51
|
-
"jsdoc-to-markdown": "8.0.
|
|
51
|
+
"husky": "9.1.2",
|
|
52
|
+
"jsdoc-to-markdown": "8.0.3"
|
|
52
53
|
}
|
|
53
54
|
}
|