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

@graphql-codegen/jsdoc

Package Overview
Dependencies
Maintainers
5
Versions
690
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/jsdoc - npm Package Compare versions

Comparing version 1.15.1-alpha-849662d9.10 to 1.15.1-alpha-871522fe.29

18

index.cjs.js

@@ -35,2 +35,8 @@ 'use strict';

},
InputObjectTypeDefinition: {
leave(node) {
const typedNode = node;
return createDocBlock([`@typedef {Object} ${typedNode.name}`, ...typedNode.fields]);
},
},
InterfaceTypeDefinition: {

@@ -82,2 +88,14 @@ leave(node) {

},
InputValueDefinition: {
enter(node) {
if (node.type.kind === 'NonNullType') {
return { ...node, nonNullable: true };
}
return node;
},
leave(node) {
const fieldName = node.nonNullable ? node.name : `[${node.name}]`;
return `@property {${node.type}} ${fieldName}`;
},
},
ListType: {

@@ -84,0 +102,0 @@ enter(node) {

@@ -31,2 +31,8 @@ import { parse, printSchema, concatAST, visit } from 'graphql';

},
InputObjectTypeDefinition: {
leave(node) {
const typedNode = node;
return createDocBlock([`@typedef {Object} ${typedNode.name}`, ...typedNode.fields]);
},
},
InterfaceTypeDefinition: {

@@ -78,2 +84,14 @@ leave(node) {

},
InputValueDefinition: {
enter(node) {
if (node.type.kind === 'NonNullType') {
return { ...node, nonNullable: true };
}
return node;
},
leave(node) {
const fieldName = node.nonNullable ? node.name : `[${node.name}]`;
return `@property {${node.type}} ${fieldName}`;
},
},
ListType: {

@@ -80,0 +98,0 @@ enter(node) {

6

package.json
{
"name": "@graphql-codegen/jsdoc",
"version": "1.15.1-alpha-849662d9.10+849662d9",
"version": "1.15.1-alpha-871522fe.29+871522fe",
"description": "GraphQL Code Generator plugin for generating JSDoc based types for GraphQL queries, mutations, subscriptions and fragments",

@@ -9,4 +9,4 @@ "peerDependencies": {

"dependencies": {
"@graphql-codegen/plugin-helpers": "1.15.1-alpha-849662d9.10+849662d9",
"@graphql-codegen/visitor-plugin-common": "1.15.1-alpha-849662d9.10+849662d9",
"@graphql-codegen/plugin-helpers": "1.15.1-alpha-871522fe.29+871522fe",
"@graphql-codegen/visitor-plugin-common": "1.15.1-alpha-871522fe.29+871522fe",
"tslib": "~2.0.0"

@@ -13,0 +13,0 @@ },

Sorry, the diff of this file is not supported yet

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