Socket
Socket
Sign inDemoInstall

graphql-language-service-config

Package Overview
Dependencies
Maintainers
4
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-language-service-config - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

dist/__tests__.flow

18

dist/GraphQLConfig.js

@@ -26,3 +26,3 @@ 'use strict';

var APP_EXTENSIONS_NAME = 'extensions';
var PROJECTS_NAME = 'projects';
var CUSTOM_VALIDATION_RULES_NAME = 'customValidationRules';

@@ -57,3 +57,3 @@

var appConfigs = this._config[APP_EXTENSIONS_NAME];
var appConfigs = this._config[PROJECTS_NAME];
if (!appConfigs) {

@@ -66,3 +66,3 @@ return null;

var name = appConfigNames.find(function (appName) {
var appConfig = _this._config[APP_EXTENSIONS_NAME] && _this._config[APP_EXTENSIONS_NAME][appName];
var appConfig = _this._config[PROJECTS_NAME] && _this._config[PROJECTS_NAME][appName];
if (appConfig) {

@@ -112,4 +112,4 @@ return _this.isFileInInputDirs(filePath, appName);

if (appName) {
if (this._config[APP_EXTENSIONS_NAME] && this._config[APP_EXTENSIONS_NAME][appName] && this._config[APP_EXTENSIONS_NAME][appName].inputDirs) {
return this._config[APP_EXTENSIONS_NAME][appName].inputDirs.some(function (dirPath) {
if (this._config[PROJECTS_NAME] && this._config[PROJECTS_NAME][appName] && this._config[PROJECTS_NAME][appName].inputDirs) {
return this._config[PROJECTS_NAME][appName].inputDirs.some(function (dirPath) {
return fileName.indexOf(dirPath) !== -1;

@@ -127,4 +127,4 @@ });

if (appName) {
if (this._config[APP_EXTENSIONS_NAME] && this._config[APP_EXTENSIONS_NAME][appName] && this._config[APP_EXTENSIONS_NAME][appName][CUSTOM_VALIDATION_RULES_NAME]) {
var appConfig = this._config[APP_EXTENSIONS_NAME][appName];
if (this._config[PROJECTS_NAME] && this._config[PROJECTS_NAME][appName] && this._config[PROJECTS_NAME][appName][CUSTOM_VALIDATION_RULES_NAME]) {
var appConfig = this._config[PROJECTS_NAME][appName];
modulePath = appConfig[CUSTOM_VALIDATION_RULES_NAME];

@@ -159,4 +159,4 @@ }

GraphQLConfig.prototype._getPropertyFromConfig = function _getPropertyFromConfig(key, appName, defaultValue) {
if (appName && this._config[APP_EXTENSIONS_NAME] && this._config[APP_EXTENSIONS_NAME][appName] && this._config[APP_EXTENSIONS_NAME][appName][key]) {
return this._config[APP_EXTENSIONS_NAME][appName][key];
if (appName && this._config[PROJECTS_NAME] && this._config[PROJECTS_NAME][appName] && this._config[PROJECTS_NAME][appName][key]) {
return this._config[PROJECTS_NAME][appName][key];
}

@@ -163,0 +163,0 @@ return this._config[key] || defaultValue;

{
"name": "graphql-language-service-config",
"repository": "https://github.com/graphql/graphql-language-service",
"version": "0.0.5",
"version": "0.0.6",
"description": "A tool-kit for accessing and using `.graphqlrc` configuration files",

@@ -20,18 +20,13 @@ "contributors": [

],
"main": "dist/index.js",
"options": {
"mocha": "--full-trace --require src/__tests__/mocha-bootload src/**/__tests__/**/*-test.js"
},
"main": "src/index.js",
"scripts": {
"test": "npm run lint && npm run testonly",
"testonly": "babel-node ./node_modules/.bin/_mocha $npm_package_options_mocha",
"lint": "eslint src || (printf '\\033[33mTry: \\033[7m npm run lint -- --fix \\033[0m\\n' && exit 1)",
"test": "echo 'Please run `npm test` from the root of the repo' && exit 1",
"build": "npm run build-js && npm run build-flow",
"build-js": "babel-node scripts/build-js.js",
"build-flow": "babel-node scripts/build-flow.js",
"prepublish": "node scripts/prepublish.js"
"build-js": "babel-node ../../resources/buildJs.js",
"build-flow": "babel-node ../../resources/buildFlow.js",
"prepublish": "node ../../resources/prepublish.js"
},
"dependencies": {
"graphql-language-service-types": "0.0.10"
"graphql-language-service-types": "0.0.11"
}
}

Sorry, the diff of this file is not supported yet

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