Socket
Socket
Sign inDemoInstall

graphql-config

Package Overview
Dependencies
Maintainers
3
Versions
319
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-config - npm Package Compare versions

Comparing version 1.0.0-rc.7 to 1.0.0-rc.8

2

lib/errors.d.ts
declare const ConfigNotFoundError_base: ErrorConstructor;
export declare class ConfigNotFoundError extends ConfigNotFoundError_base {
constructor(...args: any[]);
constructor(message: string);
}

@@ -23,9 +23,6 @@ "use strict";

__extends(ConfigNotFoundError, _super);
function ConfigNotFoundError() {
var args = [];
for (var _i = 0; _i < arguments.length; _i++) {
args[_i] = arguments[_i];
}
var _this = _super.apply(this, args) || this;
function ConfigNotFoundError(message) {
var _this = _super.call(this, message) || this;
_this.name = _this.constructor.name;
_this.message = message;
return _this;

@@ -32,0 +29,0 @@ }

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

GraphQLEndpointsExtension.prototype.getEnvVarsForEndpoint = function (endpointName) {
if (endpointName === void 0) { endpointName = process.env.GRAPHQL_CONFIG_ENDPOINT_NAME || 'default'; }
if (endpointName === void 0) { endpointName = process.env.GRAPHQL_CONFIG_ENDPOINT_NAME; }
var endpoint = this.getRawEndpointsMap()[endpointName];

@@ -74,3 +74,3 @@ if (!endpoint || !endpoint.url) {

GraphQLEndpointsExtension.prototype.getEndpoint = function (endpointName, env) {
if (endpointName === void 0) { endpointName = process.env.GRAPHQL_CONFIG_ENDPOINT_NAME || 'default'; }
if (endpointName === void 0) { endpointName = process.env.GRAPHQL_CONFIG_ENDPOINT_NAME; }
if (env === void 0) { env = process.env; }

@@ -77,0 +77,0 @@ var endpoint = this.getRawEndpointsMap()[endpointName];

@@ -28,5 +28,5 @@ "use strict";

}
throw new errors_1.ConfigNotFoundError("'" + exports.GRAPHQL_CONFIG_NAME + " file is not available in the provided config " +
throw new errors_1.ConfigNotFoundError("\"" + exports.GRAPHQL_CONFIG_NAME + "\" file is not available in the provided config " +
("directory: " + filePath + "\nPlease check the config directory."));
}
exports.findGraphQLConfigFile = findGraphQLConfigFile;
{
"name": "graphql-config",
"version": "1.0.0-rc.7",
"version": "1.0.0-rc.8",
"description": "The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs)",

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

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