File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11{
22 "name" : " typescript-node" ,
3- "version" : " 3.1.8 " ,
3+ "version" : " 3.1.9 " ,
44 "description" : " " ,
55 "private" : true ,
66 "main" : " index.js" ,
Original file line number Diff line number Diff line change @@ -468,7 +468,7 @@ export interface GraphQLResponse {
468468}
469469export class GraphQLError extends Error {
470470 constructor(public response: GraphQLResponse) {
471- super(' ');
471+ super(response.errors?.[0]?.message || 'GraphQL Response Error ');
472472 console.error(response);
473473 }
474474 toString() {
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ export interface GraphQLResponse {
7373}
7474export class GraphQLError extends Error {
7575 constructor ( public response : GraphQLResponse ) {
76- super ( ' ') ;
76+ super ( response . errors ?. [ 0 ] ?. message || 'GraphQL Response Error ') ;
7777 console . error ( response ) ;
7878 }
7979 toString ( ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-zeus-core" ,
3- "version" : " 7.1.9 " ,
3+ "version" : " 7.1.10 " ,
44 "private" : false ,
55 "main" : " ./lib/index.js" ,
66 "author" : " GraphQL Editor, Artur Czemiel" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-zeus-jsonschema" ,
3- "version" : " 7.1.9 " ,
3+ "version" : " 7.1.10 " ,
44 "private" : false ,
55 "main" : " ./lib/index.js" ,
66 "author" : " GraphQL Editor, Artur Czemiel" ,
Original file line number Diff line number Diff line change 11{
22 "name" : " graphql-zeus" ,
3- "version" : " 7.1.9 " ,
3+ "version" : " 7.1.10 " ,
44 "private" : false ,
55 "scripts" : {
66 "start" : " ttsc --watch" ,
3131 "config-maker" : " ^0.0.6" ,
3232 "cross-fetch" : " ^3.0.4" ,
3333 "graphql-js-tree" : " ^3.0.4" ,
34- "graphql-zeus-core" : " ^7.1.9 " ,
35- "graphql-zeus-jsonschema" : " ^7.1.9 " ,
34+ "graphql-zeus-core" : " ^7.1.10 " ,
35+ "graphql-zeus-jsonschema" : " ^7.1.10 " ,
3636 "prompts" : " ^2.4.2" ,
3737 "yargs" : " ^16.1.1"
3838 }
You can’t perform that action at this time.
0 commit comments