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.6 to 1.0.7

2

lib/Context.js

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(root) {
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -154,0 +154,0 @@ while (1) {

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models, invoker) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args, context, info, models, invoker) {
var id, record;

@@ -166,0 +166,0 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

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

@@ -40,3 +40,3 @@ "main": "lib/index.js",

"moment": "^2.18.1",
"sequelize": "^4.4.2"
"sequelize": "^4.6.0"
},

@@ -47,3 +47,3 @@ "devDependencies": {

"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-polyfill": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.0",

@@ -59,4 +59,4 @@ "babel-preset-stage-3": "^6.22.0",

"pre-commit": "^1.2.2",
"sqlite3": "^3.1.8",
"standard": "^10.0.2"
"sqlite3": "^3.1.9",
"standard": "^10.0.3"
},

@@ -63,0 +63,0 @@ "standard": {

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

mutateAndGetPayload: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args, context, info, models) {
var dbModel, attrs, instance;

@@ -63,0 +63,0 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

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

mutateAndGetPayload: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(_ref2, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(_ref2, context, info, models) {
var id = _ref2.id;

@@ -58,0 +58,0 @@

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root, args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(root, args, context, info, models) {
var condition, sort;

@@ -43,0 +43,0 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root, args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(root, args, context, info, models) {
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -39,0 +39,0 @@ while (1) {

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args, context, info, models) {
var dbModel, _ref2, _ref2$sort, sort, _ref2$condition, condition, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, item, include, includeFields, associationType, _args$keywords, fields, value, keywordsCondition, _iteratorNormalCompletion2, _didIteratorError2, _iteratorError2, _iterator2, _step2, field, fieldName, type, colFieldName;

@@ -252,0 +252,0 @@

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args, context, info, models) {
return regeneratorRuntime.wrap(function _callee$(_context) {

@@ -66,0 +66,0 @@ while (1) {

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

mutateAndGetPayload: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(args, context, info, models) {
var dbModel, values, instance;

@@ -76,0 +76,0 @@ return regeneratorRuntime.wrap(function _callee$(_context) {

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

exports.default = function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(dbModel, args) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(dbModel, args) {
var after, _args$first, first, before, last, _args$include, include, _args$condition, condition, _args$sort, sort, reverse, count, offset, result, index;

@@ -19,0 +19,0 @@

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

function toSequelizeModel(sequelize, model) {
function toSequelizeModel(sequelize, schema) {
var dbDefinition = {};

@@ -59,3 +59,3 @@

};
_lodash2.default.forOwn(model.config.fields, function (value, key) {
_lodash2.default.forOwn(schema.config.fields, function (value, key) {
var fType = value;

@@ -68,3 +68,3 @@ if (value && value['$type']) {

if (value && value['$type'] && value.required) {
model.belongsTo(_defineProperty({}, key, {
schema.belongsTo(_defineProperty({}, key, {
target: fType,

@@ -77,3 +77,3 @@ hidden: true,

} else {
model.belongsTo(_defineProperty({}, key, {
schema.belongsTo(_defineProperty({}, key, {
target: fType,

@@ -116,4 +116,4 @@ hidden: true,

// console.log("Create Sequlize Model with config", model.name, dbDefinition, model.config.options["table"])
var dbModel = sequelize.define(model.name, dbDefinition, model.config.options['table']);
var dbModel = sequelize.define(schema.name, dbDefinition, schema.config.options['table']);
return dbModel;
}

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

resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) {
var _ref = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee(root) {
var fieldName;

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

resolve: function () {
var _ref2 = _asyncToGenerator(regeneratorRuntime.mark(function _callee2(root, args, context, info, models) {
var _ref2 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(root, args, context, info, models) {
var fieldName;

@@ -243,3 +243,3 @@ return regeneratorRuntime.wrap(function _callee2$(_context2) {

resolve: function () {
var _ref3 = _asyncToGenerator(regeneratorRuntime.mark(function _callee3(root) {
var _ref3 = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee3(root) {
return regeneratorRuntime.wrap(function _callee3$(_context3) {

@@ -246,0 +246,0 @@ while (1) {

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

@@ -40,3 +40,3 @@ "main": "lib/index.js",

"moment": "^2.18.1",
"sequelize": "^4.4.2"
"sequelize": "^4.6.0"
},

@@ -47,3 +47,3 @@ "devDependencies": {

"babel-plugin-transform-flow-strip-types": "^6.22.0",
"babel-polyfill": "^6.23.0",
"babel-polyfill": "^6.26.0",
"babel-preset-es2015": "^6.24.0",

@@ -59,4 +59,4 @@ "babel-preset-stage-3": "^6.22.0",

"pre-commit": "^1.2.2",
"sqlite3": "^3.1.8",
"standard": "^10.0.2"
"sqlite3": "^3.1.9",
"standard": "^10.0.3"
},

@@ -63,0 +63,0 @@ "standard": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc