Skip to content

Commit 10bd6fe

Browse files
Update deps (#3017)
1 parent 98feb57 commit 10bd6fe

File tree

7 files changed

+326
-299
lines changed

7 files changed

+326
-299
lines changed

.eslintrc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ rules:
143143
import/dynamic-import-chunkname: off
144144

145145
##############################################################################
146-
# ESLint builtin rules list based on `v7.22.x`
146+
# ESLint builtin rules list based on `v7.23.x`
147147
##############################################################################
148148

149149
# Possible Errors
@@ -502,7 +502,7 @@ overrides:
502502
- plugin:import/typescript
503503
rules:
504504
##########################################################################
505-
# `@typescript-eslint/eslint-plugin` rule list based on `v4.19.x`
505+
# `@typescript-eslint/eslint-plugin` rule list based on `v4.20.x`
506506
##########################################################################
507507

508508
# Supported Rules

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ include_warnings=true
3939
no_flowlib=true
4040

4141
[version]
42-
^0.147.0
42+
^0.148.0

package-lock.json

Lines changed: 302 additions & 283 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,22 +44,22 @@
4444
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
4545
},
4646
"devDependencies": {
47-
"@babel/core": "7.13.10",
48-
"@babel/eslint-parser": "7.13.10",
47+
"@babel/core": "7.13.14",
48+
"@babel/eslint-parser": "7.13.14",
4949
"@babel/plugin-transform-flow-strip-types": "7.13.0",
5050
"@babel/preset-env": "7.13.12",
51-
"@babel/register": "7.13.8",
52-
"@typescript-eslint/eslint-plugin": "4.19.0",
53-
"@typescript-eslint/parser": "4.19.0",
51+
"@babel/register": "7.13.14",
52+
"@typescript-eslint/eslint-plugin": "4.20.0",
53+
"@typescript-eslint/parser": "4.20.0",
5454
"chai": "4.3.4",
55-
"cspell": "5.3.9",
56-
"eslint": "7.22.0",
55+
"cspell": "5.3.10",
56+
"eslint": "7.23.0",
5757
"eslint-plugin-flowtype": "5.4.0",
5858
"eslint-plugin-import": "2.22.1",
5959
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
6060
"eslint-plugin-istanbul": "0.1.2",
6161
"eslint-plugin-node": "11.1.0",
62-
"flow-bin": "0.147.0",
62+
"flow-bin": "0.148.0",
6363
"mocha": "8.3.2",
6464
"nyc": "15.1.0",
6565
"prettier": "2.2.1",

src/jsutils/instanceOf.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
55
* See: https://webpack.js.org/guides/production/
66
*/
7-
export const instanceOf: (mixed, mixed) => boolean =
7+
export const instanceOf: (mixed, Constructor) => boolean =
88
process.env.NODE_ENV === 'production'
99
? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
10-
function instanceOf(value: mixed, constructor: mixed): boolean {
10+
function instanceOf(value: mixed, constructor: Constructor): boolean {
1111
return value instanceof constructor;
1212
}
13-
: function instanceOf(value: any, constructor: any): boolean {
13+
: function instanceOf(value: any, constructor: Constructor): boolean {
1414
if (value instanceof constructor) {
1515
return true;
1616
}
@@ -36,3 +36,8 @@ spurious results.`,
3636
}
3737
return false;
3838
};
39+
40+
type Constructor = {
41+
name: string,
42+
...
43+
};

src/jsutils/isAsyncIterable.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22
* Returns true if the provided object implements the AsyncIterator protocol via
33
* either implementing a `Symbol.asyncIterator` or `"@@asyncIterator"` method.
44
*/
5-
declare function isAsyncIterable(value: mixed): boolean %checks(value instanceof
6-
AsyncIterable);
5+
declare function isAsyncIterable(
6+
value: mixed,
7+
// $FlowFixMe[invalid-in-rhs]
8+
): boolean %checks(value instanceof AsyncIterable);
79

810
// eslint-disable-next-line no-redeclare
911
export function isAsyncIterable(maybeAsyncIterable) {

src/jsutils/isIteratableObject.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
*/
1717
declare function isIteratableObject(
1818
value: mixed,
19+
// $FlowFixMe[invalid-in-rhs]
1920
): boolean %checks(value instanceof Iterable);
2021

2122
// eslint-disable-next-line no-redeclare

0 commit comments

Comments
 (0)