Socket
Socket
Sign inDemoInstall

simple-graphql

Package Overview
Dependencies
Maintainers
1
Versions
300
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

simple-graphql - npm Package Compare versions

Comparing version 1.0.11 to 1.0.12

2

lib/package.json
{
"name": "simple-graphql",
"version": "1.0.11",
"version": "1.0.12",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

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

@@ -114,2 +114,3 @@ 'use strict';

var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(root) {
var fieldName;
return regeneratorRuntime.wrap(function _callee2$(_context2) {

@@ -119,13 +120,15 @@ while (1) {

case 0:
if (!root[name]) {
_context2.next = 4;
fieldName = name.split('.').slice(-1)[0];
if (!root[fieldName]) {
_context2.next = 5;
break;
}
return _context2.abrupt('return', !relay.toGlobalId(fieldType.substr(0, fieldType.length - 'Id'.length), root[name]));
return _context2.abrupt('return', !relay.toGlobalId(fieldType.substr(0, fieldType.length - 'Id'.length), root[fieldName]));
case 4:
case 5:
return _context2.abrupt('return', null);
case 5:
case 6:
case 'end':

@@ -132,0 +135,0 @@ return _context2.stop();

{
"name": "simple-graphql",
"version": "1.0.11",
"version": "1.0.12",
"description": "The simple way to generates GraphQL schemas and Sequelize models from your models definition.",

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

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