Socket
Socket
Sign inDemoInstall

graphile-build

Package Overview
Dependencies
Maintainers
1
Versions
167
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphile-build - npm Package Compare versions

Comparing version 0.1.0-alpha.37 to 0.1.0-alpha.38

node7minus/plugins/PersistentMemoizePlugin.js

58

node7minus/index.js

@@ -20,2 +20,6 @@ "use strict";

var _util = require("util");
var _util2 = _interopRequireDefault(_util);
var _SchemaBuilder = require("./SchemaBuilder");

@@ -30,3 +34,3 @@

var getBuilder = exports.getBuilder = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(plugins) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(plugins) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -49,3 +53,3 @@

if (_iteratorNormalCompletion = (_step = _iterator.next()).done) {
_context.next = 15;
_context.next = 17;
break;

@@ -56,10 +60,18 @@ }

if (!(typeof plugin !== "function")) {
_context.next = 10;
break;
}
throw new Error("Expected a list of plugin functions, instead list contained a non-function: " + _util2.default.inspect(plugin));
case 10:
builder._setPluginName(plugin.displayName || plugin.name);
_context.next = 11;
_context.next = 13;
return plugin(builder, options);
case 11:
case 13:
builder._setPluginName(null);
case 12:
case 14:
_iteratorNormalCompletion = true;

@@ -69,8 +81,8 @@ _context.next = 6;

case 15:
_context.next = 21;
case 17:
_context.next = 23;
break;
case 17:
_context.prev = 17;
case 19:
_context.prev = 19;
_context.t0 = _context["catch"](4);

@@ -80,5 +92,5 @@ _didIteratorError = true;

case 21:
_context.prev = 21;
_context.prev = 22;
case 23:
_context.prev = 23;
_context.prev = 24;

@@ -89,7 +101,7 @@ if (!_iteratorNormalCompletion && _iterator.return) {

case 24:
_context.prev = 24;
case 26:
_context.prev = 26;
if (!_didIteratorError) {
_context.next = 27;
_context.next = 29;
break;

@@ -100,12 +112,12 @@ }

case 27:
return _context.finish(24);
case 29:
return _context.finish(26);
case 28:
return _context.finish(21);
case 30:
return _context.finish(23);
case 29:
case 31:
return _context.abrupt("return", builder);
case 30:
case 32:
case "end":

@@ -115,3 +127,3 @@ return _context.stop();

}
}, _callee, undefined, [[4, 17, 21, 29], [22,, 24, 28]]);
}, _callee, undefined, [[4, 19, 23, 31], [24,, 26, 30]]);
}));

@@ -125,3 +137,3 @@

var buildSchema = exports.buildSchema = function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2(plugins) {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2(plugins) {
var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};

@@ -128,0 +140,0 @@ var builder;

@@ -47,2 +47,4 @@ "use strict";

var _package = require("../package.json");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -55,2 +57,3 @@

};
var isDev = ["test", "development"].indexOf(process.env.NODE_ENV) >= 0;

@@ -181,2 +184,3 @@ var debug = (0, _debug2.default)("graphile-build");

return {
graphileBuildVersion: _package.version,
graphql,

@@ -183,0 +187,0 @@ parseResolveInfo: _graphqlParseResolveInfo.parseResolveInfo,

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

exports.default = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(builder) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(builder) {
return _regenerator2.default.wrap(function _callee$(_context) {

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

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

return (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee() {
return (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee() {
var nodeId, _JSON$parse, _JSON$parse2, _alias, _identifiers, _Type, resolver, _parsedResolveInfoFragment, _resolveData, node;

@@ -174,0 +174,0 @@

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

exports.default = function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(builder) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(builder) {
return _regenerator2.default.wrap(function _callee$(_context2) {

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

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

value: function () {
var _ref = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee(listener) {
var _ref = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee(listener) {
var _this2 = this;

@@ -382,3 +382,3 @@

value: function () {
var _ref2 = (0, _asyncToGenerator3.default)(_regenerator2.default.mark(function _callee2() {
var _ref2 = (0, _asyncToGenerator3.default)( /*#__PURE__*/_regenerator2.default.mark(function _callee2() {
var listener, _iteratorNormalCompletion3, _didIteratorError3, _iteratorError3, _iterator3, _step3, _fn2;

@@ -385,0 +385,0 @@

@@ -8,2 +8,6 @@ "use strict";

var _util = require("util");
var _util2 = _interopRequireDefault(_util);
var _SchemaBuilder = require("./SchemaBuilder");

@@ -20,2 +24,5 @@

for (const plugin of plugins) {
if (typeof plugin !== "function") {
throw new Error("Expected a list of plugin functions, instead list contained a non-function: " + _util2.default.inspect(plugin));
}
builder._setPluginName(plugin.displayName || plugin.name);

@@ -22,0 +29,0 @@ await plugin(builder, options);

@@ -39,2 +39,4 @@ "use strict";

var _package = require("../package.json");
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } }

@@ -45,2 +47,3 @@

const isString = str => typeof str === "string";
const isDev = ["test", "development"].indexOf(process.env.NODE_ENV) >= 0;

@@ -127,2 +130,3 @@ const debug = (0, _debug2.default)("graphile-build");

return {
graphileBuildVersion: _package.version,
graphql,

@@ -129,0 +133,0 @@ parseResolveInfo: _graphqlParseResolveInfo.parseResolveInfo,

{
"name": "graphile-build",
"version": "0.1.0-alpha.37",
"version": "0.1.0-alpha.38",
"description": "Build a GraphQL schema from plugins",

@@ -5,0 +5,0 @@ "main": "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

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