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

graphql-codegen-visitor-plugin-common

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-visitor-plugin-common - npm Package Compare versions

Comparing version 0.19.0-alpha.ece75266 to 0.19.0-alpha.ed857812

2

dist/commonjs/selection-set-to-object.js

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

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