Skip to content

Commit 0c5b6bf

Browse files
committed
chore: update dependencies
1 parent ae55a91 commit 0c5b6bf

File tree

6 files changed

+2551
-2064
lines changed

6 files changed

+2551
-2064
lines changed

.flowconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,5 @@
4141

4242
[options]
4343
esproposal.class_instance_fields=enable
44+
esproposal.optional_chaining=enable
4445
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe

.prettierrc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"singleQuote": true,
3+
"arrowParens": "always",
4+
"tabWidth": 2,
5+
"useTabs": false,
6+
"printWidth": 100,
7+
"trailingComma": "es5"
8+
}

.vscode/settings.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"prettier.eslintIntegration": true,
32
"eslint.validate": [
43
"javascript",
54
],

mongooseConnection.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@ const opts = {
1010
reconnectTries: Number.MAX_VALUE,
1111
reconnectInterval: 1000,
1212
useNewUrlParser: true,
13+
useCreateIndex: true,
14+
useFindAndModify: false,
1315
};
1416

1517
mongoose.connect(mongoUri, opts);
1618

1719
export const { connection } = mongoose;
18-
connection.on('error', e => {
20+
connection.on('error', (e) => {
1921
if (e.message.code === 'ETIMEDOUT') {
2022
console.log(e);
2123
mongoose.connect(mongoUri, opts);

package.json

Lines changed: 29 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
"version": "0.0.1",
44
"description": "Examples of graphql-compose",
55
"engines": {
6-
"node": "8.10.0",
7-
"yarn": "1.7.0"
6+
"node": "10.x",
7+
"yarn": "1.x"
88
},
99
"files": [
1010
"lib"
@@ -27,6 +27,13 @@
2727
},
2828
"homepage": "https://github.com/nodkz/graphql-compose-examples",
2929
"dependencies": {
30+
"@babel/cli": "7.8.4",
31+
"@babel/core": "7.8.4",
32+
"@babel/node": "7.8.4",
33+
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
34+
"@babel/plugin-transform-flow-strip-types": "7.8.3",
35+
"@babel/preset-env": "7.8.4",
36+
"@babel/preset-flow": "7.8.3",
3037
"@babel/cli": "7.5.0",
3138
"@babel/core": "7.5.4",
3239
"@babel/node": "7.5.0",
@@ -35,35 +42,36 @@
3542
"@babel/preset-env": "7.5.4",
3643
"@babel/preset-flow": "7.0.0",
3744
"aws-sdk": "2.490.0",
45+
"aws-sdk": "2.614.0",
3846
"cors": "2.8.5",
39-
"elasticsearch": "16.3.0",
47+
"elasticsearch": "16.6.0",
4048
"express": "4.17.1",
41-
"express-graphql": "0.8.0",
42-
"graphql": "14.4.2",
43-
"graphql-compose": "7.2.0",
49+
"express-graphql": "0.9.0",
50+
"graphql": "14.6.0",
51+
"graphql-compose": "7.11.0",
4452
"graphql-compose-aws": "4.0.1",
4553
"graphql-compose-connection": "6.0.3",
46-
"graphql-compose-elasticsearch": "4.0.4",
47-
"graphql-compose-mongoose": "7.1.0",
54+
"graphql-compose-elasticsearch": "4.0.7",
55+
"graphql-compose-mongoose": "7.3.3",
4856
"graphql-compose-pagination": "6.0.3",
49-
"graphql-compose-relay": "5.0.2",
57+
"graphql-compose-relay": "5.0.3",
5058
"graphql-playground-middleware-express": "1.7.12",
51-
"mongoose": "5.6.4"
59+
"mongoose": "5.8.11"
5260
},
5361
"devDependencies": {
5462
"babel-core": "7.0.0-bridge.0",
55-
"babel-eslint": "10.0.2",
56-
"babel-jest": "24.8.0",
57-
"eslint": "6.0.1",
58-
"eslint-config-airbnb-base": "13.2.0",
59-
"eslint-config-prettier": "6.0.0",
60-
"eslint-plugin-import": "2.18.0",
61-
"eslint-plugin-prettier": "3.1.0",
63+
"babel-eslint": "10.0.3",
64+
"babel-jest": "25.1.0",
65+
"eslint": "6.8.0",
66+
"eslint-config-airbnb-base": "14.0.0",
67+
"eslint-config-prettier": "6.10.0",
68+
"eslint-plugin-import": "2.20.1",
69+
"eslint-plugin-prettier": "3.1.2",
6270
"flow-bin": "0.102.0",
63-
"jest": "24.8.0",
64-
"mongodb-memory-server": "5.1.5",
65-
"nodemon": "1.19.1",
66-
"prettier": "1.18.2",
71+
"jest": "25.1.0",
72+
"mongodb-memory-server": "6.2.4",
73+
"nodemon": "2.0.2",
74+
"prettier": "1.19.1",
6775
"request": "2.88.0"
6876
},
6977
"scripts": {

0 commit comments

Comments
 (0)