@travetto/model-mongo 8.0.0-alpha.30 → 8.0.0-alpha.31

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
@@ -160,11 +160,11 @@ export class MongoModelConfig {
160
160
  .filter((pair): pair is [string, string | number | boolean] => ['string', 'number', 'boolean'].includes(typeof pair[1]))
161
161
  .map(([k, v]) => [k, `${v}`])
162
162
  ).toString();
163
- let creds = '';
163
+ let credentials = '';
164
164
  if (this.username) {
165
- creds = `${[this.username, this.password].filter(part => !!part).join(':')}@`;
165
+ credentials = `${[this.username, this.password].filter(part => !!part).join(':')}@`;
166
166
  }
167
- const url = `mongodb${this.srvRecord ? '+srv' : ''}://${creds}${hosts}/${this.namespace}?${optionString}`;
167
+ const url = `mongodb${this.srvRecord ? '+srv' : ''}://${credentials}${hosts}/${this.namespace}?${optionString}`;
168
168
  return url;
169
169
  }
170
170
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model-mongo",
3
- "version": "8.0.0-alpha.30",
3
+ "version": "8.0.0-alpha.31",
4
4
  "type": "module",
5
5
  "description": "Mongo backing for the travetto model module.",
6
6
  "keywords": [
@@ -26,14 +26,14 @@
26
26
  "directory": "module/model-mongo"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^8.0.0-alpha.25",
30
- "@travetto/model": "^8.0.0-alpha.26",
31
- "@travetto/model-indexed": "^8.0.0-alpha.28",
32
- "@travetto/model-query": "^8.0.0-alpha.29",
29
+ "@travetto/config": "^8.0.0-alpha.26",
30
+ "@travetto/model": "^8.0.0-alpha.27",
31
+ "@travetto/model-indexed": "^8.0.0-alpha.29",
32
+ "@travetto/model-query": "^8.0.0-alpha.30",
33
33
  "mongodb": "^7.5.0"
34
34
  },
35
35
  "peerDependencies": {
36
- "@travetto/cli": "^8.0.0-alpha.31"
36
+ "@travetto/cli": "^8.0.0-alpha.32"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
package/src/config.ts CHANGED
@@ -133,11 +133,11 @@ export class MongoModelConfig {
133
133
  .filter((pair): pair is [string, string | number | boolean] => ['string', 'number', 'boolean'].includes(typeof pair[1]))
134
134
  .map(([k, v]) => [k, `${v}`])
135
135
  ).toString();
136
- let creds = '';
136
+ let credentials = '';
137
137
  if (this.username) {
138
- creds = `${[this.username, this.password].filter(part => !!part).join(':')}@`;
138
+ credentials = `${[this.username, this.password].filter(part => !!part).join(':')}@`;
139
139
  }
140
- const url = `mongodb${this.srvRecord ? '+srv' : ''}://${creds}${hosts}/${this.namespace}?${optionString}`;
140
+ const url = `mongodb${this.srvRecord ? '+srv' : ''}://${credentials}${hosts}/${this.namespace}?${optionString}`;
141
141
  return url;
142
142
  }
143
143
  }
@@ -2,6 +2,8 @@ import type { ServiceDescriptor } from '@travetto/cli';
2
2
 
3
3
  const version = process.env.MONGO_VERSION || '8.3';
4
4
 
5
+ /* cspell:words orbstack pthread rseq glibc TUNABLES */
6
+
5
7
  export const service: ServiceDescriptor = {
6
8
  name: 'mongodb',
7
9
  version,