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.1.4 to 0.1.5

21

lib/Context.js

@@ -209,4 +209,4 @@ 'use strict';

var invoker = function invoker(schema, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, null, variableValues);
var invoker = function invoker(schema, context, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, context, variableValues);
};

@@ -232,6 +232,7 @@ var hookFun = function hookFun(action, invokeInfo, next) {

args: args,
context: context,
info: info,
models: dbModels()
}, function () {
return config.resolve(args, info, dbModels(), invoker.bind(null, info.schema, info.rootValue));
return config.resolve(args, context, info, dbModels(), invoker.bind(null, info.schema, context, info.rootValue));
});

@@ -253,4 +254,4 @@ };

var invoker = function invoker(schema, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, null, variableValues);
var invoker = function invoker(schema, context, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, context, variableValues);
};

@@ -276,6 +277,7 @@ var hookFun = function hookFun(action, invokeInfo, next) {

args: args,
context: context,
info: info,
models: dbModels()
}, function () {
return config.resolve(source, args, info, dbModels(), invoker.bind(null, info.schema, info.rootValue));
return config.resolve(source, args, context, info, dbModels(), invoker.bind(null, info.schema, context, info.rootValue));
});

@@ -297,4 +299,4 @@ };

var invoker = function invoker(schema, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, null, variableValues);
var invoker = function invoker(schema, context, rootValue, requestString, variableValues) {
return graphql['graphql'](schema, requestString, rootValue, context, variableValues);
};

@@ -325,6 +327,7 @@ var hookFun = function hookFun(action, invokeInfo, next) {

args: args,
context: context,
info: info,
models: dbModels()
}, function () {
return config.mutateAndGetPayload(args, info, dbModels(), invoker.bind(null, info.schema, info.rootValue));
return config.mutateAndGetPayload(args, context, info, dbModels(), invoker.bind(null, info.schema, context, info.rootValue));
});

@@ -331,0 +334,0 @@

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

mutateAndGetPayload: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, info, models) {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(args, context, info, models) {
var instance;

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

function mutateAndGetPayload(_x, _x2, _x3) {
function mutateAndGetPayload(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -92,0 +92,0 @@ }

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

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

@@ -94,3 +94,3 @@

function mutateAndGetPayload(_x, _x2, _x3) {
function mutateAndGetPayload(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -97,0 +97,0 @@ }

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

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

@@ -111,3 +111,3 @@ values = _ref2.values;

function mutateAndGetPayload(_x, _x2, _x3) {
function mutateAndGetPayload(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -114,0 +114,0 @@ }

{
"name": "simple-graphql",
"version": "0.1.3",
"version": "0.1.4",
"description": "The simple way to build GraphQL style API with MySQL/PostreSQL",

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

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

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

@@ -245,3 +245,3 @@ while (1) {

function resolve(_x, _x2, _x3) {
function resolve(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -248,0 +248,0 @@ }

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

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

@@ -83,3 +83,3 @@ while (1) {

function resolve(_x, _x2, _x3) {
function resolve(_x, _x2, _x3, _x4) {
return _ref.apply(this, arguments);

@@ -86,0 +86,0 @@ }

{
"name": "simple-graphql",
"version": "0.1.4",
"version": "0.1.5",
"description": "The simple way to build GraphQL style API with MySQL/PostreSQL",

@@ -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

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

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc