graphql-codegen-visitor-plugin-common
Advanced tools
Comparing version 0.19.0-alpha.ece75266 to 0.19.0-alpha.ed857812
@@ -54,3 +54,3 @@ "use strict"; | ||
const typeName = baseType.name; | ||
if (this._scalars[typeName] || graphql_1.isEnumType(baseType)) { | ||
if (this._scalars[typeName] || graphql_1.isEnumType(baseType) || graphql_1.isScalarType(baseType)) { | ||
if (field.alias && field.alias.value) { | ||
@@ -57,0 +57,0 @@ this._primitiveAliasedFields.push({ |
@@ -1,2 +0,2 @@ | ||
import { Kind, isObjectType, isUnionType, isInterfaceType, isEnumType, isEqualType, SchemaMetaFieldDef, TypeMetaFieldDef } from 'graphql'; | ||
import { Kind, isObjectType, isUnionType, isInterfaceType, isEnumType, isEqualType, SchemaMetaFieldDef, TypeMetaFieldDef, isScalarType } from 'graphql'; | ||
import { getBaseType, quoteIfNeeded } from './utils'; | ||
@@ -52,3 +52,3 @@ function isMetadataFieldName(name) { | ||
const typeName = baseType.name; | ||
if (this._scalars[typeName] || isEnumType(baseType)) { | ||
if (this._scalars[typeName] || isEnumType(baseType) || isScalarType(baseType)) { | ||
if (field.alias && field.alias.value) { | ||
@@ -55,0 +55,0 @@ this._primitiveAliasedFields.push({ |
{ | ||
"name": "graphql-codegen-visitor-plugin-common", | ||
"version": "0.19.0-alpha.ece75266", | ||
"version": "0.19.0-alpha.ed857812", | ||
"license": "MIT", | ||
@@ -11,3 +11,3 @@ "scripts": { | ||
"dependency-graph": "0.8.0", | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.ece75266", | ||
"graphql-codegen-plugin-helpers": "0.19.0-alpha.ed857812", | ||
"graphql-tag": "2.10.1", | ||
@@ -22,3 +22,3 @@ "tslib": "1.9.3" | ||
"graphql": "14.1.1", | ||
"graphql-codegen-testing": "0.19.0-alpha.ece75266", | ||
"graphql-codegen-testing": "0.19.0-alpha.ed857812", | ||
"typescript": "3.3.3333" | ||
@@ -25,0 +25,0 @@ }, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
197675
0
+ Addedgraphql-codegen-plugin-helpers@0.19.0-alpha.ed857812(transitive)
- Removedgraphql-codegen-plugin-helpers@0.19.0-alpha.ece75266(transitive)