graphql-static-binding
Advanced tools
Comparing version
@@ -40,3 +40,3 @@ "use strict"; | ||
function renderEnumType(type) { | ||
return renderDescription(type.description) + "export enum " + type.name + " {\n" + type.getValues().map(function (e) { return " " + e.name + " = '" + e.value + "'"; }).join(',\n') + "\n}"; | ||
return renderDescription(type.description) + "export type " + type.name + " = \n" + type.getValues().map(function (e) { return " '" + e.name + "'"; }).join(' |\n'); | ||
} | ||
@@ -43,0 +43,0 @@ function renderRootType(type) { |
{ | ||
"name": "graphql-static-binding", | ||
"version": "0.2.1", | ||
"version": "0.3.1", | ||
"description": "Generate static binding files for a GraphQL schema", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
0
-100%39704
-0.13%