@graphql-codegen/visitor-plugin-common
Advanced tools
Comparing version 1.0.4-alpha-4643617a.11 to 1.0.4-alpha-485d1b53.18
@@ -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, { |
@@ -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-4643617a.11+4643617a", | ||
"version": "1.0.4-alpha-485d1b53.18+485d1b53", | ||
"license": "MIT", | ||
@@ -9,3 +9,3 @@ "scripts": { | ||
"dependencies": { | ||
"@graphql-codegen/plugin-helpers": "1.0.4-alpha-4643617a.11+4643617a", | ||
"@graphql-codegen/plugin-helpers": "1.0.4-alpha-485d1b53.18+485d1b53", | ||
"auto-bind": "2.0.0", | ||
@@ -20,3 +20,3 @@ "dependency-graph": "0.8.0", | ||
"devDependencies": { | ||
"@graphql-codegen/testing": "1.0.4-alpha-4643617a.11+4643617a", | ||
"@graphql-codegen/testing": "1.0.4-alpha-485d1b53.18+485d1b53", | ||
"@types/graphql": "14.0.7", | ||
@@ -36,3 +36,3 @@ "graphql": "14.1.1", | ||
}, | ||
"gitHead": "4643617a5aaf56a6e59519c3677924f587b3b250" | ||
"gitHead": "485d1b53799ac03d8f9749f5283e25542f566ce3" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
244813
3579