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.14.1-alpha-80a1e672.25 to 1.14.1-alpha-943dff85.41

15

index.cjs.js

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

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

@@ -93,2 +99,11 @@ leave(node) {

},
EnumTypeDefinition: {
leave(node) {
return createDocBlock([
`@typedef {String} ${node.name}`,
'@readonly',
...(node.values || []).map(v => `@property {String} ${v.name}`),
]);
},
},
});

@@ -95,0 +110,0 @@ return schemaTypes.join('\n\n');

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

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

@@ -89,2 +95,11 @@ leave(node) {

},
EnumTypeDefinition: {
leave(node) {
return createDocBlock([
`@typedef {String} ${node.name}`,
'@readonly',
...(node.values || []).map(v => `@property {String} ${v.name}`),
]);
},
},
});

@@ -91,0 +106,0 @@ return schemaTypes.join('\n\n');

6

package.json
{
"name": "@graphql-codegen/jsdoc",
"version": "1.14.1-alpha-80a1e672.25+80a1e672",
"version": "1.14.1-alpha-943dff85.41+943dff85",
"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.14.1-alpha-80a1e672.25+80a1e672",
"@graphql-codegen/visitor-plugin-common": "1.14.1-alpha-80a1e672.25+80a1e672",
"@graphql-codegen/plugin-helpers": "1.14.1-alpha-943dff85.41+943dff85",
"@graphql-codegen/visitor-plugin-common": "1.14.1-alpha-943dff85.41+943dff85",
"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