@akemona-org/strapi-connector-mongoose 3.15.0 → 3.15.2
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/lib/index.js +2 -2
- package/package.json +5 -4
package/lib/index.js
CHANGED
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
// Public node modules.
|
|
8
8
|
const path = require('path');
|
|
9
9
|
const fs = require('fs');
|
|
10
|
-
const {
|
|
10
|
+
const { ConnectionString } = require('mongodb-connection-string-url');
|
|
11
11
|
const _ = require('lodash');
|
|
12
12
|
const mongoose = require('mongoose');
|
|
13
13
|
require('mongoose-long')(mongoose);
|
|
@@ -64,7 +64,7 @@ module.exports = function (strapi) {
|
|
|
64
64
|
|
|
65
65
|
const { uri, host, port, username, password, database, srv } = connection.settings;
|
|
66
66
|
|
|
67
|
-
const uriOptions = uri ? Object.fromEntries(new
|
|
67
|
+
const uriOptions = uri ? Object.fromEntries(new ConnectionString(uri).searchParams) : {};
|
|
68
68
|
const { authenticationDatabase, ssl, debug } = _.defaults(
|
|
69
69
|
connection.options,
|
|
70
70
|
uriOptions,
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "3.15.
|
|
6
|
+
"version": "3.15.2",
|
|
7
7
|
"description": "Mongoose hook for the Strapi framework",
|
|
8
8
|
"homepage": "https://strapi.akemona.com",
|
|
9
9
|
"keywords": [
|
|
@@ -18,9 +18,10 @@
|
|
|
18
18
|
},
|
|
19
19
|
"main": "./lib",
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@akemona-org/strapi-utils": "3.15.
|
|
21
|
+
"@akemona-org/strapi-utils": "3.15.2",
|
|
22
22
|
"lodash": "4.17.21",
|
|
23
|
-
"
|
|
23
|
+
"mongodb-connection-string-url": "3.0.1",
|
|
24
|
+
"mongoose": "8.5.0",
|
|
24
25
|
"mongoose-float": "1.0.4",
|
|
25
26
|
"mongoose-long": "0.8.0",
|
|
26
27
|
"p-map": "4.0.0",
|
|
@@ -54,5 +55,5 @@
|
|
|
54
55
|
"scripts": {
|
|
55
56
|
"test": "echo \"no tests yet\""
|
|
56
57
|
},
|
|
57
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "0c7c8e5f9e88e61ddc086537cb425a7014b83539"
|
|
58
59
|
}
|