graphql-codegen-typescript
Advanced tools
Comparing version 0.19.0-alpha.0d1c696f to 0.19.0-alpha.10ac8723
@@ -29,2 +29,3 @@ "use strict"; | ||
var autoBind = require("auto-bind"); | ||
var graphql_1 = require("graphql"); | ||
var typescript_variables_to_object_1 = require("./typescript-variables-to-object"); | ||
@@ -65,3 +66,3 @@ var TsVisitor = /** @class */ (function (_super) { | ||
var originalFieldNode = parent[key]; | ||
var addOptionalSign = !this.config.avoidOptionals && originalFieldNode.type.kind !== 'NonNullType'; | ||
var addOptionalSign = !this.config.avoidOptionals && originalFieldNode.type.kind !== graphql_1.Kind.NON_NULL_TYPE; | ||
return graphql_codegen_visitor_plugin_common_1.indent("" + (this.config.immutableTypes ? 'readonly ' : '') + node.name + (addOptionalSign ? '?' : '') + ": " + typeString + ","); | ||
@@ -68,0 +69,0 @@ }; |
{ | ||
"name": "graphql-codegen-typescript", | ||
"version": "0.19.0-alpha.0d1c696f", | ||
"version": "0.19.0-alpha.10ac8723", | ||
"description": "GraphQL Code Generator plugin for generating TypeScript types", | ||
@@ -12,5 +12,5 @@ "repository": "git@github.com:dotansimha/graphql-code-generator.git", | ||
"dependencies": { | ||
"graphql-codegen-core": "0.19.0-alpha.0d1c696f", | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.0d1c696f", | ||
"graphql-codegen-visitor-plugin-common": "0.19.0-alpha.0d1c696f" | ||
"graphql-codegen-core": "0.19.0-alpha.10ac8723", | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.10ac8723", | ||
"graphql-codegen-visitor-plugin-common": "0.19.0-alpha.10ac8723" | ||
}, | ||
@@ -17,0 +17,0 @@ "devDependencies": { |
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
23831
325
+ Addedgraphql-codegen-core@0.19.0-alpha.10ac8723(transitive)
+ Addedgraphql-codegen-plugin-helpers@0.19.0-alpha.10ac8723(transitive)
+ Addedgraphql-codegen-visitor-plugin-common@0.19.0-alpha.10ac8723(transitive)
- Removedgraphql-codegen-core@0.19.0-alpha.0d1c696f(transitive)
- Removedgraphql-codegen-plugin-helpers@0.19.0-alpha.0d1c696f(transitive)
- Removedgraphql-codegen-visitor-plugin-common@0.19.0-alpha.0d1c696f(transitive)
Updatedgraphql-codegen-visitor-plugin-common@0.19.0-alpha.10ac8723