@travetto/model-mongo 3.0.0-rc.6 → 3.0.0-rc.8

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/config.ts +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "3.0.0-rc.6",
3
+ "version": "3.0.0-rc.8",
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.0.0-rc.6",
29
- "@travetto/model": "^3.0.0-rc.6",
30
- "@travetto/model-query": "^3.0.0-rc.6",
28
+ "@travetto/config": "^3.0.0-rc.8",
29
+ "@travetto/model": "^3.0.0-rc.8",
30
+ "@travetto/model-query": "^3.0.0-rc.8",
31
31
  "mongodb": "^4.13.0"
32
32
  },
33
33
  "peerDependencies": {
34
- "@travetto/command": "^3.0.0-rc.4"
34
+ "@travetto/command": "^3.0.0-rc.6"
35
35
  },
36
36
  "peerDependenciesMeta": {
37
37
  "@travetto/command": {
package/src/config.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import * as mongo from 'mongodb';
2
2
 
3
- import { CommonFileResourceProvider, TimeSpan } from '@travetto/base';
3
+ import { FileResourceProvider, TimeSpan } from '@travetto/base';
4
4
  import { Config } from '@travetto/config';
5
5
  import { Field } from '@travetto/schema';
6
6
 
@@ -59,7 +59,7 @@ export class MongoModelConfig {
59
59
  * Load all the ssl certs as needed
60
60
  */
61
61
  async postConstruct(): Promise<void> {
62
- const resources = new CommonFileResourceProvider();
62
+ const resources = new FileResourceProvider({ includeCommon: true });
63
63
  const resolve = (file: string): Promise<string> => resources.describe(file).then(({ path }) => path, () => file);
64
64
 
65
65
  const opts = this.options;