Comparing version 0.0.8 to 0.1.0
# @gqlb/cli | ||
## 0.1.0 | ||
### Minor Changes | ||
- bedbf97: Added support for optional args | ||
## 0.0.8 | ||
@@ -4,0 +10,0 @@ |
@@ -104,3 +104,3 @@ "use strict"; | ||
${field.args.map((arg) => { | ||
const optional = arg.type instanceof graphql_1.GraphQLNonNull ? "" : "?"; | ||
const optional = (0, graphql_1.isRequiredArgument)(arg) ? "" : "?"; | ||
return `readonly ${arg.name}${optional}: ${argumentUnion(arg.type)} | ${variableUnion(arg.type)}`; | ||
@@ -107,0 +107,0 @@ })} |
{ | ||
"name": "@gqlb/cli", | ||
"version": "0.0.8", | ||
"version": "0.1.0", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -21,2 +21,3 @@ import fs from "fs/promises"; | ||
getIntrospectionQuery, | ||
isRequiredArgument, | ||
} from "graphql"; | ||
@@ -149,3 +150,3 @@ import request from "graphql-request"; | ||
${field.args.map((arg) => { | ||
const optional = arg.type instanceof GraphQLNonNull ? "" : "?"; | ||
const optional = isRequiredArgument(arg) ? "" : "?"; | ||
return `readonly ${arg.name}${optional}: ${argumentUnion( | ||
@@ -152,0 +153,0 @@ arg.type |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
AI-detected possible typosquat
Supply chain riskAI has identified this package as a potential typosquat of a more popular package. This suggests that the package may be intentionally mimicking another package's name, description, or other metadata.
Found 1 instance in 1 package
131345
2807
1