@travetto/model-mongo 3.4.0-rc.4 → 3.4.0-rc.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/README.md +2 -2
- package/package.json +5 -5
- package/src/config.ts +1 -1
package/README.md
CHANGED
|
@@ -112,7 +112,7 @@ export class MongoModelConfig {
|
|
|
112
112
|
*/
|
|
113
113
|
async postConstruct(): Promise<void> {
|
|
114
114
|
const resources = new FileResourceProvider({ includeCommon: true });
|
|
115
|
-
const resolve = (file: string): Promise<string> => resources.
|
|
115
|
+
const resolve = (file: string): Promise<string> => resources.resolve(file).then(path => path, () => file);
|
|
116
116
|
|
|
117
117
|
if (this.connectionString) {
|
|
118
118
|
const details = new URL(this.connectionString);
|
|
@@ -175,4 +175,4 @@ export class MongoModelConfig {
|
|
|
175
175
|
}
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support") resolution paths.The SSL file options in `clientOptions` will automatically be resolved to files when given a path. This path can be a [FileResourceProvider](https://github.com/travetto/travetto/tree/main/module/base/src/resource.ts#
|
|
178
|
+
Additionally, you can see that the class is registered with the [@Config](https://github.com/travetto/travetto/tree/main/module/config/src/decorator.ts#L13) annotation, and so these values can be overridden using the standard [Configuration](https://github.com/travetto/travetto/tree/main/module/config#readme "Configuration support") resolution paths.The SSL file options in `clientOptions` will automatically be resolved to files when given a path. This path can be a [FileResourceProvider](https://github.com/travetto/travetto/tree/main/module/base/src/resource.ts#L21) path or just a standard file path.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@travetto/model-mongo",
|
|
3
|
-
"version": "3.4.0-rc.
|
|
3
|
+
"version": "3.4.0-rc.6",
|
|
4
4
|
"description": "Mongo backing for the travetto model module.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"mongo",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"directory": "module/model-mongo"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@travetto/config": "^3.4.0-rc.
|
|
29
|
-
"@travetto/model": "^3.4.0-rc.
|
|
30
|
-
"@travetto/model-query": "^3.4.0-rc.
|
|
28
|
+
"@travetto/config": "^3.4.0-rc.5",
|
|
29
|
+
"@travetto/model": "^3.4.0-rc.6",
|
|
30
|
+
"@travetto/model-query": "^3.4.0-rc.6",
|
|
31
31
|
"mongodb": "^6.2.0"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@travetto/command": "^3.4.0-rc.
|
|
34
|
+
"@travetto/command": "^3.4.0-rc.5"
|
|
35
35
|
},
|
|
36
36
|
"peerDependenciesMeta": {
|
|
37
37
|
"@travetto/command": {
|
package/src/config.ts
CHANGED
|
@@ -64,7 +64,7 @@ export class MongoModelConfig {
|
|
|
64
64
|
*/
|
|
65
65
|
async postConstruct(): Promise<void> {
|
|
66
66
|
const resources = new FileResourceProvider({ includeCommon: true });
|
|
67
|
-
const resolve = (file: string): Promise<string> => resources.
|
|
67
|
+
const resolve = (file: string): Promise<string> => resources.resolve(file).then(path => path, () => file);
|
|
68
68
|
|
|
69
69
|
if (this.connectionString) {
|
|
70
70
|
const details = new URL(this.connectionString);
|