graphql-language-service-cli 3.2.28 → 3.2.30-canary-e992d7a6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/client.js +1 -1
- package/package.json +7 -3
- package/src/client.ts +2 -2
package/README.md
CHANGED
|
@@ -93,7 +93,7 @@ The node executable contains several commands: `server` and the command-line lan
|
|
|
93
93
|
```
|
|
94
94
|
Usage: graphql-lsp <command> <file>
|
|
95
95
|
|
|
96
|
-
[-h | --help][-c | --
|
|
96
|
+
[-h | --help][-c | --configDir] {configDir}
|
|
97
97
|
[-t | --text] {textBuffer}
|
|
98
98
|
[-f | --file] {filePath}
|
|
99
99
|
[-s | --schema] {schemaPath}
|
package/dist/client.js
CHANGED
|
@@ -116,7 +116,7 @@ function generateSchema(schemaPath) {
|
|
|
116
116
|
case '.json':
|
|
117
117
|
return (0, graphql_1.buildClientSchema)(JSON.parse(schemaDSL));
|
|
118
118
|
default:
|
|
119
|
-
throw new Error('Unsupported schema file
|
|
119
|
+
throw new Error('Unsupported schema file extension');
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
//# sourceMappingURL=client.js.map
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "graphql-language-service-cli",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.30-canary-e992d7a6.0",
|
|
4
4
|
"description": "An interface for building GraphQL language services for IDEs",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Hyohyeon Jeong <asiandrummer@fb.com>",
|
|
7
7
|
"Lee Byron <lee@leebyron.com> (http://leebyron.com/)"
|
|
8
8
|
],
|
|
9
|
-
"repository":
|
|
9
|
+
"repository": {
|
|
10
|
+
"type": "git",
|
|
11
|
+
"url": "http://github.com/graphql/graphiql",
|
|
12
|
+
"directory": "packages/graphql-language-service-cli"
|
|
13
|
+
},
|
|
10
14
|
"homepage": "https://github.com/graphql/graphiql/tree/main/packages/graphql-language-service-cli#readme",
|
|
11
15
|
"bugs": {
|
|
12
16
|
"url": "https://github.com/graphql/graphiql/issues?q=issue+label:language-service-cli"
|
|
@@ -33,7 +37,7 @@
|
|
|
33
37
|
"dependencies": {
|
|
34
38
|
"@babel/polyfill": "^7.8.7",
|
|
35
39
|
"graphql-language-service": "^5.0.6",
|
|
36
|
-
"graphql-language-service-server": "^2.7.
|
|
40
|
+
"graphql-language-service-server": "^2.7.29-canary-e992d7a6.0",
|
|
37
41
|
"yargs": "^16.2.0"
|
|
38
42
|
},
|
|
39
43
|
"devDependencies": {
|
package/src/client.ts
CHANGED
|
@@ -127,7 +127,7 @@ function _getDiagnostics(
|
|
|
127
127
|
schemaPath?: string,
|
|
128
128
|
): EXIT_CODE {
|
|
129
129
|
try {
|
|
130
|
-
// `schema` is not strictly
|
|
130
|
+
// `schema` is not strictly required as GraphQL diagnostics may still notify
|
|
131
131
|
// whether the query text is syntactically valid.
|
|
132
132
|
const schema = schemaPath ? generateSchema(schemaPath) : null;
|
|
133
133
|
const resultArray = getDiagnostics(queryText, schema);
|
|
@@ -184,6 +184,6 @@ function generateSchema(schemaPath: string): GraphQLSchema {
|
|
|
184
184
|
case '.json':
|
|
185
185
|
return buildClientSchema(JSON.parse(schemaDSL));
|
|
186
186
|
default:
|
|
187
|
-
throw new Error('Unsupported schema file
|
|
187
|
+
throw new Error('Unsupported schema file extension');
|
|
188
188
|
}
|
|
189
189
|
}
|