Skip to content

Commit 6812a9d

Browse files
committed
chore: update dependencies
1 parent 7021b40 commit 6812a9d

File tree

20 files changed

+1807
-1720
lines changed

20 files changed

+1807
-1720
lines changed

.flowconfig

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@
3333
.*/node_modules/travis.*
3434
.*/node_modules/uglify.*
3535
.*/node_modules/yargs.*
36-
.*/node_modules/express-graphql/dist/index.js.flow
37-
.*/node_modules/graphql/utilities/buildASTSchema.js.flow
36+
.*/node_modules/express-graphql/index.js.flow
37+
38+
# Redundant argument. This argument doesn't change any lint settings.
39+
# flowlint uninitialized-instance-property:off
40+
.*/node_modules/graphql/error/GraphQLError.js.flow
3841

3942
[include]
4043

package.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -32,35 +32,35 @@
3232
},
3333
"devDependencies": {
3434
"@babel/cli": "7.8.4",
35-
"@babel/core": "7.8.4",
36-
"@babel/node": "7.8.4",
35+
"@babel/core": "7.9.0",
36+
"@babel/node": "7.8.7",
3737
"@babel/plugin-proposal-class-properties": "7.8.3",
38-
"@babel/plugin-proposal-object-rest-spread": "7.8.3",
39-
"@babel/plugin-transform-flow-strip-types": "7.8.3",
40-
"@babel/plugin-transform-runtime": "7.8.3",
41-
"@babel/preset-env": "7.8.4",
42-
"@babel/preset-flow": "7.8.3",
38+
"@babel/plugin-proposal-object-rest-spread": "7.9.0",
39+
"@babel/plugin-transform-flow-strip-types": "7.9.0",
40+
"@babel/plugin-transform-runtime": "7.9.0",
41+
"@babel/preset-env": "7.9.0",
42+
"@babel/preset-flow": "7.9.0",
4343
"babel-core": "^7.0.0-bridge.0",
44-
"babel-eslint": "^10.0.3",
45-
"babel-jest": "25.1.0",
46-
"elasticsearch": "16.6.0",
44+
"babel-eslint": "10.1.0",
45+
"babel-jest": "25.2.6",
46+
"elasticsearch": "16.7.1",
4747
"eslint": "6.8.0",
48-
"eslint-config-airbnb-base": "^14.0.0",
49-
"eslint-config-prettier": "6.10.0",
50-
"eslint-plugin-flowtype": "4.6.0",
51-
"eslint-plugin-import": "2.20.1",
48+
"eslint-config-airbnb-base": "14.1.0",
49+
"eslint-config-prettier": "6.10.1",
50+
"eslint-plugin-flowtype": "4.7.0",
51+
"eslint-plugin-import": "2.20.2",
5252
"eslint-plugin-prettier": "3.1.2",
5353
"express": "^4.17.1",
5454
"express-graphql": "^0.9.0",
55-
"flow-bin": "0.118.0",
56-
"graphql": "14.6.0",
57-
"graphql-compose": "7.12.0",
58-
"jest": "25.1.0",
55+
"flow-bin": "0.122.0",
56+
"graphql": "15.0.0",
57+
"graphql-compose": "7.14.1",
58+
"jest": "25.2.7",
5959
"nodemon": "2.0.2",
6060
"npm-run-all": "^4.1.5",
61-
"prettier": "1.19.1",
61+
"prettier": "2.0.2",
6262
"rimraf": "3.0.2",
63-
"semantic-release": "^15.13.28"
63+
"semantic-release": "17.0.4"
6464
},
6565
"scripts": {
6666
"build": "npm run build-cjs && npm run build-mjs",

src/ElasticApiParser.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ export default class ElasticApiParser {
154154
static parseParamsDescription(doxItemAST: any): { [fieldName: string]: string } {
155155
const descriptions = {};
156156
if (Array.isArray(doxItemAST.tags)) {
157-
doxItemAST.tags.forEach(tag => {
157+
doxItemAST.tags.forEach((tag) => {
158158
if (!tag || tag.type !== 'param') return;
159159
if (tag.name === 'params') return;
160160

@@ -209,7 +209,7 @@ export default class ElasticApiParser {
209209
if (parts.length === 1) {
210210
return parts[0];
211211
} else {
212-
return parts.filter(o => o !== 'prototype');
212+
return parts.filter((o) => o !== 'prototype');
213213
}
214214
}
215215

@@ -225,7 +225,7 @@ export default class ElasticApiParser {
225225
throw Error('Incorrect responce from dox.parseComments');
226226
}
227227

228-
doxAST.forEach(item => {
228+
doxAST.forEach((item) => {
229229
if (!item.ctx || !item.ctx.string) {
230230
return;
231231
}
@@ -254,7 +254,7 @@ export default class ElasticApiParser {
254254

255255
generateFieldMap(): ObjectTypeComposerFieldConfigMapDefinition<any, any> {
256256
const result = {};
257-
Object.keys(this.parsedSource).forEach(methodName => {
257+
Object.keys(this.parsedSource).forEach((methodName) => {
258258
result[methodName] = this.generateFieldConfig(methodName);
259259
});
260260

@@ -437,7 +437,7 @@ export default class ElasticApiParser {
437437
}
438438

439439
if (params) {
440-
Object.keys(params).forEach(k => {
440+
Object.keys(params).forEach((k) => {
441441
const fieldConfig = this.paramToGraphQLArgConfig(params[k], k, descriptions[k]);
442442
if (fieldConfig) {
443443
result[k] = fieldConfig;
@@ -448,9 +448,9 @@ export default class ElasticApiParser {
448448
const urlList = urls || (url ? [url] : null);
449449

450450
if (Array.isArray(urlList)) {
451-
urlList.forEach(item => {
451+
urlList.forEach((item) => {
452452
if (item.req) {
453-
Object.keys(item.req).forEach(k => {
453+
Object.keys(item.req).forEach((k) => {
454454
const fieldConfig = this.paramToGraphQLArgConfig(item.req[k], k, descriptions[k]);
455455
if (fieldConfig) {
456456
result[k] = fieldConfig;
@@ -467,7 +467,7 @@ export default class ElasticApiParser {
467467
fields: ObjectTypeComposerFieldConfigMapDefinition<any, any>
468468
): ObjectTypeComposerFieldConfigMapDefinition<any, any> {
469469
const result = {};
470-
Object.keys(fields).forEach(k => {
470+
Object.keys(fields).forEach((k) => {
471471
const names = k.split('.');
472472
if (names.length === 1) {
473473
result[names[0]] = fields[k];

src/elasticDSL/Aggs/Aggs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function prepareAggsInResolve(
4141

4242
export function convertAggsBlocks(blockList: GqlAggBlock[]): ElasticAggsT {
4343
const result = {};
44-
blockList.forEach(block => {
44+
blockList.forEach((block) => {
4545
if (block.key && block.value) {
4646
result[block.key] = convertAggsRules(block.value);
4747
}
@@ -51,7 +51,7 @@ export function convertAggsBlocks(blockList: GqlAggBlock[]): ElasticAggsT {
5151

5252
export function convertAggsRules(rules: GqlAggRules): ElasticAggsRulesT {
5353
const result = {};
54-
Object.keys(rules).forEach(key => {
54+
Object.keys(rules).forEach((key) => {
5555
if (key === 'aggs' && rules.aggs) {
5656
result.aggs = convertAggsBlocks(rules.aggs);
5757
} else {

0 commit comments

Comments
 (0)