Skip to content

Commit

Permalink
Update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Apr 3, 2021
1 parent 98feb57 commit 8c7f9cf
Show file tree
Hide file tree
Showing 7 changed files with 326 additions and 299 deletions.
4 changes: 2 additions & 2 deletions .eslintrc.yml
Expand Up @@ -143,7 +143,7 @@ rules:
import/dynamic-import-chunkname: off

##############################################################################
# ESLint builtin rules list based on `v7.22.x`
# ESLint builtin rules list based on `v7.23.x`
##############################################################################

# Possible Errors
Expand Down Expand Up @@ -502,7 +502,7 @@ overrides:
- plugin:import/typescript
rules:
##########################################################################
# `@typescript-eslint/eslint-plugin` rule list based on `v4.19.x`
# `@typescript-eslint/eslint-plugin` rule list based on `v4.20.x`
##########################################################################

# Supported Rules
Expand Down
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -39,4 +39,4 @@ include_warnings=true
no_flowlib=true

[version]
^0.147.0
^0.148.0
585 changes: 302 additions & 283 deletions package-lock.json

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions package.json
Expand Up @@ -44,22 +44,22 @@
"gitpublish:deno": "bash ./resources/gitpublish.sh deno denoDist"
},
"devDependencies": {
"@babel/core": "7.13.10",
"@babel/eslint-parser": "7.13.10",
"@babel/core": "7.13.14",
"@babel/eslint-parser": "7.13.14",
"@babel/plugin-transform-flow-strip-types": "7.13.0",
"@babel/preset-env": "7.13.12",
"@babel/register": "7.13.8",
"@typescript-eslint/eslint-plugin": "4.19.0",
"@typescript-eslint/parser": "4.19.0",
"@babel/register": "7.13.14",
"@typescript-eslint/eslint-plugin": "4.20.0",
"@typescript-eslint/parser": "4.20.0",
"chai": "4.3.4",
"cspell": "5.3.9",
"eslint": "7.22.0",
"cspell": "5.3.10",
"eslint": "7.23.0",
"eslint-plugin-flowtype": "5.4.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-internal-rules": "file:./resources/eslint-internal-rules",
"eslint-plugin-istanbul": "0.1.2",
"eslint-plugin-node": "11.1.0",
"flow-bin": "0.147.0",
"flow-bin": "0.148.0",
"mocha": "8.3.2",
"nyc": "15.1.0",
"prettier": "2.2.1",
Expand Down
11 changes: 8 additions & 3 deletions src/jsutils/instanceOf.js
Expand Up @@ -4,13 +4,13 @@
* See: https://expressjs.com/en/advanced/best-practice-performance.html#set-node_env-to-production
* See: https://webpack.js.org/guides/production/
*/
export const instanceOf: (mixed, mixed) => boolean =
export const instanceOf: (mixed, Constructor) => boolean =
process.env.NODE_ENV === 'production'
? // istanbul ignore next (See: 'https://github.com/graphql/graphql-js/issues/2317')
function instanceOf(value: mixed, constructor: mixed): boolean {
function instanceOf(value: mixed, constructor: Constructor): boolean {
return value instanceof constructor;
}
: function instanceOf(value: any, constructor: any): boolean {
: function instanceOf(value: any, constructor: Constructor): boolean {
if (value instanceof constructor) {
return true;
}
Expand All @@ -36,3 +36,8 @@ spurious results.`,
}
return false;
};

type Constructor = {
name: string,
...
};
6 changes: 4 additions & 2 deletions src/jsutils/isAsyncIterable.js
Expand Up @@ -2,8 +2,10 @@
* Returns true if the provided object implements the AsyncIterator protocol via
* either implementing a `Symbol.asyncIterator` or `"@@asyncIterator"` method.
*/
declare function isAsyncIterable(value: mixed): boolean %checks(value instanceof
AsyncIterable);
declare function isAsyncIterable(
value: mixed,
// $FlowFixMe[invalid-in-rhs]
): boolean %checks(value instanceof AsyncIterable);

// eslint-disable-next-line no-redeclare
export function isAsyncIterable(maybeAsyncIterable) {
Expand Down
1 change: 1 addition & 0 deletions src/jsutils/isIteratableObject.js
Expand Up @@ -16,6 +16,7 @@
*/
declare function isIteratableObject(
value: mixed,
// $FlowFixMe[invalid-in-rhs]
): boolean %checks(value instanceof Iterable);

// eslint-disable-next-line no-redeclare
Expand Down

0 comments on commit 8c7f9cf

Please sign in to comment.