graphql-config
Advanced tools
Comparing version 1.2.0 to 1.2.1
@@ -17,2 +17,11 @@ "use strict"; | ||
}); | ||
ava_1.default('returns config for file', function (t) { | ||
var testWithSchemaConfig = config.getConfigForFile(path_1.resolve('./config/schema-a.graphql')); | ||
if (testWithSchemaConfig) { | ||
t.deepEqual(testWithSchemaConfig.projectName, 'testWithSchema'); | ||
} | ||
else { | ||
t.fail(); | ||
} | ||
}); | ||
ava_1.default('returns a correct root dir', function (t) { | ||
@@ -19,0 +28,0 @@ t.deepEqual(config.configDir, CONFIG_DIR); |
@@ -5,2 +5,3 @@ "use strict"; | ||
var utils_1 = require("./utils"); | ||
var lodash_1 = require("lodash"); | ||
var GraphQLProjectConfig_1 = require("./GraphQLProjectConfig"); | ||
@@ -29,3 +30,3 @@ var GraphQLConfig = /** @class */ (function () { | ||
} | ||
return Object.values(this.getProjects()).find(function (project) { return project.includesFile(filePath); }) || undefined; | ||
return lodash_1.values(this.getProjects()).find(function (project) { return project.includesFile(filePath); }) || undefined; | ||
}; | ||
@@ -32,0 +33,0 @@ GraphQLConfig.prototype.getProjectNameForFile = function (filePath) { |
{ | ||
"name": "graphql-config", | ||
"version": "1.2.0", | ||
"version": "1.2.1", | ||
"description": "The easiest way to configure your development environment with your GraphQL schema (supported by most tools, editors & IDEs)", | ||
"engines": { | ||
"node": ">= 6.0.0" | ||
}, | ||
"main": "lib/index.js", | ||
@@ -20,15 +23,2 @@ "types": "lib/index.d.ts", | ||
}, | ||
"ava": { | ||
"babel": "inherit", | ||
"require": [ | ||
"babel-register", | ||
"babel-polyfill" | ||
] | ||
}, | ||
"babel": { | ||
"presets": [ | ||
"es2015", | ||
"stage-0" | ||
] | ||
}, | ||
"repository": { | ||
@@ -55,5 +45,2 @@ "type": "git", | ||
"ava": "0.24.0", | ||
"babel-polyfill": "6.26.0", | ||
"babel-preset-es2015": "6.24.1", | ||
"babel-preset-stage-0": "6.24.1", | ||
"cpx": "1.5.0", | ||
@@ -70,4 +57,5 @@ "rimraf": "2.6.2", | ||
"js-yaml": "^3.10.0", | ||
"lodash": "^4.17.4", | ||
"minimatch": "^3.0.4" | ||
} | ||
} |
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
74915
9
1467
6
+ Addedlodash@^4.17.4