@alpaca-headless/alpaca-headless-editor-preview
Advanced tools
Comparing version 1.0.309 to 1.0.310
@@ -17,9 +17,3 @@ export type ExecuteGraphQLParams = { | ||
status: number; | ||
error: string | undefined; | ||
errors?: undefined; | ||
data?: undefined; | ||
} | { | ||
status: number; | ||
errors: any; | ||
error?: undefined; | ||
data?: undefined; | ||
@@ -30,4 +24,3 @@ } | { | ||
errors: any; | ||
error?: undefined; | ||
}>; | ||
export declare function getGraphQLSchema(id: string): Promise<any>; |
@@ -21,5 +21,4 @@ import { apiGet, apiPostObject } from "./api"; | ||
if (response.status !== 200) { | ||
return { status: response.status, error: response.error }; | ||
return { status: response.status, errors: getErrors(response) }; | ||
} | ||
//console.log(`GraphQL response:`, response); | ||
if ((_a = response.data) === null || _a === void 0 ? void 0 : _a.errors) { | ||
@@ -26,0 +25,0 @@ return { |
{ | ||
"name": "@alpaca-headless/alpaca-headless-editor-preview", | ||
"version": "1.0.309", | ||
"version": "1.0.310", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "description": "Alpaca Headless", |
@@ -63,7 +63,5 @@ import { apiGet, apiPostObject } from "./api"; | ||
if (response.status !== 200) { | ||
return { status: response.status, error: response.error }; | ||
return { status: response.status, errors: getErrors(response) }; | ||
} | ||
//console.log(`GraphQL response:`, response); | ||
if (response.data?.errors) { | ||
@@ -70,0 +68,0 @@ return { |
152220
3866