Socket
Socket
Sign inDemoInstall

graphql-js-tree

Package Overview
Dependencies
1
Maintainers
1
Versions
46
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.5 to 0.1.6

18

lib/Parser/typeResolver.js

@@ -48,3 +48,19 @@ "use strict";

if (value.kind === 'ListValue') {
return value.values.map(TypeResolver.resolveValue).reduce((a, b) => [...(a || []), ...(b || [])], []);
return [
{
name: value.kind,
directives: [],
interfaces: [],
args: value.values.map((f) => TypeResolver.resolveValue(f)).reduce((a, b) => [...a, ...b], []),
data: {
type: value.kind,
},
type: {
fieldType: {
name: value.kind,
type: Models_1.Options.name,
},
},
},
];
}

@@ -51,0 +67,0 @@ if (value.kind === 'ObjectValue') {

2

lib/TreeToGraphQL/templates/ValueTemplate.js

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

if (f.data.type === Models_1.Value.ListValue) {
returnedValue = `[${(f.args || []).map((a) => TemplateUtils_1.TemplateUtils.resolverForConnection(a))}]`;
returnedValue = `[${(f.args || []).map((a) => TemplateUtils_1.TemplateUtils.resolverForConnection(a)).join(', ')}]`;
}

@@ -21,0 +21,0 @@ if (f.data.type === Models_1.Value.ObjectValue) {

{
"name": "graphql-js-tree",
"version": "0.1.5",
"version": "0.1.6",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

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