graphql-config
Advanced tools
Comparing version 1.0.0-rc.3 to 1.0.0-rc.4
@@ -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/**` |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
62791
1