@graphql-eslint/eslint-plugin 3.14.4-alpha-20230107211856-2fb064a → 3.14.4-alpha-20230109014434-0bc2dba
Sign up to get free protection for your applications and to get access to all the features.
@@ -40,7 +40,7 @@ exports.convertToken = convertToken;
|
|
40
40
|
function getLexer(source) {
|
41
41
|
// GraphQL v14
|
42
42
|
const gqlLanguage = require('graphql/language');
|
43
|
-
if (gqlLanguage
|
43
|
+
if (gqlLanguage === null || gqlLanguage === void 0 ? void 0 : gqlLanguage.createLexer) {
|
44
44
|
return gqlLanguage.createLexer(source, {});
|
45
45
|
}
|
46
46
|
// GraphQL v15
|
package/docs/custom-rules.md
CHANGED
@@ -36,7 +36,7 @@ export function convertToken(token, type) {
|
|
36
36
|
function getLexer(source) {
|
37
37
|
// GraphQL v14
|
38
38
|
const gqlLanguage = require('graphql/language');
|
39
|
-
if (gqlLanguage
|
39
|
+
if (gqlLanguage === null || gqlLanguage === void 0 ? void 0 : gqlLanguage.createLexer) {
|
40
40
|
return gqlLanguage.createLexer(source, {});
|
41
41
|
}
|
42
42
|
// GraphQL v15
|
package/package.json
CHANGED