Socket
Socket
Sign inDemoInstall

@graphql-codegen/visitor-plugin-common

Package Overview
Dependencies
Maintainers
5
Versions
5966
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 1.0.4-alpha-629cd233.15 to 1.0.4-alpha-70a71196.22

2

dist/commonjs/base-resolvers-visitor.js

@@ -195,3 +195,3 @@ "use strict";

const possibleTypes = originalNode.types
.map(node => this.convertName(node))
.map(node => node.name.value)
.map(f => `'${f}'`)

@@ -198,0 +198,0 @@ .join(' | ');

@@ -146,3 +146,3 @@ "use strict";

.map(enumOption => {
const optionName = this.convertName(enumOption);
const optionName = this.convertName(enumOption, { useTypesPrefix: false });
const comment = utils_1.transformComment(enumOption.description, 1);

@@ -149,0 +149,0 @@ let enumValue = enumOption.name;

@@ -104,10 +104,7 @@ "use strict";

}
const documentName = this.convertName(node, {
const documentVariableName = this.convertName(node, {
suffix: 'Document',
useTypesPrefix: false,
});
const documentVariableName = this.convertName(node, {
suffix: 'Document',
});
const documentString = `export const ${documentName}${this.config.noGraphQLTag ? ': DocumentNode' : ''} = ${this._gql(node)};`;
const documentString = `export const ${documentVariableName}${this.config.noGraphQLTag ? ': DocumentNode' : ''} = ${this._gql(node)};`;
const operationType = plugin_helpers_1.toPascalCase(node.operation);

@@ -114,0 +111,0 @@ const operationResultType = this.convertName(node, {

@@ -193,3 +193,3 @@ import { BaseVisitor } from './base-visitor';

const possibleTypes = originalNode.types
.map(node => this.convertName(node))
.map(node => node.name.value)
.map(f => `'${f}'`)

@@ -196,0 +196,0 @@ .join(' | ');

@@ -144,3 +144,3 @@ import { BaseVisitor } from './base-visitor';

.map(enumOption => {
const optionName = this.convertName(enumOption);
const optionName = this.convertName(enumOption, { useTypesPrefix: false });
const comment = transformComment(enumOption.description, 1);

@@ -147,0 +147,0 @@ let enumValue = enumOption.name;

@@ -102,10 +102,7 @@ import { BaseVisitor } from './index';

}
const documentName = this.convertName(node, {
const documentVariableName = this.convertName(node, {
suffix: 'Document',
useTypesPrefix: false,
});
const documentVariableName = this.convertName(node, {
suffix: 'Document',
});
const documentString = `export const ${documentName}${this.config.noGraphQLTag ? ': DocumentNode' : ''} = ${this._gql(node)};`;
const documentString = `export const ${documentVariableName}${this.config.noGraphQLTag ? ': DocumentNode' : ''} = ${this._gql(node)};`;
const operationType = toPascalCase(node.operation);

@@ -112,0 +109,0 @@ const operationResultType = this.convertName(node, {

{
"name": "@graphql-codegen/visitor-plugin-common",
"version": "1.0.4-alpha-629cd233.15+629cd233",
"version": "1.0.4-alpha-70a71196.22+70a71196",
"license": "MIT",

@@ -9,3 +9,3 @@ "scripts": {

"dependencies": {
"@graphql-codegen/plugin-helpers": "1.0.4-alpha-629cd233.15+629cd233",
"@graphql-codegen/plugin-helpers": "1.0.4-alpha-70a71196.22+70a71196",
"auto-bind": "2.0.0",

@@ -20,3 +20,3 @@ "dependency-graph": "0.8.0",

"devDependencies": {
"@graphql-codegen/testing": "1.0.4-alpha-629cd233.15+629cd233",
"@graphql-codegen/testing": "1.0.4-alpha-70a71196.22+70a71196",
"@types/graphql": "14.0.7",

@@ -36,3 +36,3 @@ "graphql": "14.1.1",

},
"gitHead": "629cd233c1d7c1c51c663360d941d4f7cce90231"
"gitHead": "70a71196952a0d1097cdfd05f2fd3de17f039f5f"
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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