graphql-config
Advanced tools
Comparing version 1.0.0-rc.7 to 1.0.0-rc.8
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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
67889
1304