Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-codegen-typescript

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-typescript - npm Package Compare versions

Comparing version 0.19.0-alpha.0d1c696f to 0.19.0-alpha.10ac8723

3

dist/visitor.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc