@mimik/mongooser 2.0.2 → 2.0.3
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 +4 -1
- package/package.json +10 -11
package/index.js
CHANGED
|
@@ -171,7 +171,10 @@ module.exports = (config) => {
|
|
|
171
171
|
* @category sync
|
|
172
172
|
* @return {boolean} `True` if replica is set, `False` if not.
|
|
173
173
|
*/
|
|
174
|
-
const replicat = () =>
|
|
174
|
+
const replicat = () => {
|
|
175
|
+
const isReplicaSet = !!mongoose.connection.client.s.options.replicaSet;
|
|
176
|
+
return isReplicaSet;
|
|
177
|
+
};
|
|
175
178
|
|
|
176
179
|
return {
|
|
177
180
|
initializeSync,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mimik/mongooser",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.3",
|
|
4
4
|
"description": "Helper for setting up mongodb using mongoose for mimik microservices",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"engines": {
|
|
@@ -12,8 +12,7 @@
|
|
|
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"
|
|
16
|
-
"prepare": "husky install"
|
|
15
|
+
"commit-ready": "npm run docs && npm run lint && npm run test-ci"
|
|
17
16
|
},
|
|
18
17
|
"husky": {
|
|
19
18
|
"hooks": {
|
|
@@ -32,9 +31,9 @@
|
|
|
32
31
|
"url": "https://bitbucket.org/mimiktech/mongooser"
|
|
33
32
|
},
|
|
34
33
|
"dependencies": {
|
|
35
|
-
"@mimik/lib-filters": "^1.4
|
|
34
|
+
"@mimik/lib-filters": "^1.5.4",
|
|
36
35
|
"@mimik/request-helper": "^1.7.10",
|
|
37
|
-
"@mimik/sumologic-winston-logger": "^1.6.
|
|
36
|
+
"@mimik/sumologic-winston-logger": "^1.6.21",
|
|
38
37
|
"bluebird": "3.7.2",
|
|
39
38
|
"lodash": "4.17.21",
|
|
40
39
|
"mongoose": "7.6.6"
|
|
@@ -42,13 +41,13 @@
|
|
|
42
41
|
"devDependencies": {
|
|
43
42
|
"@mimik/eslint-plugin-dependencies": "^2.4.6",
|
|
44
43
|
"@mimik/eslint-plugin-document-env": "^1.0.6",
|
|
45
|
-
"eslint": "8.
|
|
44
|
+
"eslint": "8.57.0",
|
|
46
45
|
"eslint-config-airbnb": "19.0.4",
|
|
47
|
-
"eslint-plugin-import": "2.29.
|
|
46
|
+
"eslint-plugin-import": "2.29.1",
|
|
48
47
|
"eslint-plugin-jsx-a11y": "6.8.0",
|
|
49
|
-
"eslint-plugin-react": "7.
|
|
50
|
-
"eslint-plugin-react-hooks": "4.6.
|
|
51
|
-
"husky": "
|
|
52
|
-
"jsdoc-to-markdown": "8.0.
|
|
48
|
+
"eslint-plugin-react": "7.34.1",
|
|
49
|
+
"eslint-plugin-react-hooks": "4.6.2",
|
|
50
|
+
"husky": "9.0.11",
|
|
51
|
+
"jsdoc-to-markdown": "8.0.1"
|
|
53
52
|
}
|
|
54
53
|
}
|