Socket
Socket
Sign inDemoInstall

@graphql-codegen/visitor-plugin-common

Package Overview
Dependencies
6
Maintainers
5
Versions
5763
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.18.1-alpha.42 to 0.18.1-alpha.43

12

dist/commonjs/base-resolvers-visitor.js

@@ -32,5 +32,3 @@ "use strict";

}
if (!groupedMappers[mapper.source].includes(mapper.type)) {
groupedMappers[mapper.source].push(mapper.type);
}
groupedMappers[mapper.source].push(mapper.type);
});

@@ -41,5 +39,3 @@ if (this.config.contextType.isExternal) {

}
if (!groupedMappers[this.config.contextType.source]) {
groupedMappers[this.config.contextType.source].push(this.config.contextType.type);
}
groupedMappers[this.config.contextType.source].push(this.config.contextType.type);
}

@@ -157,3 +153,3 @@ return Object.keys(groupedMappers).map(source => this.buildMapperImport(source, groupedMappers[source]));

.withName(name, `<Context = ${this.config.contextType.type}, ParentType = ${node.name}>`)
.withBlock(utils_1.indent(`__resolveType: TypeResolveFn<${possibleTypes}>`)).string;
.withBlock(utils_1.indent(`__resolveType: TypeResolveFn<${possibleTypes}, ParentType, Context>`)).string;
}

@@ -208,3 +204,3 @@ ScalarTypeDefinition(node) {

.withName(name, `<Context = ${this.config.contextType.type}, ParentType = ${node.name}>`)
.withBlock([utils_1.indent(`__resolveType: TypeResolveFn<${implementingTypes.map(name => `'${name}'`).join(' | ')}>,`), ...(node.fields || []).map((f) => f(node.name))].join('\n')).string;
.withBlock([utils_1.indent(`__resolveType: TypeResolveFn<${implementingTypes.map(name => `'${name}'`).join(' | ')}, ParentType, Context>,`), ...(node.fields || []).map((f) => f(node.name))].join('\n')).string;
}

@@ -211,0 +207,0 @@ SchemaDefinition() {

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

}
if (!groupedMappers[mapper.source].includes(mapper.type)) {
groupedMappers[mapper.source].push(mapper.type);
}
groupedMappers[mapper.source].push(mapper.type);
});

@@ -39,5 +37,3 @@ if (this.config.contextType.isExternal) {

}
if (!groupedMappers[this.config.contextType.source]) {
groupedMappers[this.config.contextType.source].push(this.config.contextType.type);
}
groupedMappers[this.config.contextType.source].push(this.config.contextType.type);
}

@@ -155,3 +151,3 @@ return Object.keys(groupedMappers).map(source => this.buildMapperImport(source, groupedMappers[source]));

.withName(name, `<Context = ${this.config.contextType.type}, ParentType = ${node.name}>`)
.withBlock(indent(`__resolveType: TypeResolveFn<${possibleTypes}>`)).string;
.withBlock(indent(`__resolveType: TypeResolveFn<${possibleTypes}, ParentType, Context>`)).string;
}

@@ -206,3 +202,3 @@ ScalarTypeDefinition(node) {

.withName(name, `<Context = ${this.config.contextType.type}, ParentType = ${node.name}>`)
.withBlock([indent(`__resolveType: TypeResolveFn<${implementingTypes.map(name => `'${name}'`).join(' | ')}>,`), ...(node.fields || []).map((f) => f(node.name))].join('\n')).string;
.withBlock([indent(`__resolveType: TypeResolveFn<${implementingTypes.map(name => `'${name}'`).join(' | ')}, ParentType, Context>,`), ...(node.fields || []).map((f) => f(node.name))].join('\n')).string;
}

@@ -209,0 +205,0 @@ SchemaDefinition() {

{
"name": "@graphql-codegen/visitor-plugin-common",
"version": "0.18.1-alpha.42+7702eb5e",
"version": "0.18.1-alpha.43+1155c8d6",
"license": "MIT",

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

"dependencies": {
"@graphql-codegen/plugin-helpers": "0.18.1-alpha.42+7702eb5e",
"@graphql-codegen/plugin-helpers": "0.18.1-alpha.43+1155c8d6",
"auto-bind": "2.0.0",

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

"devDependencies": {
"@graphql-codegen/testing": "0.18.1-alpha.42+7702eb5e",
"@graphql-codegen/testing": "0.18.1-alpha.43+1155c8d6",
"@types/graphql": "14.0.7",

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

},
"gitHead": "7702eb5e123c78547fdd435b86799f28ed928c5d"
"gitHead": "1155c8d685da51f2779af303d998c97245e6f116"
}

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc