monastery 3.5.5 → 3.5.6
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/changelog.md +2 -0
- package/docs/readme.md +2 -1
- package/lib/manager.js +6 -2
- package/package.json +1 -1
package/changelog.md
CHANGED
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [3.5.6](https://github.com/boycce/monastery/compare/3.5.5...3.5.6) (2025-06-15)
|
|
6
|
+
|
|
5
7
|
### [3.5.5](https://github.com/boycce/monastery/compare/3.5.4...3.5.5) (2025-06-14)
|
|
6
8
|
|
|
7
9
|
### [3.5.4](https://github.com/boycce/monastery/compare/3.5.3...3.5.4) (2025-06-12)
|
package/docs/readme.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|

|
|
2
2
|
|
|
3
|
-
[](https://www.npmjs.com/package/monastery)
|
|
3
|
+
[](https://www.npmjs.com/package/monastery)
|
|
4
|
+
<!--[](https://app.travis-ci.com/github/boycce/monastery)-->
|
|
4
5
|
|
|
5
6
|
> v3.0 has been released 🎉 refer to [breaking changes](#v3-breaking-changes) below when upgrading from v2.x.
|
|
6
7
|
|
package/lib/manager.js
CHANGED
|
@@ -66,11 +66,15 @@ function Manager(uri, opts, parent) {
|
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
// Create a new MongoDB Client
|
|
69
|
-
if (
|
|
69
|
+
if (!that.uri) {
|
|
70
|
+
throw new Error('No monastery connection URI provided.')
|
|
71
|
+
} else if (typeof that.uri == 'string' || Array.isArray(that.uri)) {
|
|
70
72
|
that.uri = that.connectionString(that.uri, opts.databaseName)
|
|
71
73
|
that.client = new MongoClient(that.uri, mongoOpts)
|
|
72
|
-
} else {
|
|
74
|
+
} else if (util.isObject(that.uri)) {
|
|
73
75
|
that.client = that.uri
|
|
76
|
+
} else {
|
|
77
|
+
throw new Error('Invalid monastery connection URI provided.')
|
|
74
78
|
}
|
|
75
79
|
|
|
76
80
|
// Listen to MongoDB events
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "monastery",
|
|
3
3
|
"description": "⛪ A simple, straightforward MongoDB ODM",
|
|
4
4
|
"author": "Ricky Boyce",
|
|
5
|
-
"version": "3.5.
|
|
5
|
+
"version": "3.5.6",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": "github:boycce/monastery",
|
|
8
8
|
"homepage": "https://boycce.github.io/monastery/",
|