graphql-config
Advanced tools
Comparing version 1.0.8 to 1.0.9
@@ -98,1 +98,17 @@ "use strict"; | ||
}); }); | ||
ava_1.default('getUsedEnvs', function (t) { return __awaiter(_this, void 0, void 0, function () { | ||
var configData, envs; | ||
return __generator(this, function (_a) { | ||
configData = { | ||
schemaPath: '../schema.json', | ||
extensions: { | ||
endpoints: { | ||
dev: 'http://127.0.0.1:${env:EXTENSION_TEST_PORT}', | ||
}, | ||
}, | ||
}; | ||
envs = _1.getUsedEnvs(configData); | ||
t.is(Object.keys(envs)[0], 'EXTENSION_TEST_PORT'); | ||
return [2 /*return*/]; | ||
}); | ||
}); }); |
export * from './EndpointsExtension'; | ||
export * from './resolveRefString'; |
@@ -7,1 +7,2 @@ "use strict"; | ||
__export(require("./EndpointsExtension")); | ||
__export(require("./resolveRefString")); |
@@ -40,4 +40,4 @@ "use strict"; | ||
else if (typeof val === 'object') { | ||
for (var key in config) { | ||
traverse(config[key]); | ||
for (var key in val) { | ||
traverse(val[key]); | ||
} | ||
@@ -62,3 +62,3 @@ } | ||
} | ||
var refValue = values.env && values.env[ref] || process.env[ref]; | ||
var refValue = (values.env && values.env[ref]) || process.env[ref]; | ||
if (!refValue) { | ||
@@ -65,0 +65,0 @@ if (throwIfUndef) { |
{ | ||
"name": "graphql-config", | ||
"version": "1.0.8", | ||
"version": "1.0.9", | ||
"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
77953
42
1423