File tree 3 files changed +7
-6
lines changed
plugins/gatsby-source-react-error-codes
3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 1
1
declare module 'hex2rgba' {
2
- declare module . exports : ( hex : string , alpha ? : number ) = > string ;
2
+ declare module . exports : ( hex : string , alpha ? : number ) = > string ;
3
3
}
Original file line number Diff line number Diff line change 1
1
const request = require ( 'request-promise' ) ;
2
2
3
- const errorCodesUrl = 'http://raw.githubusercontent.com/facebook/react/master/scripts/error-codes/codes.json' ;
3
+ const errorCodesUrl =
4
+ 'http://raw.githubusercontent.com/facebook/react/master/scripts/error-codes/codes.json' ;
4
5
5
- exports . sourceNodes = async ( { boundActionCreators } ) => {
6
- const { createNode } = boundActionCreators ;
6
+ exports . sourceNodes = async ( { boundActionCreators} ) => {
7
+ const { createNode} = boundActionCreators ;
7
8
8
9
const jsonString = await request ( errorCodesUrl ) ;
9
10
@@ -16,4 +17,4 @@ exports.sourceNodes = async ({ boundActionCreators }) => {
16
17
contentDigest : jsonString ,
17
18
} ,
18
19
} ) ;
19
- } ;
20
+ } ;
Original file line number Diff line number Diff line change 5
5
* LICENSE file in the root directory of this source tree.
6
6
*
7
7
* @emails react-core
8
- */
8
+ */
9
9
10
10
'use strict' ;
11
11
You can’t perform that action at this time.
0 commit comments