Socket
Socket
Sign inDemoInstall

@graphql-codegen/visitor-plugin-common

Package Overview
Dependencies
Maintainers
5
Versions
5953
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.1-alpha-3b32d154.17 to 1.0.1-alpha-3c85d353.18

23

dist/commonjs/base-resolvers-visitor.js

@@ -71,12 +71,15 @@ "use strict";

getAllDirectiveResolvers() {
return new utils_1.DeclarationBlock(this._declarationBlockConfig)
.export()
.asKind('type')
.withName(this.convertName('IDirectiveResolvers'), `<Context = ${this.config.contextType.type}>`)
.withBlock(Object.keys(this._collectedDirectiveResolvers)
.map(schemaTypeName => {
const resolverType = this._collectedDirectiveResolvers[schemaTypeName];
return utils_1.indent(this.formatRootResolver(schemaTypeName, resolverType));
})
.join('\n')).string;
if (Object.keys(this._collectedDirectiveResolvers).length) {
return new utils_1.DeclarationBlock(this._declarationBlockConfig)
.export()
.asKind('type')
.withName(this.convertName('IDirectiveResolvers'), `<Context = ${this.config.contextType.type}>`)
.withBlock(Object.keys(this._collectedDirectiveResolvers)
.map(schemaTypeName => {
const resolverType = this._collectedDirectiveResolvers[schemaTypeName];
return utils_1.indent(this.formatRootResolver(schemaTypeName, resolverType));
})
.join('\n')).string;
}
return '';
}

@@ -83,0 +86,0 @@ Name(node) {

@@ -69,12 +69,15 @@ import { BaseVisitor } from './base-visitor';

getAllDirectiveResolvers() {
return new DeclarationBlock(this._declarationBlockConfig)
.export()
.asKind('type')
.withName(this.convertName('IDirectiveResolvers'), `<Context = ${this.config.contextType.type}>`)
.withBlock(Object.keys(this._collectedDirectiveResolvers)
.map(schemaTypeName => {
const resolverType = this._collectedDirectiveResolvers[schemaTypeName];
return indent(this.formatRootResolver(schemaTypeName, resolverType));
})
.join('\n')).string;
if (Object.keys(this._collectedDirectiveResolvers).length) {
return new DeclarationBlock(this._declarationBlockConfig)
.export()
.asKind('type')
.withName(this.convertName('IDirectiveResolvers'), `<Context = ${this.config.contextType.type}>`)
.withBlock(Object.keys(this._collectedDirectiveResolvers)
.map(schemaTypeName => {
const resolverType = this._collectedDirectiveResolvers[schemaTypeName];
return indent(this.formatRootResolver(schemaTypeName, resolverType));
})
.join('\n')).string;
}
return '';
}

@@ -81,0 +84,0 @@ Name(node) {

{
"name": "@graphql-codegen/visitor-plugin-common",
"version": "1.0.1-alpha-3b32d154.17+3b32d154",
"version": "1.0.1-alpha-3c85d353.18+3c85d353",
"license": "MIT",

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

"dependencies": {
"@graphql-codegen/plugin-helpers": "1.0.1-alpha-3b32d154.17+3b32d154",
"@graphql-codegen/plugin-helpers": "1.0.1-alpha-3c85d353.18+3c85d353",
"auto-bind": "2.0.0",

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

"devDependencies": {
"@graphql-codegen/testing": "1.0.1-alpha-3b32d154.17+3b32d154",
"@graphql-codegen/testing": "1.0.1-alpha-3c85d353.18+3c85d353",
"@types/graphql": "14.0.7",

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

},
"gitHead": "3b32d1540469230a8f5f6e6460cf3e8656ea8c91"
"gitHead": "3c85d3533f441dce32b5b75a33f722d20c728c0f"
}

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