@graphql-eslint/eslint-plugin
Advanced tools
Comparing version 3.20.0-alpha-20230704093543-0a20572 to 3.20.0-alpha-20230704095135-8d287d5
@@ -51,3 +51,3 @@ "use strict"; | ||
function loadGraphQLConfig(options) { | ||
if (process.env.NODE_ENV !== "test" && graphQLConfig) { | ||
if (graphQLConfig) { | ||
return graphQLConfig; | ||
@@ -54,0 +54,0 @@ } |
@@ -216,3 +216,3 @@ "use strict"; | ||
const isVirtualFile = import_utils.VIRTUAL_DOCUMENT_REGEX.test(filePath); | ||
if (process.env.NODE_ENV !== "test" && isVirtualFile) { | ||
if (isVirtualFile) { | ||
return {}; | ||
@@ -219,0 +219,0 @@ } |
@@ -65,3 +65,3 @@ "use strict"; | ||
function getReachableTypes(schema) { | ||
if (process.env.NODE_ENV !== "test" && reachableTypesCache) { | ||
if (reachableTypesCache) { | ||
return reachableTypesCache; | ||
@@ -68,0 +68,0 @@ } |
@@ -29,3 +29,3 @@ "use strict"; | ||
function getUsedFields(schema, operations) { | ||
if (process.env.NODE_ENV !== "test" && usedFieldsCache) { | ||
if (usedFieldsCache) { | ||
return usedFieldsCache; | ||
@@ -32,0 +32,0 @@ } |
@@ -34,3 +34,3 @@ "use strict"; | ||
function getEdgeTypes(schema2) { | ||
if (process.env.NODE_ENV !== "test" && edgeTypesCache) { | ||
if (edgeTypesCache) { | ||
return edgeTypesCache; | ||
@@ -37,0 +37,0 @@ } |
@@ -72,3 +72,3 @@ "use strict"; | ||
const schema = (0, import_utils.requireGraphQLSchemaFromContext)(RULE_ID, context); | ||
if (process.env.NODE_ENV === "test" || !hasPageInfoChecked) { | ||
if (!hasPageInfoChecked) { | ||
const pageInfoType = schema.getType("PageInfo"); | ||
@@ -75,0 +75,0 @@ if (!pageInfoType) { |
@@ -20,3 +20,3 @@ import { dirname } from "path"; | ||
function loadGraphQLConfig(options) { | ||
if (process.env.NODE_ENV !== "test" && graphQLConfig) { | ||
if (graphQLConfig) { | ||
return graphQLConfig; | ||
@@ -23,0 +23,0 @@ } |
@@ -197,3 +197,3 @@ import { basename, extname } from "path"; | ||
const isVirtualFile = VIRTUAL_DOCUMENT_REGEX.test(filePath); | ||
if (process.env.NODE_ENV !== "test" && isVirtualFile) { | ||
if (isVirtualFile) { | ||
return {}; | ||
@@ -200,0 +200,0 @@ } |
@@ -37,3 +37,3 @@ import { | ||
function getReachableTypes(schema) { | ||
if (process.env.NODE_ENV !== "test" && reachableTypesCache) { | ||
if (reachableTypesCache) { | ||
return reachableTypesCache; | ||
@@ -40,0 +40,0 @@ } |
@@ -6,3 +6,3 @@ import { TypeInfo, visit, visitWithTypeInfo } from "graphql"; | ||
function getUsedFields(schema, operations) { | ||
if (process.env.NODE_ENV !== "test" && usedFieldsCache) { | ||
if (usedFieldsCache) { | ||
return usedFieldsCache; | ||
@@ -9,0 +9,0 @@ } |
@@ -16,3 +16,3 @@ import { getDocumentNodeFromSchema } from "@graphql-tools/utils"; | ||
function getEdgeTypes(schema2) { | ||
if (process.env.NODE_ENV !== "test" && edgeTypesCache) { | ||
if (edgeTypesCache) { | ||
return edgeTypesCache; | ||
@@ -19,0 +19,0 @@ } |
@@ -49,3 +49,3 @@ import { isScalarType, Kind } from "graphql"; | ||
const schema = requireGraphQLSchemaFromContext(RULE_ID, context); | ||
if (process.env.NODE_ENV === "test" || !hasPageInfoChecked) { | ||
if (!hasPageInfoChecked) { | ||
const pageInfoType = schema.getType("PageInfo"); | ||
@@ -52,0 +52,0 @@ if (!pageInfoType) { |
{ | ||
"name": "@graphql-eslint/eslint-plugin", | ||
"version": "3.20.0-alpha-20230704093543-0a20572", | ||
"version": "3.20.0-alpha-20230704095135-8d287d5", | ||
"description": "GraphQL plugin for ESLint", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/B2o5T/graphql-eslint", |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
13
618637