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.4 to 1.0.5

45

lib/Context.js

@@ -148,28 +148,29 @@ 'use strict';

var obj = Object.assign({
id: {
$type: new graphql.GraphQLNonNull(graphql.GraphQLID),
resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
return _context.abrupt('return', relay.toGlobalId(_StringHelper2.default.toInitialUpperCase(model.name), root.id));
id: {}
}, model.config.fields, model.config.links);
obj.id = {
$type: new graphql.GraphQLNonNull(graphql.GraphQLID),
resolve: function () {
var _ref = _asyncToGenerator(regeneratorRuntime.mark(function _callee(root) {
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
return _context.abrupt('return', relay.toGlobalId(_StringHelper2.default.toInitialUpperCase(model.name), root.id));
case 1:
case 'end':
return _context.stop();
}
case 1:
case 'end':
return _context.stop();
}
}, _callee, this);
}));
}
}, _callee, this);
}));
function resolve(_x) {
return _ref.apply(this, arguments);
}
function resolve(_x) {
return _ref.apply(this, arguments);
}
return resolve;
}()
}
}, model.config.fields, model.config.links);
return resolve;
}()
};
var interfaces = [this.nodeInterface];

@@ -176,0 +177,0 @@

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

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

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc