File tree Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Expand file tree Collapse file tree 7 files changed +16
-14
lines changed Original file line number Diff line number Diff line change 12
12
"wpe-build" : " next build"
13
13
},
14
14
"dependencies" : {
15
- "@faustjs/core" : " ^0.8 .0" ,
16
- "@faustjs/next" : " ^0.8 .0" ,
15
+ "@faustjs/core" : " ^0.9 .0" ,
16
+ "@faustjs/next" : " ^0.9 .0" ,
17
17
"next" : " ^11.1.0" ,
18
18
"normalize.css" : " ^8.0.1" ,
19
19
"react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change 7
7
"@types/react" : " ^17.0.11" ,
8
8
"@types/react-dom" : " ^17.0.8" ,
9
9
"@types/react-router-dom" : " ^5.1.7" ,
10
- "@faustjs/core" : " ^0.8 .0" ,
11
- "@faustjs/react" : " ^0.8 .0" ,
10
+ "@faustjs/core" : " ^0.9 .0" ,
11
+ "@faustjs/react" : " ^0.9 .0" ,
12
12
"dotenv" : " ^10.0.0" ,
13
13
"express" : " ^4.17.1" ,
14
14
"normalize.css" : " ^8.0.1" ,
Original file line number Diff line number Diff line change 1
- require ( 'dotenv' ) . config ( ) ;
2
- const { headlessConfig } = require ( '@faustjs/core' ) ;
1
+ import dotenv from 'dotenv' ;
2
+ import { headlessConfig } from '@faustjs/core' ;
3
+
4
+ dotenv . config ( ) ;
3
5
4
6
/**
5
7
* @type {import("@faustjs/core").HeadlessConfig }
6
8
*/
7
- module . exports = headlessConfig ( {
9
+ export default headlessConfig ( {
8
10
wpUrl : process . env . REACT_APP_WORDPRESS_URL || '' ,
9
11
apiUrl : process . env . REACT_APP_API_URL ,
10
12
apiClientSecret : process . env . WP_HEADLESS_SECRET ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/core" ,
3
- "version" : " 0.8 .0" ,
3
+ "version" : " 0.9 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export interface RequestContext {
32
32
export function createQueryFetcher (
33
33
context ?: IncomingMessage ,
34
34
applyRequestContext ?: ClientConfig [ 'applyRequestContext' ] ,
35
- ) {
35
+ ) : QueryFetcher {
36
36
return async function ( query , variables ) : Promise < any > {
37
37
const url = getGqlUrl ( ) ;
38
38
const token = getAccessToken ( {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/next" ,
3
- "version" : " 0.8 .0" ,
3
+ "version" : " 0.9 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS with Next.js" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
81
81
"dependencies" : {
82
82
"@gqty/logger" : " ^1.0.2" ,
83
83
"@gqty/react" : " ^1.1.0" ,
84
- "@faustjs/core" : " ^0.8 .0" ,
85
- "@faustjs/react" : " ^0.8 .0" ,
84
+ "@faustjs/core" : " ^0.9 .0" ,
85
+ "@faustjs/react" : " ^0.9 .0" ,
86
86
"graphql" : " >=15.5" ,
87
87
"lodash" : " ^4.17.21"
88
88
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @faustjs/react" ,
3
- "version" : " 0.8 .0" ,
3
+ "version" : " 0.9 .0" ,
4
4
"description" : " This module helps you use WordPress as a Headless CMS with React" ,
5
5
"main" : " dist/cjs/index.js" ,
6
6
"module" : " dist/mjs/index.js" ,
76
76
},
77
77
"dependencies" : {
78
78
"@gqty/react" : " ^1.1.0" ,
79
- "@faustjs/core" : " ^0.8 .0" ,
79
+ "@faustjs/core" : " ^0.9 .0" ,
80
80
"gqty" : " ^1.0.3" ,
81
81
"graphql" : " >=15.5" ,
82
82
"lodash" : " ^4.17.21"
You can’t perform that action at this time.
0 commit comments