File tree 4 files changed +19
-20
lines changed
gatsby/src/bootstrap/load-plugins
4 files changed +19
-20
lines changed Original file line number Diff line number Diff line change 43
43
"eslint-plugin-import" : " ^2.24.2" ,
44
44
"eslint-plugin-jsx-a11y" : " ^6.4.1" ,
45
45
"eslint-plugin-prettier" : " ^4.0.0" ,
46
- "eslint-plugin-react" : " ^7.25 .1" ,
46
+ "eslint-plugin-react" : " ^7.26 .1" ,
47
47
"fs-extra" : " ^10.0.0" ,
48
48
"glob" : " ^7.1.7" ,
49
49
"husky" : " 3.1.0" ,
63
63
"npm-packlist" : " ^2.1.5" ,
64
64
"npm-run-all" : " 4.1.5" ,
65
65
"plop" : " ^1.9.1" ,
66
- "prettier" : " 2.3.2 " ,
66
+ "prettier" : " 2.4.1 " ,
67
67
"remark" : " ^13.0.0" ,
68
68
"remark-cli" : " ^9.0.0" ,
69
69
"remark-frontmatter" : " ^3.0.0" ,
Original file line number Diff line number Diff line change @@ -38,18 +38,17 @@ type WrapReturnInArray<MaybeFunction> = MaybeFunction extends (
38
38
? ( ...a : Parameters < MaybeFunction > ) => Array < ReturnType < MaybeFunction > >
39
39
: never
40
40
41
- export type CreateWorkerPoolType < ExposedFunctions > = WorkerPool &
42
- {
43
- [ FunctionName in keyof ExposedFunctions ] : EnsureFunctionReturnsAPromise <
44
- ExposedFunctions [ FunctionName ]
41
+ export type CreateWorkerPoolType < ExposedFunctions > = WorkerPool & {
42
+ [ FunctionName in keyof ExposedFunctions ] : EnsureFunctionReturnsAPromise <
43
+ ExposedFunctions [ FunctionName ]
44
+ >
45
+ } & {
46
+ all : {
47
+ [ FunctionName in keyof ExposedFunctions ] : WrapReturnInArray <
48
+ EnsureFunctionReturnsAPromise < ExposedFunctions [ FunctionName ] >
45
49
>
46
- } & {
47
- all : {
48
- [ FunctionName in keyof ExposedFunctions ] : WrapReturnInArray <
49
- EnsureFunctionReturnsAPromise < ExposedFunctions [ FunctionName ] >
50
- >
51
- }
52
50
}
51
+ }
53
52
54
53
const childWrapperPath = require . resolve ( `./child` )
55
54
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ import {
22
22
} from "./types"
23
23
import { IPluginRefObject , PluginRef } from "gatsby-plugin-utils/dist/types"
24
24
25
- const getAPI = (
26
- api : { [ exportType in ExportType ] : { [ api : string ] : boolean } }
27
- ) : ICurrentAPIs =>
25
+ const getAPI = ( api : {
26
+ [ exportType in ExportType ] : { [ api : string ] : boolean }
27
+ } ) : ICurrentAPIs =>
28
28
_ . keys ( api ) . reduce < Partial < ICurrentAPIs > > ( ( merged , key ) => {
29
29
merged [ key ] = _ . keys ( api [ key ] )
30
30
return merged
Original file line number Diff line number Diff line change @@ -10366,7 +10366,7 @@ eslint-plugin-react-hooks@^4.2.0:
10366
10366
resolved "https://registry.yarnpkg.com/eslint-plugin-react-hooks/-/eslint-plugin-react-hooks-4.2.0.tgz#8c229c268d468956334c943bb45fc860280f5556"
10367
10367
integrity sha512-623WEiZJqxR7VdxFCKLI6d6LLpwJkGPYKODnkH3D7WpOG5KM8yWueBd8TLsNAetEJNF5iJmolaAKO3F8yzyVBQ==
10368
10368
10369
- eslint-plugin-react@^7.25.1, eslint-plugin-react@^7. 26.1:
10369
+ eslint-plugin-react@^7.26.1:
10370
10370
version "7.26.1"
10371
10371
resolved "https://registry.yarnpkg.com/eslint-plugin-react/-/eslint-plugin-react-7.26.1.tgz#41bcfe3e39e6a5ac040971c1af94437c80daa40e"
10372
10372
integrity sha512-Lug0+NOFXeOE+ORZ5pbsh6mSKjBKXDXItUD2sQoT+5Yl0eoT82DqnXeTMfUare4QVCn9QwXbfzO/dBLjLXwVjQ==
@@ -20175,10 +20175,10 @@ prettier-linter-helpers@^1.0.0:
20175
20175
dependencies:
20176
20176
fast-diff "^1.1.2"
20177
20177
20178
- prettier@2.3.2 , prettier@^2.3.2:
20179
- version "2.3.2 "
20180
- resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.3.2 .tgz#ef280a05ec253712e486233db5c6f23441e7342d "
20181
- integrity sha512-lnJzDfJ66zkMy58OL5/NY5zp70S7Nz6KqcKkXYzn2tMVrNxvbqaBpg7H3qHaLxCJ5lNMsGuM8+ohS7cZrthdLQ ==
20178
+ prettier@2.4.1 , prettier@^2.3.2:
20179
+ version "2.4.1 "
20180
+ resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.4.1 .tgz#671e11c89c14a4cfc876ce564106c4a6726c9f5c "
20181
+ integrity sha512-9fbDAXSBcc6Bs1mZrDYb3XKzDLm4EXXL9sC1LqKP5rZkT6KRr/rf9amVUcODVXgguK/isJz0d0hP72WeaKWsvA ==
20182
20182
20183
20183
pretty-bytes@^3.0.0:
20184
20184
version "3.0.1"
You can’t perform that action at this time.
0 commit comments