Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-fields

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-fields - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

12

build/index.js

@@ -44,2 +44,8 @@ 'use strict';

switch (arg.kind) {
case 'FloatValue':
return parseFloat(arg.value);
case 'IntValue':
return parseInt(arg.value, 10);
case 'Variable':

@@ -53,2 +59,8 @@ return info.variableValues[arg.name.value];

case 'ObjectValue':
return arg.fields.reduce(function (argValue, objectField) {
argValue[objectField.name.value] = getArgumentValue(objectField.value, info);
return argValue;
}, {});
default:

@@ -55,0 +67,0 @@ return arg.value;

# Changelog
## 2.0.3 (2019-03-02)
### Fixed
- process object arguments
## 2.0.2 (2019-02-28)

@@ -5,0 +10,0 @@

2

package.json
{
"name": "graphql-fields",
"version": "2.0.2",
"version": "2.0.3",
"description": "Turns GraphQLResolveInfo into a map of the requested fields",

@@ -5,0 +5,0 @@ "main": "build/index.js",

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