@mongosh/logging 1.1.8 → 1.1.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mongosh/logging",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "MongoDB Shell Logging Utilities Package",
5
5
  "homepage": "https://github.com/mongodb-js/mongosh",
6
6
  "license": "Apache-2.0",
@@ -17,10 +17,10 @@
17
17
  "node": ">=12.4.0"
18
18
  },
19
19
  "dependencies": {
20
- "@mongodb-js/devtools-connect": "^1.0.0",
21
- "@mongosh/errors": "1.1.8",
22
- "@mongosh/history": "1.1.8",
23
- "@mongosh/types": "1.1.8",
20
+ "@mongodb-js/devtools-connect": "^1.1.1",
21
+ "@mongosh/errors": "1.1.9",
22
+ "@mongosh/history": "1.1.9",
23
+ "@mongosh/types": "1.1.9",
24
24
  "mongodb-log-writer": "^1.1.3",
25
25
  "mongodb-redact": "^0.2.2"
26
26
  },
@@ -35,5 +35,5 @@
35
35
  "mongosh": {
36
36
  "unitTestsOnly": true
37
37
  },
38
- "gitHead": "4e85ce5da2c82852b3de012b584fbf615f0477d9"
38
+ "gitHead": "1a200600554f6aa59ec10aaedb915f67771eb7fd"
39
39
  }
@@ -102,8 +102,17 @@ describe('setupLoggerAndTelemetry', () => {
102
102
  bus.emit('devtools-connect:connect-heartbeat-succeeded', { connectionId: 'localhost' });
103
103
  bus.emit('devtools-connect:connect-fail-early');
104
104
  bus.emit('devtools-connect:connect-attempt-finished');
105
- bus.emit('devtools-connect:resolve-srv-error', { from: 'mongodb+srv://foo:bar@hello.world/', error: new Error('failed'), duringLoad: false });
106
- bus.emit('devtools-connect:resolve-srv-succeeded', { from: 'mongodb+srv://foo:bar@hello.world/', to: 'mongodb://foo:bar@db.hello.world/' });
105
+ bus.emit('devtools-connect:resolve-srv-error', {
106
+ from: 'mongodb+srv://foo:bar@hello.world/',
107
+ error: new Error('failed'),
108
+ duringLoad: false,
109
+ resolutionDetails: []
110
+ });
111
+ bus.emit('devtools-connect:resolve-srv-succeeded', {
112
+ from: 'mongodb+srv://foo:bar@hello.world/',
113
+ to: 'mongodb://foo:bar@db.hello.world/',
114
+ resolutionDetails: []
115
+ });
107
116
  bus.emit('devtools-connect:missing-optional-dependency', { name: 'kerberos', error: new Error('no kerberos') });
108
117
  bus.emit('mongosh-sp:reset-connection-options');
109
118
 
@@ -201,9 +210,9 @@ describe('setupLoggerAndTelemetry', () => {
201
210
  expect(logOutput[i++].msg).to.equal('Aborting connection attempt as irrecoverable');
202
211
  expect(logOutput[i++].msg).to.equal('Connection attempt finished');
203
212
  expect(logOutput[i].msg).to.equal('Resolving SRV record failed');
204
- expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', error: 'failed', duringLoad: false });
213
+ expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', error: 'failed', duringLoad: false, resolutionDetails: [] });
205
214
  expect(logOutput[i].msg).to.equal('Resolving SRV record succeeded');
206
- expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', to: 'mongodb://<credentials>@db.hello.world/' });
215
+ expect(logOutput[i++].attr).to.deep.equal({ from: 'mongodb+srv://<credentials>@hello.world/', to: 'mongodb://<credentials>@db.hello.world/', resolutionDetails: [] });
207
216
  expect(logOutput[i].msg).to.equal('Missing optional dependency');
208
217
  expect(logOutput[i++].attr).to.deep.equal({ name: 'kerberos', error: 'no kerberos' });
209
218
  expect(logOutput[i++].msg).to.equal('Reconnect because of changed connection options');