apollo-codegen
Advanced tools
Comparing version 0.17.0-alpha.9 to 0.17.0-alpha.10
@@ -13,3 +13,3 @@ "use strict"; | ||
function serializeAST(ast, space) { | ||
return JSON.stringify(ast, function (key, value) { | ||
return JSON.stringify(ast, function (_, value) { | ||
if (graphql_1.isType(value)) { | ||
@@ -34,2 +34,5 @@ return String(value); | ||
} | ||
else { | ||
throw new Error(`Unexpected GraphQL type: ${type}`); | ||
} | ||
} | ||
@@ -58,3 +61,8 @@ function serializeEnumType(type) { | ||
description, | ||
fields | ||
fields: fields.map(field => ({ | ||
name: field.name, | ||
type: String(field.type), | ||
description: field.description, | ||
defaultValue: field.defaultValue | ||
})) | ||
}; | ||
@@ -61,0 +69,0 @@ } |
{ | ||
"name": "apollo-codegen", | ||
"version": "0.17.0-alpha.9", | ||
"version": "0.17.0-alpha.10", | ||
"description": "Generate API code or type annotations based on a GraphQL schema and query documents", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
448770
7856