@@ -22,8 +22,8 @@ const jolt = () => {
22
22
const token = Config . getTokenOptions ( 'token' ) ;
23
23
const headers : Record < string , string > = token
24
24
? {
25
- Authorization : `Bearer ${ token } ` ,
26
- }
25
+ Authorization : `Bearer ${ token } ` ,
26
+ }
27
27
: { } ;
28
28
return Chain ( 'https://api.staging.project.graphqleditor.com/graphql' , {
29
29
headers,
@@ -34,8 +34,8 @@ const joltSubscription = () => {
34
34
const token = Config . getTokenOptions ( 'token' ) ;
35
35
const headers : Record < string , string > = token
36
36
? {
37
- Authorization : `Bearer ${ token } ` ,
38
- }
37
+ Authorization : `Bearer ${ token } ` ,
38
+ }
39
39
: { } ;
40
40
return Subscription ( 'https://api.staging.project.graphqleditor.com/graphql' , {
41
41
headers,
@@ -184,14 +184,9 @@ export class Editor {
184
184
? ( await fetch ( libraryURL . getUrl ! ) ) . text ( )
185
185
: new Promise < string > ( ( resolve ) => resolve ( '' ) ) ,
186
186
] ) ;
187
- const sdlMerge = mergeSDLs ( graphqlFile , libraryFile ) ;
188
- if ( sdlMerge . __typename === 'error' )
189
- throw new Error (
190
- sdlMerge . errors
191
- . map ( ( e ) => `Conflict on: ${ e . conflictingNode } .${ e . conflictingField } ` )
192
- . join ( '\n' ) ,
193
- ) ;
194
- return sdlMerge . sdl ;
187
+ const sdlMerge = mergeSDLs ( graphqlFile , libraryFile )
188
+ if ( sdlMerge . __typename === 'error' ) throw new Error ( sdlMerge . errors . map ( e => `Conflict on: ${ e . conflictingNode } .${ e . conflictingField } ` ) . join ( "\n" ) )
189
+ return sdlMerge . sdl
195
190
} ;
196
191
197
192
public static getSchema = async ( resolve : {
0 commit comments