@mongosh/logging 2.0.0 → 2.0.1

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": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "description": "MongoDB Shell Logging Utilities Package",
5
5
  "homepage": "https://github.com/mongodb-js/mongosh",
6
6
  "license": "Apache-2.0",
@@ -18,9 +18,9 @@
18
18
  },
19
19
  "dependencies": {
20
20
  "@mongodb-js/devtools-connect": "^2.4.1",
21
- "@mongosh/errors": "2.0.0",
22
- "@mongosh/history": "2.0.0",
23
- "@mongosh/types": "2.0.0",
21
+ "@mongosh/errors": "2.0.1",
22
+ "@mongosh/history": "2.0.1",
23
+ "@mongosh/types": "2.0.1",
24
24
  "mongodb-log-writer": "^1.4.0",
25
25
  "mongodb-redact": "^0.2.2"
26
26
  },
@@ -49,5 +49,5 @@
49
49
  "mongosh": {
50
50
  "unitTestsOnly": true
51
51
  },
52
- "gitHead": "60053aa2f37dc6c3e4fe059e806565ec51ece9e8"
52
+ "gitHead": "225d4603f0d43d500a8847beaa980e906e9a35be"
53
53
  }
@@ -219,8 +219,12 @@ describe('analytics helpers', function () {
219
219
 
220
220
  expect(events).to.have.lengthOf(4);
221
221
  expect(
222
- events.filter((e) => e[0] === 'track').map((e) => e[1].event)
223
- ).to.deep.eq(['hi', 'hi', 'hi']);
222
+ events
223
+ .filter((e) => e[0] === 'track')
224
+ .map((e) => e[1].event)
225
+ .join(',')
226
+ // can't be fully sure which instance 'won' the lock because fs operations are inherently subject to race conditions
227
+ ).to.match(/^(hi,hi,hi|bye,bye,bye)$/);
224
228
  });
225
229
  });
226
230
  });