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 1212 "wpe-build" : " next build"
1313 },
1414 "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" ,
1717 "next" : " ^11.1.0" ,
1818 "normalize.css" : " ^8.0.1" ,
1919 "react" : " ^17.0.2" ,
Original file line number Diff line number Diff line change 77 "@types/react" : " ^17.0.11" ,
88 "@types/react-dom" : " ^17.0.8" ,
99 "@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" ,
1212 "dotenv" : " ^10.0.0" ,
1313 "express" : " ^4.17.1" ,
1414 "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 ( ) ;
35
46/**
57 * @type {import("@faustjs/core").HeadlessConfig }
68 */
7- module . exports = headlessConfig ( {
9+ export default headlessConfig ( {
810 wpUrl : process . env . REACT_APP_WORDPRESS_URL || '' ,
911 apiUrl : process . env . REACT_APP_API_URL ,
1012 apiClientSecret : process . env . WP_HEADLESS_SECRET ,
Original file line number Diff line number Diff line change 11{
22 "name" : " @faustjs/core" ,
3- "version" : " 0.8 .0" ,
3+ "version" : " 0.9 .0" ,
44 "description" : " This module helps you use WordPress as a Headless CMS" ,
55 "main" : " dist/cjs/index.js" ,
66 "module" : " dist/mjs/index.js" ,
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ export interface RequestContext {
3232export function createQueryFetcher (
3333 context ?: IncomingMessage ,
3434 applyRequestContext ?: ClientConfig [ 'applyRequestContext' ] ,
35- ) {
35+ ) : QueryFetcher {
3636 return async function ( query , variables ) : Promise < any > {
3737 const url = getGqlUrl ( ) ;
3838 const token = getAccessToken ( {
Original file line number Diff line number Diff line change 11{
22 "name" : " @faustjs/next" ,
3- "version" : " 0.8 .0" ,
3+ "version" : " 0.9 .0" ,
44 "description" : " This module helps you use WordPress as a Headless CMS with Next.js" ,
55 "main" : " dist/cjs/index.js" ,
66 "module" : " dist/mjs/index.js" ,
8181 "dependencies" : {
8282 "@gqty/logger" : " ^1.0.2" ,
8383 "@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" ,
8686 "graphql" : " >=15.5" ,
8787 "lodash" : " ^4.17.21"
8888 }
Original file line number Diff line number Diff line change 11{
22 "name" : " @faustjs/react" ,
3- "version" : " 0.8 .0" ,
3+ "version" : " 0.9 .0" ,
44 "description" : " This module helps you use WordPress as a Headless CMS with React" ,
55 "main" : " dist/cjs/index.js" ,
66 "module" : " dist/mjs/index.js" ,
7676 },
7777 "dependencies" : {
7878 "@gqty/react" : " ^1.1.0" ,
79- "@faustjs/core" : " ^0.8 .0" ,
79+ "@faustjs/core" : " ^0.9 .0" ,
8080 "gqty" : " ^1.0.3" ,
8181 "graphql" : " >=15.5" ,
8282 "lodash" : " ^4.17.21"
You can’t perform that action at this time.
0 commit comments