Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

graphql-config

Package Overview
Dependencies
Maintainers
4
Versions
320
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.2.0 to 1.2.1

9

lib/__tests__/basic/getGraphQLConfig.js

@@ -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);

3

lib/GraphQLConfig.js

@@ -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"
}
}
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