Skip to content

Commit fc8faea

Browse files
committed
chore: update dependencies
1 parent 9536412 commit fc8faea

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+1363
-1309
lines changed

.flowconfig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@
3636
.*/node_modules/uglify.*
3737
.*/node_modules/yargs.*
3838

39-
# Ignore broken Missing type annotation for V. V is a type parameter declared in function [1] and was implicitly instantiated at call of keyValMap [2].
40-
.*/node_modules/graphql/utilities/buildASTSchema.js.flow
39+
# Redundant argument. This argument doesn't change any lint settings.
40+
# flowlint uninitialized-instance-property:off
41+
.*/node_modules/graphql/error/GraphQLError.js.flow
4142

4243
[include]
4344

package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -40,40 +40,40 @@
4040
},
4141
"devDependencies": {
4242
"@babel/cli": "7.8.4",
43-
"@babel/core": "7.8.4",
43+
"@babel/core": "7.9.0",
4444
"@babel/plugin-proposal-class-properties": "7.8.3",
45-
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
46-
"@babel/plugin-transform-flow-strip-types": "7.8.3",
47-
"@babel/plugin-transform-runtime": "7.8.3",
48-
"@babel/preset-env": "7.8.4",
49-
"@babel/preset-flow": "7.8.3",
45+
"@babel/plugin-proposal-object-rest-spread": "7.9.0",
46+
"@babel/plugin-transform-flow-strip-types": "7.9.0",
47+
"@babel/plugin-transform-runtime": "7.9.0",
48+
"@babel/preset-env": "7.9.0",
49+
"@babel/preset-flow": "7.9.0",
5050
"@types/graphql": "^14.5.0",
51-
"@types/mongoose": "5.7.1",
51+
"@types/mongoose": "5.7.5",
5252
"babel-core": "^7.0.0-bridge.0",
53-
"babel-eslint": "^10.0.3",
54-
"babel-jest": "25.1.0",
53+
"babel-eslint": "10.1.0",
54+
"babel-jest": "25.2.6",
5555
"eslint": "6.8.0",
56-
"eslint-config-airbnb-base": "^14.0.0",
57-
"eslint-config-prettier": "6.10.0",
58-
"eslint-plugin-flowtype": "4.6.0",
59-
"eslint-plugin-import": "2.20.1",
56+
"eslint-config-airbnb-base": "14.1.0",
57+
"eslint-config-prettier": "6.10.1",
58+
"eslint-plugin-flowtype": "4.7.0",
59+
"eslint-plugin-import": "2.20.2",
6060
"eslint-plugin-prettier": "3.1.2",
61-
"flow-bin": "0.118.0",
62-
"graphql": "14.6.0",
63-
"graphql-compose": "7.12.0",
61+
"flow-bin": "0.122.0",
62+
"graphql": "15.0.0",
63+
"graphql-compose": "7.14.1",
6464
"graphql-compose-connection": "^6.0.3",
6565
"graphql-compose-pagination": "^6.0.3",
66-
"jest": "25.1.0",
67-
"mongodb-memory-server": "6.2.4",
68-
"mongoose": "5.9.1",
69-
"prettier": "^1.19.1",
66+
"jest": "25.2.7",
67+
"mongodb-memory-server": "6.5.2",
68+
"mongoose": "5.9.7",
69+
"prettier": "2.0.2",
7070
"request": "2.88.2",
7171
"rimraf": "3.0.2",
72-
"semantic-release": "16.0.2",
73-
"tslint": "6.0.0",
72+
"semantic-release": "17.0.4",
73+
"tslint": "6.1.1",
7474
"tslint-config-prettier": "^1.18.0",
75-
"tslint-plugin-prettier": "2.1.0",
76-
"typescript": "3.7.5"
75+
"tslint-plugin-prettier": "2.3.0",
76+
"typescript": "3.8.3"
7777
},
7878
"scripts": {
7979
"build": "npm run build-lib && npm run build-mjs && npm run build-es && npm run build-node8 && npm run build-ts",

src/__mocks__/mongooseCommon.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ mongoose.connect = (async () => {
1919
// originalConnect.bind(mongoose)(mongoUri, { useMongoClient: true }); // mongoose 4
2020
originalConnect.bind(mongoose)(mongoUri, { useNewUrlParser: true, useUnifiedTopology: true }); // mongoose 5
2121

22-
mongoose.connection.on('error', e => {
22+
mongoose.connection.on('error', (e) => {
2323
if (e.message.code === 'ETIMEDOUT') {
2424
console.error(e);
2525
} else {

src/__tests__/fieldConverter-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ describe('fieldConverter', () => {
2929
});
3030

3131
it('should skip double undescored fields', () => {
32-
const hiddenFields = fieldNames.filter(name => name.startsWith('__'));
32+
const hiddenFields = fieldNames.filter((name) => name.startsWith('__'));
3333
expect(hiddenFields).toHaveLength(0);
3434
});
3535

src/__tests__/github_issues/128-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ describe('issue #128 - OR/AND filter args not working with some other filter arg
9797
},
9898
});
9999

100-
expect(res1.map(res => ({ pets: [...res.pets], friends: [...res.friends] }))).toEqual([
100+
expect(res1.map((res) => ({ pets: [...res.pets], friends: [...res.friends] }))).toEqual([
101101
{
102102
pets: ['Pet 2'],
103103
friends: ['Friend 2'],

src/__tests__/github_issues/136-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,14 @@ describe('issue #136 - Mongoose virtuals', () => {
3434
const Comment = mongoose.model('Comment', CommentSchema);
3535
const CommentTC = composeWithMongoose(Comment);
3636

37-
CommentTC.wrapResolverAs('createManyFiltered', 'createMany', updateManyFiltered => {
37+
CommentTC.wrapResolverAs('createManyFiltered', 'createMany', (updateManyFiltered) => {
3838
const recordsTC = CommentTC.getResolver('createMany').getArgITC('records');
3939
const clonedRecordTC = recordsTC.clone('createManyFilteredInput');
4040
clonedRecordTC.removeField('links').addFields({ hi: 'String' });
4141
updateManyFiltered.extendArg('records', { type: clonedRecordTC.getTypePlural() });
4242

4343
return updateManyFiltered
44-
.wrapResolve(next => async rp => {
44+
.wrapResolve((next) => async (rp) => {
4545
console.log(rp.args); // eslint-disable-line
4646
return next(rp);
4747
})

src/__tests__/github_issues/78-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ describe('issue #78 - Mongoose and Discriminators', () => {
4141
const EventDescriminatorType = new graphql.GraphQLUnionType({
4242
name: 'EventDescriminator',
4343
types: [EventTC.getType(), ClickedLinkEventTC.getType()],
44-
resolveType: value => {
44+
resolveType: (value) => {
4545
if (value.kind === 'ClickedLinkEvent') {
4646
return ClickedLinkEventTC.getType();
4747
}

src/__tests__/github_issues/92-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ schemaComposer.Query.addFields({
1616
});
1717

1818
describe('issue #92 - How to verify the fields?', () => {
19-
UserTC.wrapResolverResolve('createOne', next => rp => {
19+
UserTC.wrapResolverResolve('createOne', (next) => (rp) => {
2020
if (rp.args.record.age < 21) throw new Error('You are too young');
2121
if (rp.args.record.age > 60) throw new Error('You are too old');
2222
return next(rp);

src/__tests__/integration-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ describe('integration tests', () => {
132132
UserTC.addFields({
133133
rawData: {
134134
type: 'JSON',
135-
resolve: source => source.toJSON(),
135+
resolve: (source) => source.toJSON(),
136136
projection: { '*': true },
137137
},
138138
});

src/__tests__/typedefs/composeWithMongoose.spec.ts

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -39,15 +39,13 @@ PostTC.addFields({
3939
},
4040
});
4141

42-
PostTC.getResolver('findMany').wrapResolve<any, FindManyArgs<IPost>>(
43-
next => rp => {
44-
if (rp.source && rp.args) {
45-
rp.args.limit = 50;
46-
// fix this to display only Post fields.
47-
// Avoid Document fields
48-
rp.args.filter.title = 'New Title';
49-
// rp.args.filter.title = 5;
50-
// rp.args.limit = 'limit';
51-
}
52-
},
53-
);
42+
PostTC.getResolver('findMany').wrapResolve<any, FindManyArgs<IPost>>((next) => (rp) => {
43+
if (rp.source && rp.args) {
44+
rp.args.limit = 50;
45+
// fix this to display only Post fields.
46+
// Avoid Document fields
47+
rp.args.filter.title = 'New Title';
48+
// rp.args.filter.title = 5;
49+
// rp.args.limit = 'limit';
50+
}
51+
});

0 commit comments

Comments
 (0)