@travetto/model-mongo 3.4.0-rc.4 → 3.4.0-rc.5

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 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.describe(file).then(({ path }) => path, () => file);
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#L46) path or just a standard file path.
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.4",
3
+ "version": "3.4.0-rc.5",
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.3",
29
- "@travetto/model": "^3.4.0-rc.4",
30
- "@travetto/model-query": "^3.4.0-rc.4",
28
+ "@travetto/config": "^3.4.0-rc.4",
29
+ "@travetto/model": "^3.4.0-rc.5",
30
+ "@travetto/model-query": "^3.4.0-rc.5",
31
31
  "mongodb": "^6.2.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^3.4.0-rc.3"
34
+ "@travetto/command": "^3.4.0-rc.4"
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.describe(file).then(({ path }) => path, () => file);
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);