Socket
Socket
Sign inDemoInstall

graphql-config

Package Overview
Dependencies
Maintainers
3
Versions
319
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.0.0-rc.3 to 1.0.0-rc.4

4

lib/GraphQLProjectConfig.d.ts

@@ -16,6 +16,6 @@ import { GraphQLSchema } from 'graphql';

readonly schemaPath: string | null;
readonly include: string[];
readonly exclude: string[];
readonly includes: string[];
readonly excludes: string[];
readonly extensions: GraphQLConfigExtensions;
readonly endpointExtension: GraphQLEndpointExtension | null;
}

@@ -69,4 +69,4 @@ "use strict";

filePath = path_1.relative(this.configDir, path_1.resolve(path_1.join(this.configDir, filePath)));
return ((!this.config.include || utils_1.matchesGlobs(filePath, this.include)) &&
!utils_1.matchesGlobs(filePath, this.exclude));
return ((!this.config.includes || utils_1.matchesGlobs(filePath, this.includes)) &&
!utils_1.matchesGlobs(filePath, this.excludes));
};

@@ -104,5 +104,5 @@ GraphQLProjectConfig.prototype.getSchema = function () {

});
Object.defineProperty(GraphQLProjectConfig.prototype, "include", {
Object.defineProperty(GraphQLProjectConfig.prototype, "includes", {
get: function () {
return (this.config.include || []).map(utils_1.normalizeGlob);
return (this.config.includes || []).map(utils_1.normalizeGlob);
},

@@ -112,5 +112,5 @@ enumerable: true,

});
Object.defineProperty(GraphQLProjectConfig.prototype, "exclude", {
Object.defineProperty(GraphQLProjectConfig.prototype, "excludes", {
get: function () {
return (this.config.exclude || []).map(utils_1.normalizeGlob);
return (this.config.excludes || []).map(utils_1.normalizeGlob);
},

@@ -117,0 +117,0 @@ enumerable: true,

@@ -13,4 +13,4 @@ import { IntrospectionQuery } from 'graphql';

schemaPath: string;
include?: Array<string>;
exclude?: Array<string>;
includes?: Array<string>;
excludes?: Array<string>;
extensions?: GraphQLConfigExtensions;

@@ -17,0 +17,0 @@ };

{
"name": "graphql-config",
"version": "1.0.0-rc.3",
"version": "1.0.0-rc.4",
"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",

@@ -42,5 +42,5 @@ # graphql-config

### Specifying include/exclude files
### Specifying includes/excludes files
You can specify which files to include/exclude using the corresponding options:
You can specify which files to includes/excludes using the corresponding options:

@@ -50,8 +50,8 @@ ```json

"schemaPath": "schema.graphql",
"include": ["*.graphql"],
"exclude": ["temp/**"]
"includes": ["*.graphql"],
"excludes": ["temp/**"]
}
```
> Note: exclude and include fields are globs that should match filename.
> Note: `excludes` and `includes` fields are globs that should match filename.
> So, just `temp` or `temp/` won't match all files inside the directory.

@@ -58,0 +58,0 @@ > That's why the example uses `temp/**`

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