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 0.2.13 to 0.2.14

2

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

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

@@ -243,3 +243,3 @@ 'use strict';

var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var dbModel, sort, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, condition, include, _args$keywords, fields, value, keywordsCondition, associationType, _iteratorNormalCompletion4, _didIteratorError4, _iteratorError4, _iterator4, _step4, field, fieldName, type, colFieldName;
var dbModel, _ref2, _ref2$sort, sort, _ref2$condition, condition, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, include, _args$keywords, fields, value, keywordsCondition, associationType, _iteratorNormalCompletion4, _didIteratorError4, _iteratorError4, _iterator4, _step4, field, fieldName, type, colFieldName;

@@ -251,3 +251,3 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

dbModel = models[model.name];
sort = args != null ? args.sort : [{ field: 'id', order: 'ASC' }];
_ref2 = args != null ? args : {}, _ref2$sort = _ref2.sort, sort = _ref2$sort === undefined ? [{ field: 'id', order: 'ASC' }] : _ref2$sort, _ref2$condition = _ref2.condition, condition = _ref2$condition === undefined ? {} : _ref2$condition;

@@ -303,5 +303,3 @@ if (!dbModel.options.underscored) {

case 22:
condition = args != null ? _extends({}, args.condition) : {};
conditionFieldKeys.forEach(function (fieldKey) {

@@ -335,3 +333,3 @@ if (condition[fieldKey]) {

if (!(args && args.keywords)) {
_context.next = 50;
_context.next = 49;
break;

@@ -404,3 +402,3 @@ }

_iteratorError4 = undefined;
_context.prev = 33;
_context.prev = 32;

@@ -433,14 +431,14 @@ for (_iterator4 = fields[Symbol.iterator](); !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {

}
_context.next = 41;
_context.next = 40;
break;
case 37:
_context.prev = 37;
_context.t1 = _context['catch'](33);
case 36:
_context.prev = 36;
_context.t1 = _context['catch'](32);
_didIteratorError4 = true;
_iteratorError4 = _context.t1;
case 41:
case 40:
_context.prev = 40;
_context.prev = 41;
_context.prev = 42;

@@ -451,7 +449,7 @@ if (!_iteratorNormalCompletion4 && _iterator4.return) {

case 44:
_context.prev = 44;
case 43:
_context.prev = 43;
if (!_didIteratorError4) {
_context.next = 47;
_context.next = 46;
break;

@@ -462,15 +460,15 @@ }

case 46:
return _context.finish(43);
case 47:
return _context.finish(44);
return _context.finish(40);
case 48:
return _context.finish(41);
condition.$or = keywordsCondition;
case 49:
condition.$or = keywordsCondition;
return _context.abrupt('return', _index2.default.Connection.resolve(dbModel, _extends({}, args, { condition: condition, include: include })));
case 50:
return _context.abrupt('return', _index2.default.Connection.resolve(dbModel, _extends({}, args, { condition: condition, include: include })));
case 51:
case 'end':

@@ -480,3 +478,3 @@ return _context.stop();

}
}, _callee, this, [[6, 10, 14, 22], [15,, 17, 21], [33, 37, 41, 49], [42,, 44, 48]]);
}, _callee, this, [[6, 10, 14, 22], [15,, 17, 21], [32, 36, 40, 48], [41,, 43, 47]]);
}));

@@ -483,0 +481,0 @@

{
"name": "simple-graphql",
"version": "0.2.13",
"version": "0.2.14",
"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

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