Skip to content

Commit ab9d5e6

Browse files
committed
chore: update dependencies
Related #120
1 parent 3afdae3 commit ab9d5e6

File tree

6 files changed

+447
-362
lines changed

6 files changed

+447
-362
lines changed

package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -25,40 +25,40 @@
2525
},
2626
"homepage": "https://github.com/nodkz/mongodb-memory-server",
2727
"devDependencies": {
28-
"@babel/cli": "^7.1.2",
29-
"@babel/core": "^7.1.2",
30-
"@babel/node": "^7.0.0",
31-
"@babel/plugin-proposal-class-properties": "^7.1.0",
32-
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
33-
"@babel/plugin-proposal-optional-chaining": "^7.0.0",
34-
"@babel/plugin-transform-flow-strip-types": "^7.0.0",
35-
"@babel/preset-env": "^7.1.0",
28+
"@babel/cli": "^7.2.0",
29+
"@babel/core": "^7.2.2",
30+
"@babel/node": "^7.2.2",
31+
"@babel/plugin-proposal-class-properties": "^7.2.1",
32+
"@babel/plugin-proposal-object-rest-spread": "^7.2.0",
33+
"@babel/plugin-proposal-optional-chaining": "^7.2.0",
34+
"@babel/plugin-transform-flow-strip-types": "^7.2.0",
35+
"@babel/preset-env": "^7.2.0",
3636
"@babel/preset-flow": "^7.0.0",
3737
"@types/getos": "^3.0.0",
38-
"@types/node": "^10.12.2",
38+
"@types/node": "^10.12.17",
3939
"babel-core": "^7.0.0-bridge.0",
4040
"babel-eslint": "^10.0.1",
4141
"babel-jest": "^23.6.0",
4242
"cross-env": "^5.2.0",
4343
"cz-conventional-changelog": "^2.1.0",
44-
"eslint": "^5.8.0",
44+
"eslint": "^5.10.0",
4545
"eslint-config-airbnb-base": "^13.1.0",
46-
"eslint-config-prettier": "^3.1.0",
46+
"eslint-config-prettier": "^3.3.0",
4747
"eslint-plugin-flowtype": "^3.2.0",
4848
"eslint-plugin-import": "^2.14.0",
4949
"eslint-plugin-prettier": "^3.0.0",
50-
"flow-bin": "^0.85.0",
50+
"flow-bin": "^0.89.0",
5151
"jest": "^23.6.0",
52-
"mongodb": "^3.1.6",
53-
"npm-run-all": "^4.1.3",
54-
"prettier": "^1.14.3",
52+
"mongodb": "^3.1.10",
53+
"npm-run-all": "^4.1.5",
54+
"prettier": "^1.15.3",
5555
"rimraf": "^2.6.2",
56-
"semantic-release": "^15.10.7",
57-
"tslint": "^5.11.0",
58-
"typescript": "^3.1.6"
56+
"semantic-release": "^15.13.1",
57+
"tslint": "^5.12.0",
58+
"typescript": "^3.2.2"
5959
},
6060
"dependencies": {
61-
"@babel/runtime": "^7.1.2",
61+
"@babel/runtime": "^7.2.0",
6262
"debug": "^4.1.0",
6363
"decompress": "^4.2.0",
6464
"find-cache-dir": "^2.0.0",

src/__tests__/replset-test.js

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -53,16 +53,12 @@ describe('multi-member replica set', () => {
5353
replSet = (null: any);
5454
});
5555

56-
it(
57-
'should enter running state',
58-
async () => {
59-
const opts: any = { replSet: { count: 3 } };
60-
replSet = new MongoMemoryReplSet(opts);
61-
await replSet.waitUntilRunning();
62-
expect(replSet.servers.length).toEqual(3);
63-
const uri = await replSet.getUri();
64-
expect(uri.split(',').length).toEqual(3);
65-
},
66-
40000
67-
);
56+
it('should enter running state', async () => {
57+
const opts: any = { replSet: { count: 3 } };
58+
replSet = new MongoMemoryReplSet(opts);
59+
await replSet.waitUntilRunning();
60+
expect(replSet.servers.length).toEqual(3);
61+
const uri = await replSet.getUri();
62+
expect(uri.split(',').length).toEqual(3);
63+
}, 40000);
6864
});

src/util/MongoBinary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ export default class MongoBinary {
5151

5252
let debug;
5353
if (opts.debug) {
54-
if (opts.debug.call && typeof opts.debug === 'function' && opts.debug.apply) {
54+
if (typeof opts.debug === 'function' && opts.debug.apply) {
5555
debug = opts.debug;
5656
} else {
5757
debug = console.log.bind(null);

src/util/MongoBinaryDownload.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ export default class MongoBinaryDownload {
5858
};
5959

6060
if (debug) {
61-
if (debug.call && typeof debug === 'function' && debug.apply) {
61+
if (typeof debug === 'function' && debug.apply) {
6262
this.debug = debug;
6363
} else {
6464
this.debug = console.log.bind(null);

src/util/MongoInstance.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,7 @@ export default class MongodbInstance {
5454
}
5555

5656
if (this.opts.instance && this.opts.instance.debug) {
57-
if (
58-
this.opts.instance.debug.call &&
59-
typeof this.opts.instance.debug === 'function' &&
60-
this.opts.instance.debug.apply
61-
) {
57+
if (typeof this.opts.instance.debug === 'function' && this.opts.instance.debug.apply) {
6258
this.debug = this.opts.instance.debug;
6359
} else {
6460
this.debug = console.log.bind(null);

0 commit comments

Comments
 (0)