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 4.0.0-rc.1 to 4.0.0-rc.2

node8plus/swallowError.js

26

node8plus/makeNewBuild.js

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

var _swallowError = require("./swallowError");
var _swallowError2 = _interopRequireDefault(_swallowError);
var _extend = require("./extend");

@@ -42,6 +46,4 @@

const isString = str => typeof str === "string";
const isDev = ["test", "development"].indexOf(process.env.NODE_ENV) >= 0;
const debug = (0, _debug2.default)("graphile-build");
const debugWarn = (0, _debug2.default)("graphile-build:warn");

@@ -119,2 +121,3 @@ /*

GraphQLSchema,
GraphQLInterfaceType,
GraphQLObjectType,

@@ -482,4 +485,11 @@ GraphQLInputObjectType,

try {
if (isCompositeType(Self) && !isAbstractType(Self)) {
Self.getFields();
if (Self instanceof GraphQLInterfaceType || Self instanceof GraphQLObjectType || Self instanceof GraphQLInputObjectType) {
const _Self = Self;
if (typeof _Self.getFields === "function") {
const fields = _Self.getFields();
if (Object.keys(fields).length === 0) {
// We require there's at least one field on GraphQLObjectType and GraphQLInputObjectType records
return null;
}
}
}

@@ -491,6 +501,3 @@ } catch (e) {

if (!isProbablyAnEmptyObjectError) {
// XXX: Improve this
// eslint-disable-next-line no-console
console.warn(`An error occurred, it might be okay but it doesn't look like the error we were expecting... run with envvar 'DEBUG="graphile-build:warn"' to view the error`);
debugWarn(e);
this.swallowError(e);
}

@@ -520,5 +527,6 @@ return null;

constantCase: _utils.constantCase
}
},
swallowError: _swallowError2.default
};
}
//# sourceMappingURL=makeNewBuild.js.map
{
"name": "graphile-build",
"version": "4.0.0-rc.1",
"version": "4.0.0-rc.2",
"description": "Build a GraphQL schema from plugins",

@@ -31,3 +31,3 @@ "main": "node8plus/index.js",

"debug": ">=2 <3",
"graphql-parse-resolve-info": "4.0.0-rc.1",
"graphql-parse-resolve-info": "4.0.0-rc.2",
"lodash": ">=4 <5",

@@ -41,2 +41,3 @@ "pluralize": "7.0.0"

"babel-cli": "^6.24.1",
"eslint_d": "5.3.1",
"flow-copy-source": "^1.2.0",

@@ -43,0 +44,0 @@ "jest": "^20.0.4"

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