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

graphql-codegen-core

Package Overview
Dependencies
Maintainers
1
Versions
1651
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-codegen-core - npm Package Compare versions

Comparing version 0.6.0-alpha.1bc8b137 to 0.6.0-alpha.2bcde2b7

9

dist/schema/transform-fields.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var graphql_1 = require("graphql");
var object_map_to_array_1 = require("../utils/object-map-to-array");

@@ -11,2 +12,4 @@ var resolve_type_1 = require("./resolve-type");

var resolvedArguments = resolve_arguments_1.resolveArguments(item.value.args || []);
var namedType = graphql_1.getNamedType(item.value.type);
var isEnum = namedType['getValues'];
return {

@@ -20,2 +23,8 @@ name: item.value.name,

hasArguments: resolvedArguments.length > 0,
isType: namedType['getFields'] && namedType['getInterfaces'],
isScalar: graphql_1.isLeafType(namedType) && !isEnum,
isInterface: namedType['resolveType'] && namedType['getFields'],
isUnion: namedType['resolveType'] && namedType['getTypes'],
isInputType: namedType['getFields'] && !namedType['getInterfaces'],
isEnum: isEnum,
};

@@ -22,0 +31,0 @@ });

@@ -16,2 +16,8 @@ export interface Argument {

hasArguments: boolean;
isType: boolean;
isScalar: boolean;
isInterface: boolean;
isUnion: boolean;
isInputType: boolean;
isEnum: boolean;
}

@@ -18,0 +24,0 @@ export interface Type {

2

package.json
{
"name": "graphql-codegen-core",
"version": "0.6.0-alpha.1bc8b137",
"version": "0.6.0-alpha.2bcde2b7",
"description": "GraphQL types and code generator based on schema",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

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